VLCLocalServerDiscoveryController.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*****************************************************************************
  2. * VLCLocalServerDiscoveryController.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Felix Paul Kühne <fkuehne # videolan.org>
  9. * Tobias Conradi <videolan # tobias-conradi.de>
  10. *
  11. * Refer to the COPYING file of the official project for license.
  12. *****************************************************************************/
  13. #import <Foundation/Foundation.h>
  14. #import "VLCLocalNetworkService-Protocol.h"
  15. @protocol VLCLocalServerDiscoveryControllerDelegate <NSObject>
  16. - (void)discoveryFoundSomethingNew;
  17. @end
  18. @interface VLCLocalServerDiscoveryController : NSObject
  19. @property (nonatomic, readwrite, weak) id delegate;
  20. // array of classes conforming to VLCLocalNetworkServiceBrowser
  21. - (instancetype)initWithServiceBrowserClasses:(NSArray<Class> *)serviceBrowserClasses;
  22. - (NSUInteger)numberOfSections;
  23. - (NSUInteger)numberOfItemsInSection:(NSUInteger)section;
  24. - (BOOL)foundAnythingAtAll;
  25. - (id<VLCLocalNetworkService>)networkServiceForIndexPath:(NSIndexPath *)indexPath;
  26. - (void)stopDiscovery;
  27. - (BOOL)refreshDiscoveredData;
  28. - (void)startDiscovery;
  29. @end