diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-26 23:41:55 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-26 23:41:55 +0000 |
commit | 25221b7d2afb70f82eb3805330fd39a6f6708049 (patch) | |
tree | 6fdd3eb5c5642788e1f8286385b15535f9a7ec16 /plugins/Popup/src | |
parent | ef81e9edc10e2478f514e1fbfb0828ad1e7d8e49 (diff) |
mk: removed all LIST_INTERFACE, MI_INTERFACE & UTF8_INTERFACE instances.
all related functions moved to mir_core.
git-svn-id: http://svn.miranda-ng.org/main/trunk@644 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src')
-rw-r--r-- | plugins/Popup/src/config.cpp | 3 | ||||
-rw-r--r-- | plugins/Popup/src/config.h | 2 | ||||
-rw-r--r-- | plugins/Popup/src/main.cpp | 14 |
3 files changed, 6 insertions, 13 deletions
diff --git a/plugins/Popup/src/config.cpp b/plugins/Popup/src/config.cpp index b013ecb3dc..7fecae0141 100644 --- a/plugins/Popup/src/config.cpp +++ b/plugins/Popup/src/config.cpp @@ -39,9 +39,6 @@ HANDLE hMainThread; PLUGINLINK *pluginLink;
HANDLE hSemaphore;
BOOL closing = FALSE;
-MM_INTERFACE mmi;
-LIST_INTERFACE li;
-UTF8_INTERFACE utfi;
MTEXT_INTERFACE MText = {0};
HANDLE folderId;
BOOL gbPopupLoaded = FALSE;
diff --git a/plugins/Popup/src/config.h b/plugins/Popup/src/config.h index 3fe8e7facc..2f6a25d33e 100644 --- a/plugins/Popup/src/config.h +++ b/plugins/Popup/src/config.h @@ -144,12 +144,10 @@ void LoadOptions(); //===== General Plugin =====
extern HINSTANCE hInst;
extern HANDLE hMainThread;
-//extern MNOTIFYLINK *notifyLink; //deprecatet
extern PLUGINLINK *pluginLink;
extern HANDLE hSemaphore;
extern BOOL closing;
extern HANDLE folderId;
-extern UTF8_INTERFACE utfi;
extern MTEXT_INTERFACE MText;
extern HANDLE htuText;
diff --git a/plugins/Popup/src/main.cpp b/plugins/Popup/src/main.cpp index 06779ef5d5..acd94f3cdc 100644 --- a/plugins/Popup/src/main.cpp +++ b/plugins/Popup/src/main.cpp @@ -112,7 +112,7 @@ static struct { {MS_POPUP_GETCONTACT, PopUp_GetContact, 0},
{MS_POPUP_GETPLUGINDATA, PopUp_GetPluginData, 0},
{MS_POPUP_ISSECONDLINESHOWN, PopUp_IsSecondLineShown, 0},
-
+
{MS_POPUP_SHOWMESSAGE, PopUp_ShowMessage, 0},
{MS_POPUP_SHOWMESSAGEW, PopUp_ShowMessageW, 0},
{MS_POPUP_QUERY, PopUp_Query, 0},
@@ -266,7 +266,7 @@ INT_PTR svcEnableDisableMenuCommand(WPARAM wp, LPARAM lp) DBWriteContactSettingByte(NULL, MODULNAME, "ModuleIsEnabled", FALSE);
mi.ptszName = LPGENT("Enable &popup module");
mi.hIcon = IcoLib_GetIcon(ICO_POPUP_OFF,0);
- }
+ }
else {
//The module is disabled.
//The action to do is enable popups (show enabled), then write "disable popup" in the new item.
@@ -334,7 +334,7 @@ INT_PTR GetStatus(WPARAM wp, LPARAM lp) }
//register Updatersupport
-void registerUpdate() {
+void registerUpdate() {
Update update = {0};
char szVersion[16];
update.cbSize = sizeof(Update);
@@ -359,7 +359,7 @@ void registerUpdate() { }
//register Hotkey
-void LoadHotkey() {
+void LoadHotkey() {
HOTKEYDESC hk = {0};
hk.cbSize = sizeof(hk);
hk.dwFlags = HKD_TCHAR;
@@ -503,9 +503,7 @@ MIRAPI int Load(PLUGINLINK *link) DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &hMainThread, THREAD_SET_CONTEXT, FALSE, 0);
- mir_getLI (&li);
- mir_getUTFI (&utfi);
- mir_getMTI (&MText);
+ mir_getMTI(&MText);
mir_getLP(&pluginInfoEx);
#if defined(_DEBUG)
@@ -547,7 +545,7 @@ MIRAPI int Load(PLUGINLINK *link) if (DBGetContactSetting(NULL, "KnownModules", MODULNAME, &dbv))
DBWriteContactSettingString(NULL, "KnownModules", pluginInfoEx.shortName, MODULNAME);
DBFreeVariant(&dbv);
-
+
hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);
hOptionsInitialize = HookEvent(ME_OPT_INITIALISE, OptionsInitialize);
hOkToExit = HookEvent(ME_SYSTEM_OKTOEXIT, OkToExit);
|