summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox.h
diff options
context:
space:
mode:
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