summaryrefslogtreecommitdiff
path: root/plugins/TooltipNotify/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-05 15:39:50 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-05 15:39:50 +0000
commit357af8c5a3cf922818ee014a8f2b54a799917eea (patch)
tree2ed1b38f979d7b3991f9ca9a4103347f2fddfe62 /plugins/TooltipNotify/src
parenta039e3378554f4f7b12a38722f72dfded2f4b277 (diff)
removed old PLUGININFO. plugin info cleanup starts
git-svn-id: http://svn.miranda-ng.org/main/trunk@312 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TooltipNotify/src')
-rw-r--r--plugins/TooltipNotify/src/main.cpp74
1 files changed, 14 insertions, 60 deletions
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