diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-02-28 11:34:57 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-02-28 11:34:57 +0000 |
commit | c95380f9b30137a01b776f0390438908f47cc848 (patch) | |
tree | 50aba68883a1e7419f11d2f973d0677b74439371 /plugins/Dropbox/src/dropbox.h | |
parent | 3979fba7ea0009a4e416380be767475008b1f3e6 (diff) |
Dropbox:
- fixed folders uploading
- added commands (/content, /share, /delete) to Dropbox bot
- fixed message after file sending to Dropbox bot
git-svn-id: http://svn.miranda-ng.org/main/trunk@8325 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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();
|