From 4df260317b8bd47ca65dca24b376b68b765a378f Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 19 Feb 2014 12:23:54 +0000 Subject: DropBox: - reorganization of projects and code - added access request at contact's menu - temporary disabled folders sending - added dropbox icon - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@8174 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DropBox/src/main.cpp | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'plugins/DropBox/src/main.cpp') diff --git a/plugins/DropBox/src/main.cpp b/plugins/DropBox/src/main.cpp index 5c33cd74a1..da1ccca07f 100644 --- a/plugins/DropBox/src/main.cpp +++ b/plugins/DropBox/src/main.cpp @@ -1,7 +1,9 @@ -#include "common.h" +//#include "common.h" +#include "dropbox.h" int hLangpack; HINSTANCE g_hInstance; +CDropbox *g_dropbox; PLUGININFOEX pluginInfo = { @@ -37,25 +39,14 @@ extern "C" int __declspec(dllexport) Load(void) { mir_getLP(&pluginInfo); - HookEvent(ME_OPT_INITIALISE, OnOptionsInit); - HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); - - PROTOCOLDESCRIPTOR pd = { PROTOCOLDESCRIPTOR_V3_SIZE }; - pd.szName = MODULE; - pd.type = PROTOTYPE_VIRTUAL; - - CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd); - - CreateProtoServiceFunction(MODULE, PS_GETCAPS, DropBoxGetCaps); - - CreateProtoServiceFunction(MODULE, PSS_FILE, DropBoxSendFile); - - CreateProtoServiceFunction(MODULE, PSS_MESSAGE, DropBoxSendMessage); + g_dropbox = new CDropbox(); return 0; } extern "C" int __declspec(dllexport) Unload(void) { + delete g_dropbox; + return 0; } \ No newline at end of file -- cgit v1.2.3