From c1b07589623a9d8401982e10a38faaddecd42496 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 24 Mar 2013 10:14:44 +0000 Subject: StartupStatus: - Unicode profile names; - the correct profile is displayed in the confirmation dialog - special resource files for VC6 removed; - code cleaning; - version bump. git-svn-id: http://svn.miranda-ng.org/main/trunk@4172 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/StatusPlugins/StartupStatus/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/StatusPlugins/StartupStatus/main.cpp') diff --git a/plugins/StatusPlugins/StartupStatus/main.cpp b/plugins/StatusPlugins/StartupStatus/main.cpp index e259aaf13a..65488c63a5 100644 --- a/plugins/StatusPlugins/StartupStatus/main.cpp +++ b/plugins/StatusPlugins/StartupStatus/main.cpp @@ -75,17 +75,17 @@ extern "C" int __declspec(dllexport) Load(void) mir_getLP( &pluginInfoEx ); pcli = (CLIST_INTERFACE*)CallService( MS_CLIST_RETRIEVE_INTERFACE, 0, 0); - if ( DBGetContactSettingByte(NULL, MODULENAME, SETTING_SETPROFILE, 1) || - DBGetContactSettingByte(NULL, MODULENAME, SETTING_OFFLINECLOSE, 0)) - DBWriteContactSettingWord(NULL, "CList", "Status", (WORD)ID_STATUS_OFFLINE); + if ( db_get_b(NULL, MODULENAME, SETTING_SETPROFILE, 1) || + db_get_b(NULL, MODULENAME, SETTING_OFFLINECLOSE, 0)) + db_set_w(NULL, "CList", "Status", (WORD)ID_STATUS_OFFLINE); // docking - if (DBGetContactSettingByte(NULL, MODULENAME, SETTING_SETDOCKED, 0)) { - int docked = DBGetContactSettingByte(NULL, MODULENAME, SETTING_DOCKED, DOCKED_NONE); + if (db_get_b(NULL, MODULENAME, SETTING_SETDOCKED, 0)) { + int docked = db_get_b(NULL, MODULENAME, SETTING_DOCKED, DOCKED_NONE); if ( docked == DOCKED_LEFT || docked == DOCKED_RIGHT ) docked = -docked; - DBWriteContactSettingByte(NULL, MODULE_CLIST, SETTING_DOCKED, (BYTE)docked); + db_set_b(NULL, MODULE_CLIST, SETTING_DOCKED, (BYTE)docked); } // Create service functions; the get functions are created here; they don't rely on commonstatus -- cgit v1.2.3