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.cpp | |
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.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/Dropbox/src/dropbox.cpp b/plugins/Dropbox/src/dropbox.cpp index ef6e29a36c..3e5cd0f5d1 100644 --- a/plugins/Dropbox/src/dropbox.cpp +++ b/plugins/Dropbox/src/dropbox.cpp @@ -1,6 +1,7 @@ #include "common.h"
std::map<HWND, MCONTACT> CDropbox::dcftp;
+std::map<std::string, pThreadFunc> CDropbox::commands;
HGENMENU CDropbox::ContactMenuItems[CMI_MAX];
void CDropbox::Init()
@@ -18,11 +19,17 @@ void CDropbox::Init() CreateProtoServiceFunction(MODULE, PS_GETCAPS, CDropbox::ProtoGetCaps);
CreateProtoServiceFunction(MODULE, PSS_FILE, CDropbox::ProtoSendFile);
CreateProtoServiceFunction(MODULE, PSS_MESSAGE, CDropbox::ProtoSendMessage);
+ CreateProtoServiceFunction(MODULE, PSR_MESSAGE, CDropbox::ProtoReceiveMessage);
InitIcons();
InitMenus();
- INSTANCE->hContactTransfer = 0;
+ commands["content"] = CDropbox::CommandContent;
+ commands["share"] = CDropbox::CommandShare;
+ commands["delete"] = CDropbox::CommandDelete;
+
+ hContactTransfer = 0;
+ hFileProcess = hMessageProcess = 1;
}
MCONTACT CDropbox::hContactDefault = 0;
|