diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-12 21:44:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-12 21:44:56 +0300 |
commit | 53fe3e46177d17b4941610de19f5cc6210700cb4 (patch) | |
tree | b67a6bc208dad141f9db14035cd7e42ff2a51872 /src/mir_app | |
parent | 488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff) |
db_* functions replaced with g_plugin calls
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/idle.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mir_app/src/idle.cpp b/src/mir_app/src/idle.cpp index bc58e6b587..3927d4108f 100644 --- a/src/mir_app/src/idle.cpp +++ b/src/mir_app/src/idle.cpp @@ -37,7 +37,7 @@ MIR_APP_DLL(void) Idle_Enter(int type) { int flags = 0; - if (db_get_b(0, MODULENAME, "IdlePrivate")) + if (g_plugin.getByte("IdlePrivate")) flags |= IDF_PRIVACY; if (!g_bIsIdle && type != -1) { @@ -55,11 +55,11 @@ MIR_APP_DLL(void) Idle_Enter(int type) MIR_APP_DLL(void) Idle_GetInfo(MIRANDA_IDLE_INFO &pInfo) { - pInfo.idleTime = db_get_dw(0, MODULENAME, "IdleTime1st"); - pInfo.privacy = db_get_b(0, MODULENAME, "IdlePrivate"); - pInfo.aaStatus = db_get_b(0, MODULENAME, "AAEnable", 1) ? db_get_w(0, MODULENAME, "AAStatus") : 0; - pInfo.aaLock = db_get_b(0, MODULENAME, "IdleStatusLock"); - pInfo.idlesoundsoff = db_get_b(0, MODULENAME, "IdleSoundsOff"); + pInfo.idleTime = g_plugin.getDword("IdleTime1st"); + pInfo.privacy = g_plugin.getByte("IdlePrivate"); + pInfo.aaStatus = g_plugin.getByte("AAEnable", 1) ? g_plugin.getWord("AAStatus") : 0; + pInfo.aaLock = g_plugin.getByte("IdleStatusLock"); + pInfo.idlesoundsoff = g_plugin.getByte("IdleSoundsOff"); pInfo.idleType = g_idleType; } |