diff options
author | aunsane <aunsane@gmail.com> | 2018-04-21 20:45:34 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-04-21 20:45:53 +0300 |
commit | a74debb40c3df12738c722548c556a97e5976036 (patch) | |
tree | f3c2e224d75b64de547778625122d6242e558f36 /plugins/CloudFile/src/cloud_file.h | |
parent | 803e7b0b5e7c84a814601141fcb7634516eefa30 (diff) |
CloudFile:
- fix #1278
- decrease volume of response data with fields filtering
- fix uploading for gdrive and onedrive in some cases
- simplifying upload code
- version bump
Diffstat (limited to 'plugins/CloudFile/src/cloud_file.h')
-rw-r--r-- | plugins/CloudFile/src/cloud_file.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/CloudFile/src/cloud_file.h b/plugins/CloudFile/src/cloud_file.h index bca4aa1703..140102a9a2 100644 --- a/plugins/CloudFile/src/cloud_file.h +++ b/plugins/CloudFile/src/cloud_file.h @@ -17,7 +17,7 @@ protected: INT_PTR __cdecl OnAccountManagerInit(WPARAM, LPARAM); // utils - std::string PreparePath(const char *path); + std::string PreparePath(const std::string &path) const; virtual char* HttpStatusToError(int status = 0); virtual void HttpResponseToError(NETLIBHTTPREQUEST *response); @@ -28,6 +28,8 @@ protected: JSONNode GetJsonResponse(NETLIBHTTPREQUEST *response); + virtual void Upload(FileTransferParam *ftp) = 0; + public: std::map<MCONTACT, HWND> InterceptedContacts; @@ -53,7 +55,7 @@ public: void OpenUploadDialog(MCONTACT hContact); - virtual UINT Upload(FileTransferParam *ftp) = 0; + static UINT Upload(CCloudService *service, FileTransferParam *ftp); }; #endif //_CLOUD_SERVICE_H_
\ No newline at end of file |