diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-02-22 21:12:25 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-02-22 21:12:25 +0000 |
commit | 0b82b879821c7e73b86f189be747c5634c8b46b7 (patch) | |
tree | 28c7e3b06c25a7b9fbd49a33972e7fae07dd2e56 /plugins/Dropbox/src/dropbox.h | |
parent | 477664ed5c4b018562e9419428175ae938cf2761 (diff) |
Dropbox:
- updated api to v2
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@16326 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox.h')
-rw-r--r-- | plugins/Dropbox/src/dropbox.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/Dropbox/src/dropbox.h b/plugins/Dropbox/src/dropbox.h index d9af25ae73..2331ed1922 100644 --- a/plugins/Dropbox/src/dropbox.h +++ b/plugins/Dropbox/src/dropbox.h @@ -84,10 +84,10 @@ private: static void __cdecl RequestAccountInfo(void*);
// transfers
- void SendFile(const char *path, const char *data, size_t size);
- void SendFileChunkedFirst(const char *data, size_t size, char *uploadId, size_t &offset);
- void SendFileChunkedNext(const char *data, size_t size, const char *uploadId, size_t &offset);
- void SendFileChunkedLast(const char *path, const char *uploadId);
+ void UploadFile(const char *path, const char *data, size_t size);
+ void StartUploadSession(const char *data, size_t size, char *sessionId);
+ void AppendToUploadSession(const char *data, size_t size, const char *sessionId, size_t &offset);
+ void FinishUploadSession(const char *data, size_t size, const char *sessionId, size_t offset, const char *path);
void CreateFolder(const char *encodedPath);
@@ -110,8 +110,11 @@ private: static void DisableSrmmButton(MCONTACT hContact);
// utils
+ static CMStringA PreparePath(const char *path);
+ static CMStringA PreparePath(const TCHAR *path);
+
static char* HttpStatusToText(HTTP_STATUS status);
- static void HandleHttpResponseError(NETLIBHTTPREQUEST *response);
+ static void HandleJsonResponseError(NETLIBHTTPREQUEST *response);
static MEVENT AddEventToDb(MCONTACT hContact, WORD type, DWORD flags, DWORD cbBlob, PBYTE pBlob);
|