![]() |
QtsHttp
0.9.4
|
Interface for Qts Http file station API. More...
#import <QtsHttpFileStation.h>
Interface for Qts Http file station API.
|
optional |
Add video to transcode queue.
[IN] | filePath : Add video file path in QNAP Turbo NAS. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Chunked upload a file to QNAP Turbo NAS.
[IN] | uploadFilePath : Local path of chunked upload file. |
[IN] | toFilePath : Destination path in QNAP Turbo NAS. |
[IN] | renameOriDestFileName : Rename original destination file to strRenameOriDestFileName, if file already exist. |
[IN] | uploadID : Chunked upload ID. Get from CreateChunkedUploadID. |
[IN] | uploadTempPath : Where to put temp file in QTS Turbo NAS. The same as CreateChunkedUploadID. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
[BLOCK] | block : block to retrieve upload progress. |
|
optional |
Compress files.
[IN] | compressName :Compressed name. |
[IN] | compressFilePath : Compressd file path. |
[IN] | totalFileNum : The amount of compression files number. |
[IN] | fileList : The compressed file name list. |
[IN] | compressFormat : Compressed format. |
[IN] | password : Compressed password (can be null). |
[IN] | compressLevel : Compressed level. |
[IN] | encryptType : Compressed encrypt type. |
[IN] | updateMode : Compressed update mode. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Copy a file/folder from source to destination.
[IN] | fileEntry : Source entry in QNAP Turbo NAS. |
[IN] | toPath : Destination path in QNAP Turbo NAS. |
[IN] | mode : Skip / Overwrite. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
[BLOCK] | block : block to retrieve copy progress. |
|
optional |
Copy a file/folder by path from source to destination.
[IN] | fromPath : Source full path in QNAP Turbo NAS. |
[IN] | toPath : Destination path in QNAP Turbo NAS. |
[IN] | mode : Skip / Overwrite. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
[BLOCK] | block : block to retrieve copy progress. |
|
optional |
Create chunked upload ID.
[IN] | uploadTempPath : Where to put temp file in QTS Turbo NAS. |
[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 upload_id with upload_id tag. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Create a folder.
[IN] | parentFolderEntry : Create a folder below parentFolderEntry. |
[IN] | folderName : Create folder name. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Create a folder by path.
[IN] | folderPath : Create a folder at this path. |
[IN] | folderName : Create folder name. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Create share link.
[IN] | shareLinkInfo : Setting of create share link. |
[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 QNQtsHttpShareLink class |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Delete chunked upload file by upload ID.
[IN] | uploadID : Chunked upload ID. Get from CreateChunkedUploadID. |
[IN] | uploadTempPath : Where to put temp file in QTS Turbo NAS. The same as CreateChunkedUploadID. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Delete a file/folder in QNAP Turbo NAS.
[IN] | fileEntry : Delete entry in QNAP Turbo NAS. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Delete a file/folder by path in QNAP Turbo NAS.
[IN] | filePath : Delete full path in QNAP Turbo NAS. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Delete share link.
[IN] | shareLink : Share link on QNAP Turbo NAS. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Delete video transcode file.
[IN] | filePath : Delete video file path in QNAP Turbo NAS. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Download a file to local.
[IN] | fileEntry : Download file entry in QNAP Turbo NAS. |
[IN] | toFilePath : Destination path in local. |
[IN] | offset : Resume download from offset. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
[BLOCK] | block : block to retrieve download progress rate and received bytes. |
|
optional |
Download a file by path to local.
[IN] | path : Download file full path in QNAP Turbo NAS. |
[IN] | toFilePath : Destination path in local. |
[IN] | offset : Resume download from offset. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
[BLOCK] | block : block to retrieve download progress rate and received bytes. |
|
optional |
Extract files.
[IN] | extractedFile : Extracted file object in QTS Turbo NAS. |
[IN] | toPath : Path of the extracted files. |
[IN] | password : Extraction password (can be null). |
[IN] | extractMode : Extraction mode. |
[IN] | partTotalFileCount : The total number of extracted files, if extractMode = QTS_EXTRACT_MODE_PART. |
[IN] | partFileList : Name of the file to be extracted (can be more than one), if extractMode = QTS_EXTRACT_MODE_PART. |
[IN] | overWrite : Skip / Overwrite. |
[IN] | extractPathMode : Extracted path mode. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Get hostname and external IP address of the QNAP Turbo NAS.
[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 QNQtsHttpNASInfo objects |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Get file list count below specify path.
[IN] | path : Specify folder path. |
[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 count with total tag. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Get file list below specify path.
[IN] | path : Specify folder path. |
[IN] | startIdx : Start index of get files. |
[IN] | fileLimit : Number of get files. |
[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 QNQtsHttpFileStatus class. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Get file status.
[IN] | filePath :File full path in QNAP Turbo NAS. |
[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 QNQtsHttpFileStatus objects. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Get file URL.
[IN] | fileFullPath : File full path. |
[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 file URL. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Get image thumbnail of file.
[IN] | fileFullPath : File full path. |
[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 image thumv URL. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Get share folder list of QNAP Turbo NAS.
[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 QNQtsHttpFileEntry class. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Get share link list.
[IN] | fileLimit : Number of share link list. |
[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 QNQtsHttpShareLink class |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
List the contents of an extracted file.
[IN] | filePath :Extracted file full path in QTS Turbo NAS. |
[IN] | startIdx : Response files start index. |
[IN] | fileLimit : Number of response files. |
[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 QNQtsHttpExtractEntry objects. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Move a file/folder from source to destination.
[IN] | fileEntry : Source entry in QNAP Turbo NAS. |
[IN] | toPath : Destination path in QNAP Turbo NAS. |
[IN] | mode : Skip / Overwrite. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
[BLOCK] | block : block to retrieve move progress. |
|
optional |
Move a file/folder by path from source to destination.
[IN] | fromPath : Source full path in QNAP Turbo NAS. |
[IN] | toPath : Destination path in QNAP Turbo NAS. |
[IN] | mode : Skip / Overwrite. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
[BLOCK] | block : block to retrieve move progress. |
|
optional |
Rename a file/folder in QNAP Turbo NAS.
[IN] | filePath : Rename file path. |
[IN] | newName : New folder/file name. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
File search.
[IN] | folderPath :Search file path in QNAP Turbo NAS. |
[IN] | keyword : Query keyword. |
[IN] | fileLimit : Number of response file list. |
[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 QNQtsHttpFileEntry objects. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Set folder/file modification time.
[IN] | filePath : Update file path. |
[IN] | modifyTime : Epoch time (seconds since 1970-01-01 00:00:00 UTC). |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
|
optional |
Upload a file to QNAP Turbo NAS.
[IN] | fromFilePath : Local path of upload file. |
[IN] | toFilePath : Destination path in QNAP Turbo NAS. |
[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. |
[BLOCK] | fail : block to retrieve error code when API was executed failurely. |
[BLOCK] | block : block to retrieve upload progress rate and sending bytes. |