summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/main.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-02-19 19:07:45 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-02-19 19:07:45 +0000
commitfc46c19a61d26fb610d173bb8fc5420eea966caa (patch)
tree0d388af6d8a53eb4ef56dcdb96fe44d56bccb63d /plugins/Dropbox/src/main.cpp
parent3ced66e7eac9a8a0867073553db2b2bd74729b09 (diff)
Dropbox:
- global object replaced by singleton - added ability to upload folders git-svn-id: http://svn.miranda-ng.org/main/trunk@8183 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/main.cpp')
-rw-r--r--plugins/Dropbox/src/main.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/Dropbox/src/main.cpp b/plugins/Dropbox/src/main.cpp
index da1ccca07f..c5bfbd358a 100644
--- a/plugins/Dropbox/src/main.cpp
+++ b/plugins/Dropbox/src/main.cpp
@@ -1,9 +1,7 @@
-//#include "common.h"
#include "dropbox.h"
int hLangpack;
HINSTANCE g_hInstance;
-CDropbox *g_dropbox;
PLUGININFOEX pluginInfo =
{
@@ -33,20 +31,18 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
return &pluginInfo;
}
-extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCOL, MIID_LAST};
-
extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
- g_dropbox = new CDropbox();
+ Singleton<CDropbox>::GetInstance()->Init();
return 0;
}
extern "C" int __declspec(dllexport) Unload(void)
{
- delete g_dropbox;
+ Singleton<CDropbox>::GetInstance()->Uninit();
return 0;
} \ No newline at end of file