VLCLocalNetworkServiceBrowser-Protocol.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*****************************************************************************
  2. * VLCLocalNetworkServiceBrowser-Protocol.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: 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. #import "VLCLocalNetworkService.h"
  14. @protocol VLCLocalNetworkServiceBrowserDelegate;
  15. @protocol VLCLocalNetworkServiceBrowser <NSObject>
  16. @property (nonatomic, weak) id <VLCLocalNetworkServiceBrowserDelegate> delegate;
  17. @property (nonatomic, readonly) NSString *name;
  18. @property (nonatomic, readonly) NSUInteger numberOfItems;
  19. - (id<VLCLocalNetworkService>)networkServiceForIndex:(NSUInteger)index;
  20. - (void)startDiscovery;
  21. - (void)stopDiscovery;
  22. @end
  23. @protocol VLCLocalNetworkServiceBrowserDelegate <NSObject>
  24. - (void) localNetworkServiceBrowserDidUpdateServices:(id<VLCLocalNetworkServiceBrowser>)serviceBrowser;
  25. @end