![]() |
QtsHttp
0.9.1
|
QTS http server class. More...
#import <QtsHttp.h>
Instance Methods | |
(id) | - initWithServerInfo: |
Constructor with CQtsHttpServerInfo server info. More... | |
(BOOL) | - setAgentName: |
Developers can change HTTP agent name before call QTS NAS system/file station API. More... | |
(BOOL) | - setTimeouts: |
Developers can change HTTP time-out value before call QTS NAS system/file station API. More... | |
(void) | - login:communicationMode:cancel:success:fail: |
Login NAS system/file station of QNAP Turbo NAS Server. More... | |
(BOOL) | - setFileStationPortNum: |
Set file station connection port number. More... | |
(BOOL) | - setFileStationSSLPortNum: |
Set file station SSL connection port number. More... | |
(QTS_HTTP_FILE_STATION_API_VERSION) | - queryFileStationVersion |
Query file station SDK version. More... | |
(QNQtsHttpFileStation *) | - openFileStation |
OpenFileStation if QTS_FILESTATION_VERSION = QTS_FILESTATION to get file station object. More... | |
(void) | - closeFileStation:communicationMode:cancel:success:fail: |
CloseFileStation if QTS_FILESTATION_VERSION = QTS_FILESTATION to close and destroy file station object. More... | |
(BOOL) | - setSystemPortNumber: |
Set NAS system connection port number. More... | |
(BOOL) | - setSystemSSLPortNumber: |
Set NAS system SSL connection port number. More... | |
(QTS_HTTP_SYSTEM_API_VERSION) | - querySystemVersion |
Query NAS system SDK version. More... | |
(QNQtsHttpSystem *) | - openSystem |
OpenSystem if QTS_SYSTEM_VERSION = QTS_SYSTEM to get NAS system object. More... | |
(void) | - closeSystem:communicationMode:cancel:success:fail: |
CloseSystem if QTS_SYSTEM_VERSION = QTS_SYSTEM to close and destroy NAS system object. More... | |
Protected Attributes | |
QNQtsHttpServerInfo * | serverInfo |
QNQtsHttpSystem * | sysDelegate |
QNQtsHttpFileStation * | fsDelegate |
long | FSPortNum |
long | FSSSLPortNum |
long | SystemPortNum |
long | SystemSSLPortNum |
NSString * | agentName |
int | timeOutMilliseconds |
QTS_HTTP_FILE_STATION_API_VERSION | FSVersion |
QTS_HTTP_SYSTEM_API_VERSION | SystemVersion |
QTS http server class.
- (void) closeFileStation: | (QNQtsHttpFileStation *) | delegate | |
communicationMode: | (BOOL) | isAsync | |
cancel: | (int *) | isCancel | |
success: | (void(^)(QTS_RESPONSE_CTX *response)) | success | |
fail: | (void(^)(QTS_HTTP_API_RESULTS error)) | fail | |
CloseFileStation if QTS_FILESTATION_VERSION = QTS_FILESTATION to close and destroy file station object.
[IN] | delegate : File station object. |
- (void) closeSystem: | (QNQtsHttpSystem *) | delegate | |
communicationMode: | (BOOL) | isAsync | |
cancel: | (int *) | isCancel | |
success: | (void(^)(QTS_RESPONSE_CTX *response)) | success | |
fail: | (void(^)(QTS_HTTP_API_RESULTS error)) | fail | |
CloseSystem if QTS_SYSTEM_VERSION = QTS_SYSTEM to close and destroy NAS system object.
[IN] | delegate : NAS system object. |
- (id) initWithServerInfo: | (QNQtsHttpServerInfo *) | qtsHttpServerInfo |
Constructor with CQtsHttpServerInfo server info.
[IN] | qtsHttpServerInfo : Qts http server info. |
- (void) login: | (QTS_HTTP_STATION_TYPE) | loginStation | |
communicationMode: | (BOOL) | isAsync | |
cancel: | (int *) | isCancel | |
success: | (void(^)(QTS_RESPONSE_CTX *response)) | success | |
fail: | (void(^)(QTS_HTTP_API_RESULTS error)) | fail | |
Login NAS system/file station of QNAP Turbo NAS Server.
[IN] | loginStation : Login station type. |
[IN] | isAsync : Execute API by Synchronized or Asynchronized Mode. |
[IN] | isCancel : Cancel API. |
[BLOCK] | success : block to retrieve QTS_RESPONSE_CTX class when API was executed successfully. QTS_RESPONSE_CTX's response will store list of QNCloudHttpPortMapping class. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
- (QNQtsHttpFileStation*) openFileStation |
OpenFileStation if QTS_FILESTATION_VERSION = QTS_FILESTATION to get file station object.
n/a |
- (QNQtsHttpSystem*) openSystem |
OpenSystem if QTS_SYSTEM_VERSION = QTS_SYSTEM to get NAS system object.
n/a |
- (QTS_HTTP_FILE_STATION_API_VERSION) queryFileStationVersion |
Query file station SDK version.
n/a |
- (QTS_HTTP_SYSTEM_API_VERSION) querySystemVersion |
Query NAS system SDK version.
n/a |
- (BOOL) setAgentName: | (NSString *) | strAgentName |
Developers can change HTTP agent name before call QTS NAS system/file station API.
[IN] | strAgentName : New HTTP agent name. |
- (BOOL) setFileStationPortNum: | (long) | portNumber |
Set file station connection port number.
[IN] | portNumber : File station port number. |
- (BOOL) setFileStationSSLPortNum: | (long) | portNumber |
Set file station SSL connection port number.
[IN] | portNumber : File station SSL port number. |
- (BOOL) setSystemPortNumber: | (long) | portNumber |
Set NAS system connection port number.
[IN] | portNumber : NAS system port number. |
- (BOOL) setSystemSSLPortNumber: | (long) | portNumber |
Set NAS system SSL connection port number.
[IN] | portNumber : NAS system SSL port number. |
- (BOOL) setTimeouts: | (int) | iTimeOutMilliseconds |
Developers can change HTTP time-out value before call QTS NAS system/file station API.
[IN] | nTimeOutMilliseconds : HTTP time-out value, in milliseconds. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |