VLCNotificationRelay.h 1.0 KB

12345678910111213141516171819202122232425262728
  1. /*****************************************************************************
  2. * VLCNotificationRelay.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Author: Tobias Conradi <videolan # tobias-conradi.de>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import <Foundation/Foundation.h>
  13. @interface VLCNotificationRelay : NSObject
  14. + (instancetype)sharedRelay;
  15. /* relays NSNotificationCenter notifications with localName to CFNotifactionCenter with remoteName */
  16. - (void)addRelayLocalName:(NSString *)localName toRemoteName:(NSString *)remoteName;
  17. - (void)removeRelayLocalName:(NSString *)localName;
  18. /* relays CFNotifactionCenter with remoteName to NSNotificationCenter notifications with localName */
  19. - (void)addRelayRemoteName:(NSString *)remoteName toLocalName:(NSString *)localName;
  20. - (void)removeRelayRemoteName:(NSString *)remoteName;
  21. @end