summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/cloud_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CloudFile/src/cloud_file.h')
-rw-r--r--plugins/CloudFile/src/cloud_file.h6
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