VLCNetworkLoginDataSourceProtocol.h 1.13 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
/*****************************************************************************
 * VLC for iOS
 *****************************************************************************
 * Copyright (c) 2016 VideoLAN. All rights reserved.
 * $Id$
 *
 * Authors: Vincent L. Cone <vincent.l.cone # tuta.io>
 *
 * Refer to the COPYING file of the official project for license.
 *****************************************************************************/

#import <Foundation/Foundation.h>
#import "VLCNetworkLoginDataSourceSection.h"

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, VLCServerProtocol) {
    VLCServerProtocolSMB,
    VLCServerProtocolFTP,
    VLCServerProtocolPLEX,
    VLCServerProtocolUndefined,
};
@class VLCNetworkLoginDataSourceProtocol;
@protocol VLCNetworkLoginDataSourceProtocolDelegate <NSObject>
- (void)protocolDidChange:(VLCNetworkLoginDataSourceProtocol *)protocolSection;
@end

@interface VLCNetworkLoginDataSourceProtocol : NSObject <VLCNetworkLoginDataSourceSection>
@property (nonatomic) VLCServerProtocol protocol;
@property (nonatomic, weak) id<VLCNetworkLoginDataSourceProtocolDelegate> delegate;
@end

NS_ASSUME_NONNULL_END