From c95380f9b30137a01b776f0390438908f47cc848 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 28 Feb 2014 11:34:57 +0000 Subject: 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 --- plugins/Dropbox/src/dropbox.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'plugins/Dropbox/src/dropbox.cpp') 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 CDropbox::dcftp; +std::map 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; -- cgit v1.2.3