summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/svc_email.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-23 21:56:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-23 21:56:20 +0000
commit037286255b6a26ed5fba94c5fe9e68b88c1755f7 (patch)
tree81508b2d8829b9757981ad5e39a1de6945859626 /plugins/UserInfoEx/src/svc_email.cpp
parent8110099815a7ab25ff492ba34814eb21c9640ab9 (diff)
unifoex moved to the standard db_* functions
git-svn-id: http://svn.miranda-ng.org/main/trunk@5103 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/svc_email.cpp')
-rw-r--r--plugins/UserInfoEx/src/svc_email.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/plugins/UserInfoEx/src/svc_email.cpp b/plugins/UserInfoEx/src/svc_email.cpp
index 105d7f2c68..bcc452c628 100644
--- a/plugins/UserInfoEx/src/svc_email.cpp
+++ b/plugins/UserInfoEx/src/svc_email.cpp
@@ -189,7 +189,7 @@ void SvcEMailRebuildMenu()
{
static HANDLE hPrebuildMenuHook = NULL;
- if (DB::Setting::GetByte(SET_EXTENDED_EMAILSERVICE, TRUE))
+ if (db_get_b(NULL, MODNAME, SET_EXTENDED_EMAILSERVICE, TRUE))
{
if (!hPrebuildMenuHook)
{
@@ -230,13 +230,9 @@ void SvcEMailRebuildMenu()
**/
void SvcEMailApplyCListIcons()
{
- HANDLE hContact;
-
//walk through all the contacts stored in the DB
- for (hContact = DB::Contact::FindFirst(); hContact != NULL; hContact = DB::Contact::FindNext(hContact))
- {
+ for (HANDLE hContact = db_find_first(); hContact != NULL; hContact = db_find_next(hContact))
OnCListApplyIcons((WPARAM)hContact, 0);
- }
}
/**
@@ -248,7 +244,7 @@ void SvcEMailApplyCListIcons()
void SvcEMailEnableExtraIcons(BYTE bEnable, BYTE bUpdateDB)
{
if (bUpdateDB)
- DB::Setting::WriteByte(SET_CLIST_EXTRAICON_EMAIL, bEnable);
+ db_set_b(NULL, MODNAME, SET_CLIST_EXTRAICON_EMAIL, bEnable);
if (bEnable) { // E-mail checkt
// hook events
@@ -284,7 +280,7 @@ void SvcEMailEnableExtraIcons(BYTE bEnable, BYTE bUpdateDB)
void SvcEMailOnModulesLoaded()
{
SvcEMailEnableExtraIcons(
- DB::Setting::GetByte(SET_CLIST_EXTRAICON_EMAIL,
+ db_get_b(NULL, MODNAME, SET_CLIST_EXTRAICON_EMAIL,
DEFVAL_CLIST_EXTRAICON_EMAIL), FALSE);
}
@@ -293,7 +289,7 @@ void SvcEMailOnModulesLoaded()
**/
void SvcEMailLoadModule()
{
- if (DB::Setting::GetByte(SET_EXTENDED_EMAILSERVICE, TRUE)) {
+ if (db_get_b(NULL, MODNAME, SET_EXTENDED_EMAILSERVICE, TRUE)) {
// create own email send command
if (!myDestroyServiceFunction(MS_EMAIL_SENDEMAIL))
CreateServiceFunction(MS_EMAIL_SENDEMAIL, MenuCommand);