19 #ifndef MCLOUD_API_UPLOADTASK_H_ 20 #define MCLOUD_API_UPLOADTASK_H_ 59 class SyncManagerPriv;
68 typedef std::shared_ptr<UploadTask>
Ptr;
79 const std::string & task_id()
const override;
84 const std::string & content_id()
const override;
89 const std::string & content_name()
const override;
94 const std::string & file_path()
const override;
99 const std::string & error_string()
const override;
105 const std::string & task_url()
const override;
128 void cancel()
override;
133 size_t file_size()
const;
138 bool is_need_upload()
const;
141 UploadTask(std::shared_ptr<UploadTaskPriv> p);
143 friend class SyncManagerPriv;
145 std::shared_ptr<UploadTaskPriv> p_;
151 #endif // MCLOUD_API_UPLOADTASK_H_
Task::Buffer_Callback read_cb
UploadBufferCb is a upload request item which consists of a upload folder id, upload buffer size...
Task is an abstract class that defines common interfaces for upload and download task.
std::shared_ptr< UploadTask > Ptr
std::vector< UploadRequest > UploadRequestList
std::function< void(Status)> StatusHandler
UploadRequest is a upload request item which consists of a upload folder id, up-front buffer size...
std::function< void(float)> ProgressHandler
std::function< size_t(void *dest, size_t buf_size)> Buffer_Callback
#define MCLOUD_API_DLL_PUBLIC
UploadTask is a task item that can be accessed from application layer to fetch basic upload item info...
Status
The Status enum indicates current status of this task.
std::vector< UploadBufferCb > UploadBufferCbList