VLCLocalNetworkService-Protocol.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*****************************************************************************
  2. * VLCLocalNetworkService-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 "VLCNetworkServerBrowser-Protocol.h"
  14. NS_ASSUME_NONNULL_BEGIN
  15. @protocol VLCNetworkServerLoginInformation <NSObject>
  16. @property (nonatomic) NSString *username;
  17. @property (nonatomic) NSString *password;
  18. @property (nonatomic) NSString *address;
  19. @property (nonatomic) NSNumber *port;
  20. @property (nonatomic) NSString *protocolIdentifier;
  21. @end
  22. @protocol VLCLocalNetworkService <NSObject>
  23. @required
  24. @property (nonatomic, readonly, nullable) UIImage *icon;
  25. @property (nonatomic, readonly) NSString *title;
  26. @optional
  27. - (nullable id<VLCNetworkServerBrowser>)serverBrowser;
  28. - (NSURL *)directPlaybackURL;
  29. - (nullable id<VLCNetworkServerLoginInformation>)loginInformation;
  30. @end
  31. NS_ASSUME_NONNULL_END