VLCNetworkServerBrowserUPnP.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*****************************************************************************
  2. * VLCNetworkServerBrowserUPnP.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 "VLCNetworkServerBrowser-Protocol.h"
  13. NS_ASSUME_NONNULL_BEGIN
  14. @class MediaServer1Device;
  15. @interface VLCNetworkServerBrowserUPnP : NSObject <VLCNetworkServerBrowser>
  16. - (id)initWithUPNPDevice:(MediaServer1Device *)device header:(NSString *)header andRootID:(NSString *)rootID NS_DESIGNATED_INITIALIZER;
  17. - (instancetype)init NS_UNAVAILABLE;
  18. @end
  19. @class MediaServer1BasicObject;
  20. @interface VLCNetworkServerBrowserItemUPnP : NSObject <VLCNetworkServerBrowserItem>
  21. - (instancetype)initWithBasicObject:(MediaServer1BasicObject *)basicObject device:(MediaServer1Device *)device;
  22. @property (nonatomic, readonly, nullable) NSString *duration;
  23. @property (nonatomic, readonly, nullable) NSURL *subtitleURL;
  24. @property (nonatomic, readonly, nullable) NSURL *thumbnailURL;
  25. @property (nonatomic, getter=isDownloadable, readonly) BOOL downloadable;
  26. // UPnP specificis
  27. @property (nonatomic, readonly, nullable) UIImage *image;
  28. @end
  29. #pragma mark - Multi Ressource
  30. @class MediaServer1ItemObject;
  31. @interface VLCNetworkServerBrowserUPnPMultiRessource : NSObject <VLCNetworkServerBrowser>
  32. - (instancetype)initWithItem:(MediaServer1ItemObject *)itemObject device:(MediaServer1Device *)device;
  33. @end
  34. @interface VLCNetworkServerBrowserItemUPnPMultiRessource : NSObject <VLCNetworkServerBrowserItem>
  35. - (instancetype)initWithTitle:(NSString *)title url:(NSURL *)url;
  36. @end
  37. NS_ASSUME_NONNULL_END