diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-12 19:51:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-12 19:51:40 +0000 |
commit | 30c4b3dffcac968f7275bdb0a4509b89bca7af79 (patch) | |
tree | ac2fcfbece175e044905e240df366b1497523fc9 /plugins/SeenPlugin/src/main.cpp | |
parent | 0eaa9b7962e4a0ac6d54c0c8856e0ca7f9d7b110 (diff) |
SeenPlugin converted to Unicode
git-svn-id: http://svn.miranda-ng.org/main/trunk@1896 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SeenPlugin/src/main.cpp')
-rw-r--r-- | plugins/SeenPlugin/src/main.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/plugins/SeenPlugin/src/main.cpp b/plugins/SeenPlugin/src/main.cpp index 310b3e9148..405804dc95 100644 --- a/plugins/SeenPlugin/src/main.cpp +++ b/plugins/SeenPlugin/src/main.cpp @@ -29,17 +29,17 @@ HANDLE ehdb = NULL, ehproto = NULL, ehmissed = NULL, ehuserinfo = NULL, ehmissed int hLangpack;
-PLUGININFOEX pluginInfo={
- sizeof(PLUGININFOEX),
- "Last seen",
- PLUGIN_MAKE_VERSION(5,0,4,7),
- "Log when a user was last seen online and which users were online while you were away.",
- "Heiko Schillinger, YB",
- "y_b@saaplugin.no-ip.info",
- "© 2001-2002 Heiko Schillinger, 2003 modified by Bruno Rino, 2005-7 Modified by YB",
- "http://miranda-ng.org/",
- UNICODE_AWARE,
- { 0x2d506d46,0xc94e,0x4ef8,{0x85, 0x37, 0xf1, 0x12, 0x33, 0xa8, 0x03, 0x81}}/* 2d506d46-c94e-4ef8-8537-f11233a80381 */
+PLUGININFOEX pluginInfo = {
+ sizeof(PLUGININFOEX),
+ "Last seen",
+ PLUGIN_MAKE_VERSION(5,1,0,0),
+ "Log when a user was last seen online and which users were online while you were away.",
+ "Heiko Schillinger, YB",
+ "y_b@saaplugin.no-ip.info",
+ "© 2001-2002 Heiko Schillinger, 2003 modified by Bruno Rino, 2005-7 Modified by YB",
+ "http://miranda-ng.org/",
+ UNICODE_AWARE,
+ { 0x2d506d46,0xc94e,0x4ef8,{0x85, 0x37, 0xf1, 0x12, 0x33, 0xa8, 0x03, 0x81}}/* 2d506d46-c94e-4ef8-8537-f11233a80381 */
};
#define TRANSNUMBER 2
@@ -58,20 +58,20 @@ int MainInit(WPARAM wparam,LPARAM lparam) contactQueue = (logthread_info **)malloc(contactQueueSize);
memset(&contactQueue[0], 0, contactQueueSize);
contactQueueSize = 16;
- includeIdle = (BOOL )DBGetContactSettingByte(NULL,S_MOD,"IdleSupport",1);
+ includeIdle = (BOOL )db_get_b(NULL,S_MOD,"IdleSupport",1);
hOptInit = HookEvent(ME_OPT_INITIALISE, OptionsInit);
- if(DBGetContactSettingByte(NULL,S_MOD,"MenuItem",1)) {
+ if ( db_get_b(NULL,S_MOD,"MenuItem",1)) {
InitMenuitem();
}
- if(DBGetContactSettingByte(NULL,S_MOD,"UserinfoTab",1))
+ if ( db_get_b(NULL,S_MOD,"UserinfoTab",1))
ehuserinfo = HookEvent(ME_USERINFO_INITIALISE,UserinfoInit);
- if(DBGetContactSettingByte(NULL,S_MOD,"FileOutput",0))
+ if ( db_get_b(NULL,S_MOD,"FileOutput",0))
InitFileOutput();
- if(DBGetContactSettingByte(NULL,S_MOD,"MissedOnes",0))
+ if ( db_get_b(NULL,S_MOD,"MissedOnes",0))
ehmissed_proto=HookEvent(ME_PROTO_ACK,ModeChange_mo);
ehdb = HookEvent(ME_DB_CONTACT_SETTINGCHANGED, UpdateValues);
@@ -85,7 +85,7 @@ int MainInit(WPARAM wparam,LPARAM lparam) // known modules list
if (ServiceExists("DBEditorpp/RegisterSingleModule"))
CallService("DBEditorpp/RegisterSingleModule", (WPARAM)S_MOD, 0);
- DBWriteContactSettingString(NULL,"Uninstall",Translate("Last seen"),S_MOD);
+ db_set_s(NULL,"Uninstall",Translate("Last seen"),S_MOD);
if ( ServiceExists(MS_TIPPER_ADDTRANSLATION)) {
@@ -105,9 +105,9 @@ extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirand extern "C" __declspec(dllexport) int Unload(void)
{
UnhookEvent(ehdb);
- if(ehmissed) UnhookEvent(ehmissed);
+ if (ehmissed) UnhookEvent(ehmissed);
UnhookEvent(ehproto);
- if(ehmissed_proto) UnhookEvent(ehmissed_proto);
+ if (ehmissed_proto) UnhookEvent(ehmissed_proto);
UnhookEvent(hOptInit);
UnhookEvent(hMainInit);
if (ehuserinfo) UnhookEvent(ehuserinfo);
|