From 98cc2fb7669f4fe014c78baca0e71015f63b6191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 14 Apr 2014 09:35:31 +0000 Subject: NameDay: Update with my old changes (still not adopted) - Ignore diacritict when checking names - Check also own defined name through UserInfoEx - Another small fixes / updates - Add TODO list git-svn-id: http://svn.miranda-ng.org/main/trunk@8970 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/!NotAdopted/name_day/name_day.cpp | 42 ++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 14 deletions(-) (limited to 'plugins/!NotAdopted/name_day/name_day.cpp') diff --git a/plugins/!NotAdopted/name_day/name_day.cpp b/plugins/!NotAdopted/name_day/name_day.cpp index 822f6ba439..7ef4b65be8 100644 --- a/plugins/!NotAdopted/name_day/name_day.cpp +++ b/plugins/!NotAdopted/name_day/name_day.cpp @@ -2,30 +2,38 @@ * @file Name day plugin */ #include -#include "../../headers_c/newpluginapi.h" +#include #include "name_day_core.h" static name_day_core_t name_day_core; -HINSTANCE hInst; -PLUGINLINK *pluginLink; +HINSTANCE hInst = NULL; +PLUGINLINK *pluginLink = NULL; + /** * @brief Plugin info. * */ -PLUGININFO pluginInfo={ - sizeof(PLUGININFO), - "Name Day Plugin", - PLUGIN_MAKE_VERSION(0, 0, 0, 7), +PLUGININFOEX pluginInfo={ + sizeof(PLUGININFOEX), + #ifdef _WIN64 + "Name Day x64", + #else + "Name Day", + #endif + PLUGIN_MAKE_VERSION(0, 0, 1, 0), "The Name Day plugin.", - "Tibor Szabo", - "tibor.szabo@gmail.com", - "© 2005 Tibor Szabo", - "", - 0, //not transient - 0 //doesn't replace anything built-in + "Tibor Szabo, Robert Pösel", + "robyer@seznam.cz", + "© 2005 Tibor Szabo, © 2011 Robert Pösel", + "http://code.google.com/p/robyer", + UNICODE_AWARE, //not transient + 0, //doesn't replace anything built-in + // {E3FFE398-7004-46df-9FF1-9E0B8239FDE2} + { 0xe3ffe398, 0x7004, 0x46df, { 0x9f, 0xf1, 0x9e, 0xb, 0x82, 0x39, 0xfd, 0xe2 } } + }; /** @@ -43,7 +51,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) * @brief Plugin Info * */ -extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { return &pluginInfo; } @@ -66,6 +74,12 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) return 0; } +static const MUUID interfaces[] = {MIID_NAMEDAY, MIID_LAST}; +extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) +{ + return interfaces; +} + /** * @brief Unload * -- cgit v1.2.3