diff options
Diffstat (limited to 'plugins/Dropbox/src/dropbox.h')
-rw-r--r-- | plugins/Dropbox/src/dropbox.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/dropbox.h b/plugins/Dropbox/src/dropbox.h index 8ffd4082f8..1b84aa786b 100644 --- a/plugins/Dropbox/src/dropbox.h +++ b/plugins/Dropbox/src/dropbox.h @@ -2,6 +2,7 @@ #define _DROPBOX_PROTO_H_
#include <map>
+#include <string>
#include "singleton.h"
#include "http_request.h"
#include "file_transfer.h"
@@ -29,6 +30,13 @@ enum CMI_MAX // this item shall be the last one
};
+struct MessageParam
+{
+ HANDLE hProcess;
+ MCONTACT hContact;
+ void *data;
+};
+
class CDropbox
{
public:
@@ -38,10 +46,12 @@ public: private:
HANDLE hNetlibUser;
ULONG hFileProcess;
+ ULONG hMessageProcess;
MCONTACT hContactTransfer;
static MCONTACT hContactDefault;
static std::map<HWND, MCONTACT> dcftp;
+ static std::map<std::string, pThreadFunc> commands;
static HGENMENU ContactMenuItems[CMI_MAX];
@@ -59,12 +69,18 @@ private: static INT_PTR ProtoGetCaps(WPARAM wParam, LPARAM lParam);
static INT_PTR ProtoSendFile(WPARAM wParam, LPARAM lParam);
static INT_PTR ProtoSendMessage(WPARAM wParam, LPARAM lParam);
+ static INT_PTR ProtoReceiveMessage(WPARAM wParam, LPARAM lParam);
static INT_PTR RequestApiAuthorization(WPARAM wParam, LPARAM lParam);
static INT_PTR RevokeApiAuthorization(WPARAM wParam, LPARAM lParam);
static INT_PTR SendFilesToDropbox(WPARAM wParam, LPARAM lParam);
+ // commands
+ static void CommandContent(void *arg);
+ static void CommandShare(void *arg);
+ static void CommandDelete(void *arg);
+
// access token
static bool HasAccessToken();
|