diff options
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;
|