From 25221b7d2afb70f82eb3805330fd39a6f6708049 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jun 2012 23:41:55 +0000 Subject: 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 --- plugins/Popup/src/config.cpp | 3 --- plugins/Popup/src/config.h | 2 -- plugins/Popup/src/main.cpp | 14 ++++++-------- 3 files changed, 6 insertions(+), 13 deletions(-) (limited to 'plugins/Popup') 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); -- cgit v1.2.3