summaryrefslogtreecommitdiff
path: root/plugins/StatusPlugins/StartupStatus/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-24 10:14:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-24 10:14:44 +0000
commitc1b07589623a9d8401982e10a38faaddecd42496 (patch)
treef4458e6fc2a6dceac7672794316ef69aa81c993c /plugins/StatusPlugins/StartupStatus/main.cpp
parent16b08498841634e581ef4e366d9a0bb533e6b513 (diff)
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
Diffstat (limited to 'plugins/StatusPlugins/StartupStatus/main.cpp')
-rw-r--r--plugins/StatusPlugins/StartupStatus/main.cpp12
1 files changed, 6 insertions, 6 deletions
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