From 357af8c5a3cf922818ee014a8f2b54a799917eea Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 5 Jun 2012 15:39:50 +0000 Subject: removed old PLUGININFO. plugin info cleanup starts git-svn-id: http://svn.miranda-ng.org/main/trunk@312 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TooltipNotify/src/main.cpp | 74 ++++++++------------------------------ 1 file changed, 14 insertions(+), 60 deletions(-) (limited to 'plugins/TooltipNotify/src') diff --git a/plugins/TooltipNotify/src/main.cpp b/plugins/TooltipNotify/src/main.cpp index 14af3714fe..85e73351a6 100644 --- a/plugins/TooltipNotify/src/main.cpp +++ b/plugins/TooltipNotify/src/main.cpp @@ -10,10 +10,6 @@ static const MUUID MIID_TOOLTIPNOTIFY_UNICODE = { 0x5906a545, 0xf31a, 0x4726, { 0xb4, 0x8f, 0x3, 0xa0, 0x9f, 0x6, 0x3, 0x18 } }; -// {C4475C65-630F-4e70-980F-C0CA98767110} -static const MUUID MIID_TOOLTIPNOTIFY_ANSI = -{ 0xc4475c65, 0x630f, 0x4e70, { 0x98, 0xf, 0xc0, 0xca, 0x98, 0x76, 0x71, 0x10 } }; - // {03CD82B6-0BB5-4f26-8EB4-06CD8ECD36FF} static const MUUID MIID_TOOLTIPNOTIFY = { 0x3cd82b6, 0xbb5, 0x4f26, { 0x8e, 0xb4, 0x6, 0xcd, 0x8e, 0xcd, 0x36, 0xff } }; @@ -80,68 +76,26 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) return interfaces; } - static char szWrongUsage9x[] = - "Warning! You are trying to use unicode version of the plugin on win9x system! " - "It can not be working here. You must use ansi version of the plugin."; - - static char szWrongUsageNt[] = - "Warning! You are using ansi version of the plugin on a unicode-aware system. " - "It is recommended to use unicode version of the plugin."; - - static char szFunctionalDescription[] = - "Shows a small tooltip above system tray area when a contact status is changed."; - - - static PLUGININFOEX sPluginInfo = - { - sizeof(PLUGININFOEX), - "Tooltip Notify", - PLUGIN_MAKE_VERSION(MAJOR,MINOR,BUILD,REVISION), // major, minor, revision, build -#ifdef _UNICODE - g_bRightModule ? szFunctionalDescription : szWrongUsage9x, -#else - g_bRightModule ? szFunctionalDescription : szWrongUsageNt, -#endif - "perf", - "perf@mail333.com", - "© 2004-2008 Gneedah software", - "http://addons.miranda-im.org/details.php?action=viewfile&id=1290", - UNICODE_AWARE, - 0, //doesn't replace anything built-in -#ifdef _UNICODE - MIID_TOOLTIPNOTIFY_UNICODE -#else - MIID_TOOLTIPNOTIFY_ANSI -#endif - }; - -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +static PLUGININFOEX sPluginInfo = { - return &sPluginInfo; -} + sizeof(PLUGININFOEX), + "Tooltip Notify", + PLUGIN_MAKE_VERSION(MAJOR,MINOR,BUILD,REVISION), // major, minor, revision, build + "Shows a small tooltip above system tray area when a contact status is changed.", + "perf", + "perf@mail333.com", + "© 2004-2008 Gneedah software", + "http://addons.miranda-im.org/details.php?action=viewfile&id=1290", + UNICODE_AWARE, + 0, //doesn't replace anything built-in + MIID_TOOLTIPNOTIFY_UNICODE +}; -extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { - PLUGININFOEX* pPluginInfoEx = MirandaPluginInfoEx(mirandaVersion); - - static PLUGININFO sPluginInfo = - { - sizeof(PLUGININFO), - pPluginInfoEx->shortName, - pPluginInfoEx->version, - pPluginInfoEx->description, - pPluginInfoEx->author, - pPluginInfoEx->authorEmail, - pPluginInfoEx->copyright, - pPluginInfoEx->homepage, - pPluginInfoEx->flags, - pPluginInfoEx->replacesDefaultModule - }; - return &sPluginInfo; } - extern "C" int __declspec(dllexport) Load(PLUGINLINK *pLink) { #ifdef _UNICODE -- cgit v1.2.3