QtsHttp  0.9.4
QtsHttpSystem.h
1 //
2 // QtsHttpSystem.h
3 // QTSHTTPSDK
4 //
5 // Created by Lawrence on 2013/11/24.
6 // Copyright (c) 2013年 Lawrence. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "QtsHttpComm.h"
11 
13 typedef enum _QTS_HTTP_SYSTEM_API_VERSION_
14 {
16  QTS_HTTP_SYSTEM_API_VERSION_UNKNOW = 0,
18  QTS_HTTP_SYSTEM_API_V1 = 1,
19  //QTS_HTTP_SYSTEM_API_V2 = 2,
20 }QTS_HTTP_SYSTEM_API_VERSION;
21 
27 @interface QNSystemSettingInfo : NSObject
28 {
29  NSString* serverName;
30  long serverPort;
31  BOOL isSSL;
33  BOOL isForceSSL;
34 }
35 
36 @property (strong) NSString* serverName;
37 @property (assign) long serverPort;
38 @property (assign) BOOL isSSL;
39 @property (assign) long serverSSLPort;
40 @property (assign) BOOL isForceSSL;
42 @end
43 
50 @protocol IQtsHttpSystem <NSObject>
51 @optional
52 
69 -(void) getSystemSettingWithCommunicationMode:(BOOL)isAsync cancel:(int*)isCancel success:(void(^)(QTS_RESPONSE_CTX* response))success fail:(void(^)(QTS_HTTP_API_RESULTS error))fail;
86 -(void) enableFileStationWithCommunicationMode:(BOOL)isAsync cancel:(int*)isCancel success:(void(^)(QTS_RESPONSE_CTX* response))success fail:(void(^)(QTS_HTTP_API_RESULTS error))fail;
87 
88 @end
89 @interface QNQtsHttpSystem : NSObject <IQtsHttpSystem>
90 @end
91 
QTS system setting information class.
Definition: QtsHttpSystem.h:27
long serverSSLPort
Definition: QtsHttpSystem.h:32
BOOL isForceSSL
Definition: QtsHttpSystem.h:33
Content of API Response.
Definition: QtsHttpComm.h:61
long serverPort
Definition: QtsHttpSystem.h:30
BOOL isSSL
Definition: QtsHttpSystem.h:31
Definition: QtsHttpSystem.h:89