summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-08-07 14:55:48 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-08-07 14:55:48 +0300
commitd0ad03493f626bebe46f7e17ba5bda4433f83687 (patch)
tree69dcf69af7325f37a5367e59eff0f88da75cc5e6
parent9022cd651aaf7e0cd44d2c987b329f9ae0a21529 (diff)
lets continues work )
-rw-r--r--commonheaders.h3
-rw-r--r--init.cpp20
2 files changed, 22 insertions, 1 deletions
diff --git a/commonheaders.h b/commonheaders.h
index db3682b..a19220c 100644
--- a/commonheaders.h
+++ b/commonheaders.h
@@ -25,6 +25,9 @@
#include <m_database.h>
#include <m_options.h>
#include <m_langpack.h>
+#include <m_clist.h>
+#include <m_icolib.h>
+#include <m_skin.h>
#include "resource.h"
#include "gpgme.h"
diff --git a/init.cpp b/init.cpp
index e64ce15..d03c951 100644
--- a/init.cpp
+++ b/init.cpp
@@ -18,7 +18,7 @@
HINSTANCE hInst;
-static HANDLE hAccountsChanges, hDbContactAdded, hTabsrmmButtonPressed, hTabsrmmToolBarReload;
+static HANDLE hLoadPubKey;
PLUGINLINK *pluginLink;
static int OnModulesLoaded(WPARAM wParam,LPARAM lParam);
extern char *date();
@@ -67,12 +67,24 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
return interfaces;
}
+int LoadKey(WPARAM w, LPARAM l);
+
extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
{
pluginLink=link;
HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
mir_getMMI(&mmi);
mir_getUTFI(&utfi);
+ CreateServiceFunction("/LoadPubKey",LoadKey);
+ CLISTMENUITEM mi;
+ ZeroMemory(&mi,sizeof(mi));
+ mi.cbSize=sizeof(mi);
+ mi.position=-0x7FFFFFFF;
+ mi.flags=0;
+ mi.hIcon=LoadSkinnedIcon(SKINICON_OTHER_MIRANDA);
+ mi.pszName="Load public key";
+ mi.pszService="/LoadPubKey";
+ hLoadPubKey = (HANDLE)CallService(MS_CLIST_ADDCONTACTMENUITEM,0,(LPARAM)&mi);
return 0;
}
@@ -91,3 +103,9 @@ extern "C" int __declspec(dllexport) Unload(void)
{
return 0;
}
+
+
+int LoadKey(WPARAM w, LPARAM l)
+{
+ return 0;
+} \ No newline at end of file