summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-05-11 20:12:46 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-05-11 20:12:46 +0000
commit488f93815d3c247376f038377e7bc3731b074231 (patch)
tree284f30d88e1b183792592c4066d9a7abe0bf6d81 /plugins/Dropbox/src/dropbox.h
parentdb8cf4c1b0a624fd469c462e41a1e499ae808b70 (diff)
Dropbox: work commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@13556 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox.h')
-rw-r--r--plugins/Dropbox/src/dropbox.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/Dropbox/src/dropbox.h b/plugins/Dropbox/src/dropbox.h
index c3e55057f7..6da80d85f4 100644
--- a/plugins/Dropbox/src/dropbox.h
+++ b/plugins/Dropbox/src/dropbox.h
@@ -38,7 +38,7 @@ public:
virtual ~CDropbox();
private:
- HANDLE hNetlibUser;
+ HANDLE hNetlibConnection;
ULONG hFileProcess;
ULONG hMessageProcess;
@@ -85,23 +85,23 @@ private:
// access token
bool HasAccessToken();
- void RequestAcceessToken();
- void DestroyAcceessToken();
+ void RequestAccessToken();
+ void DestroyAccessToken();
- static UINT RequestAcceessTokenAsync(void *owner, void* param);
+ static UINT RequestAccessTokenAsync(void *owner, void *param);
// account info
void RequestAccountInfo();
// transfers
- int SendFile(const char *fileName, const char *data, int length);
- int SendFileChunkedFirst(const char *data, int length, char *uploadId, size_t &offset);
- int SendFileChunkedNext(const char *data, int length, const char *uploadId, size_t &offset);
- int SendFileChunkedLast(const char *fileName, const char *uploadId);
+ void SendFile(const char *fileName, const char *data, int length);
+ void SendFileChunkedFirst(const char *data, int length, char *uploadId, size_t &offset);
+ void SendFileChunkedNext(const char *data, int length, const char *uploadId, size_t &offset);
+ void SendFileChunkedLast(const char *fileName, const char *uploadId);
- int CreateFolder(const char *folderName);
+ void CreateFolder(const char *folderName);
- int CreateDownloadUrl(const char *path, wchar_t *url);
+ void CreateDownloadUrl(const char *path, char *url);
static UINT SendFilesAsync(void *owner, void *arg);
static UINT SendFilesAndEventAsync(void *owner, void *arg);
@@ -123,8 +123,8 @@ private:
static void DisableSrmmButton(MCONTACT hContact);
// utils
- static wchar_t *HttpStatusToText(HTTP_STATUS status);
- static int HandleHttpResponseError(HANDLE hNetlibUser, NETLIBHTTPREQUEST *response);
+ static char* HttpStatusToText(HTTP_STATUS status);
+ static void HandleHttpResponseError(NETLIBHTTPREQUEST *response);
};
#endif //_DROPBOX_PROTO_H_ \ No newline at end of file