summaryrefslogtreecommitdiff
path: root/plugins/DropBox/src/main.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-02-19 12:23:54 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-02-19 12:23:54 +0000
commit4df260317b8bd47ca65dca24b376b68b765a378f (patch)
tree6f8d71e64c8c728c11f5ec4e41d8eb99eaea30d9 /plugins/DropBox/src/main.cpp
parent8dc7456651251bc112b9edd9b5fd1c4849d7c83d (diff)
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
Diffstat (limited to 'plugins/DropBox/src/main.cpp')
-rw-r--r--plugins/DropBox/src/main.cpp21
1 files changed, 6 insertions, 15 deletions
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