VLCNetworkServerBrowserFTP.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*****************************************************************************
  2. * VLCNetworkServerBrowserFTP.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. #import "VLCNetworkServerLoginInformation.h"
  14. NS_ASSUME_NONNULL_BEGIN
  15. @interface VLCNetworkServerBrowserFTP : NSObject <VLCNetworkServerBrowser>
  16. - (instancetype)initWithLogin:(VLCNetworkServerLoginInformation *)login;
  17. - (instancetype)initWithFTPServer:(NSString *)serverAddress userName:(nullable NSString *)username andPassword:(nullable NSString *)password atPath:(NSString *)path;
  18. - (instancetype)initWithURL:(NSURL *)url NS_DESIGNATED_INITIALIZER;
  19. - (instancetype)init NS_UNAVAILABLE;
  20. @end
  21. @interface VLCNetworkServerBrowserItemFTP : NSObject <VLCNetworkServerBrowserItem>
  22. - (instancetype)initWithDictionary:(NSDictionary *)dict baseURL:(NSURL *)baseURL subtitleURL:(NSURL *)subtitleURL;
  23. @property (nonatomic, readwrite) NSArray<id<VLCNetworkServerBrowserItem>> *items;
  24. @property (nonatomic, getter=isDownloadable, readonly) BOOL downloadable;
  25. @property (nonatomic, readonly, nullable) NSURL *subtitleURL;
  26. @end
  27. NS_ASSUME_NONNULL_END