VLCLocalServerDiscoveryController.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import <Foundation/Foundation.h>
  13. #import "UPnPManager.h"
  14. @protocol VLCLocalServerDiscoveryControllerDelegate <NSObject>
  15. @required
  16. - (void)discoveryFoundSomethingNew;
  17. @end
  18. @interface VLCLocalServerDiscoveryController : NSObject
  19. @property (nonatomic, readwrite, weak) id delegate;
  20. @property (nonatomic, readonly) NSArray *sectionHeaderTexts;
  21. - (NSInteger)numberOfItemsInSection:(NSInteger)section;
  22. - (NSString *)titleForIndexPath:(NSIndexPath *)indexPath;
  23. - (UIImage *)iconForIndexPath:(NSIndexPath *)indexPath;
  24. - (BasicUPnPDevice *)upnpDeviceForIndexPath:(NSIndexPath *)indexPath;
  25. - (NSDictionary *)plexServiceDescriptionForIndexPath:(NSIndexPath *)indexPath;
  26. - (NSString *)ftpHostnameForIndexPath:(NSIndexPath *)indexPath;
  27. - (NSDictionary *)httpServiceDescriptionForIndexPath:(NSIndexPath *)indexPath;
  28. - (VLCMedia *)dsmDiscoveryForIndexPath:(NSIndexPath *)indexPath;
  29. - (VLCMedia *)sapDiscoveryForIndexPath:(NSIndexPath *)indexPath;
  30. - (void)stopDiscovery;
  31. - (BOOL)refreshDiscoveredData;
  32. - (void)startDiscovery;
  33. @end