UploadTask is a task item that can be accessed from application layer to fetch basic upload item information, also it's used for content upload by sync manager.
More...
#include <uploadtask.h>
UploadTask is a task item that can be accessed from application layer to fetch basic upload item information, also it's used for content upload by sync manager.
Definition at line 66 of file uploadtask.h.
◆ Ptr
◆ ~UploadTask()
virtual mcloud::api::UploadTask::~UploadTask |
( |
| ) |
|
|
virtualdefault |
◆ UploadTask()
mcloud::api::UploadTask::UploadTask |
( |
const UploadTask & |
| ) |
|
|
delete |
◆ cancel()
void mcloud::api::UploadTask::cancel |
( |
| ) |
|
|
overridevirtual |
◆ content_id()
const std::string& mcloud::api::UploadTask::content_id |
( |
| ) |
const |
|
overridevirtual |
◆ content_name()
const std::string& mcloud::api::UploadTask::content_name |
( |
| ) |
const |
|
overridevirtual |
◆ error_string()
const std::string& mcloud::api::UploadTask::error_string |
( |
| ) |
const |
|
overridevirtual |
Contains the error string if an error occurs during content uploading.
Implements mcloud::api::Task.
◆ file_path()
const std::string& mcloud::api::UploadTask::file_path |
( |
| ) |
const |
|
overridevirtual |
◆ file_size()
size_t mcloud::api::UploadTask::file_size |
( |
| ) |
const |
Returns file size of upload content.
◆ is_need_upload()
bool mcloud::api::UploadTask::is_need_upload |
( |
| ) |
const |
Returns true if a uploaded item does not exist in cloud, otherwise return false.
◆ operator=()
◆ progress_changed()
◆ status()
◆ status_changed()
◆ task_id()
const std::string& mcloud::api::UploadTask::task_id |
( |
| ) |
const |
|
overridevirtual |
◆ task_url()
const std::string& mcloud::api::UploadTask::task_url |
( |
| ) |
const |
|
overridevirtual |
Returns upload url assigned by mcloud for this task.
- Note
- the url will be expired after a period of time.
Implements mcloud::api::Task.
◆ SyncManagerPriv
friend class SyncManagerPriv |
|
friend |
The documentation for this class was generated from the following file:
- /build/mcloud-D0ZXum/mcloud-1.0.0+17.10.20170726/include/mcloud/api/uploadtask.h