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.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/Dropbox/src/dropbox.h b/plugins/Dropbox/src/dropbox.h
index 10c40041da..4ea16c4b67 100644
--- a/plugins/Dropbox/src/dropbox.h
+++ b/plugins/Dropbox/src/dropbox.h
@@ -27,10 +27,10 @@ public:
private:
HANDLE hNetlibConnection;
- ULONG hFileProcess;
ULONG hMessageProcess;
HANDLE hFileSentEventHook;
+ HANDLE hUploadedEventHook;
MCONTACT hDefaultContact;
MCONTACT hTransferContact;
@@ -66,6 +66,9 @@ private:
INT_PTR SendFileToDropbox(WPARAM wParam, LPARAM lParam);
+ INT_PTR UploadToDropbox(WPARAM wParam, LPARAM lParam);
+ INT_PTR UploadToDropboxAsync(WPARAM wParam, LPARAM lParam);
+
// commands
static void CommandHelp(void *arg);
static void CommandList(void *arg);
@@ -90,14 +93,16 @@ private:
void AppendToUploadSession(const char *data, size_t size, const char *sessionId, size_t offset);
char* FinishUploadSession(const char *data, size_t size, const char *sessionId, size_t offset, char *path);
- void CreateFolder(const char *encodedPath);
-
void CreateDownloadUrl(const char *path, char *url);
- static UINT SendFilesAsync(void *owner, void *arg);
+ static UINT UploadToDropbox(void *owner, void *arg);
+
static UINT SendFilesAndEventAsync(void *owner, void *arg);
static UINT SendFilesAndReportAsync(void *owner, void *arg);
+ static UINT UploadAndRaiseEvent(void *owner, void *arg);
+ static UINT UploadAndReportProgress(void *owner, void *arg);
+
// contacts
MCONTACT GetDefaultContact();