summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify/src/indsnd.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2012-12-10 20:38:35 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2012-12-10 20:38:35 +0000
commitd2528d31bac20ff2f7f41355cd398d929d83136a (patch)
tree0255b613a37fea391b1e3b3e74ed66a943f60d80 /plugins/NewXstatusNotify/src/indsnd.cpp
parent4d4710c1749592ec32b5adec4d2c974ebc5fa4ce (diff)
-fixed status message notification for hidden contacts (reported by Andrzej Aleksiejuk)
-removed the deprecated & bizarre aliases git-svn-id: http://svn.miranda-ng.org/main/trunk@2715 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/src/indsnd.cpp')
-rw-r--r--plugins/NewXstatusNotify/src/indsnd.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/NewXstatusNotify/src/indsnd.cpp b/plugins/NewXstatusNotify/src/indsnd.cpp
index f516f44e02..dc47decc5c 100644
--- a/plugins/NewXstatusNotify/src/indsnd.cpp
+++ b/plugins/NewXstatusNotify/src/indsnd.cpp
@@ -160,10 +160,10 @@ INT_PTR CALLBACK DlgProcSoundUIPage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
lvi.pszText = TranslateTS(StatusList[Index(i)].lpzStandardText);
lvi.iItem = ListView_InsertItem(hList, &lvi);
- if (!DBGetContactSettingTString(hContact, MODULE, StatusList[Index(i)].lpzSkinSoundName, &dbv))
+ if (!db_get_ts(hContact, MODULE, StatusList[Index(i)].lpzSkinSoundName, &dbv))
{
_tcscpy(buff, dbv.ptszVal);
- DBFreeVariant(&dbv);
+ db_free(&dbv);
}
else
_tcscpy(buff, TranslateT(DEFAULT_SOUND));
@@ -181,10 +181,10 @@ INT_PTR CALLBACK DlgProcSoundUIPage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
lvi.pszText = TranslateT("From offline");
lvi.iItem = ListView_InsertItem(hList, &lvi);
- if (!DBGetContactSettingTString(hContact, MODULE, "UserFromOffline", &dbv))
+ if (!db_get_ts(hContact, MODULE, "UserFromOffline", &dbv))
{
_tcscpy(buff, dbv.ptszVal);
- DBFreeVariant(&dbv);
+ db_free(&dbv);
}
else
_tcscpy(buff, TranslateT(DEFAULT_SOUND));
@@ -244,12 +244,12 @@ INT_PTR CALLBACK DlgProcSoundUIPage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
}
case IDC_CHECK_NOTIFYSOUNDS:
{
- DBWriteContactSettingByte(hContact, MODULE, "EnableSounds", IsDlgButtonChecked(hwndDlg, IDC_CHECK_NOTIFYSOUNDS) ? 1 : 0);
+ db_set_b(hContact, MODULE, "EnableSounds", IsDlgButtonChecked(hwndDlg, IDC_CHECK_NOTIFYSOUNDS) ? 1 : 0);
break;
}
case IDC_CHECK_NOTIFYPOPUPS:
{
- DBWriteContactSettingByte(hContact, MODULE, "EnablePopups", IsDlgButtonChecked(hwndDlg, IDC_CHECK_NOTIFYPOPUPS) ? 1 : 0);
+ db_set_b(hContact, MODULE, "EnablePopups", IsDlgButtonChecked(hwndDlg, IDC_CHECK_NOTIFYPOPUPS) ? 1 : 0);
break;
}
}
@@ -274,9 +274,9 @@ INT_PTR CALLBACK DlgProcSoundUIPage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
if (!_tcscmp(buff, TranslateT(DEFAULT_SOUND)))
{
if (lvi.lParam == ID_STATUS_FROMOFFLINE)
- DBDeleteContactSetting(hContact, MODULE, "UserFromOffline");
+ db_unset(hContact, MODULE, "UserFromOffline");
else
- DBDeleteContactSetting(hContact, MODULE, StatusList[Index(lvi.lParam)].lpzSkinSoundName);
+ db_unset(hContact, MODULE, StatusList[Index(lvi.lParam)].lpzSkinSoundName);
}
else
{
@@ -638,24 +638,24 @@ INT_PTR CALLBACK DlgProcFiltering(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
if (hItem)
{
if (GetExtraImage(hList, hItem, EXTRA_IMAGE_SOUND) == EXTRA_IMAGE_SOUND)
- DBDeleteContactSetting(hContact, MODULE, "EnableSounds");
+ db_unset(hContact, MODULE, "EnableSounds");
else
- DBWriteContactSettingByte(hContact, MODULE, "EnableSounds", 0);
+ db_set_b(hContact, MODULE, "EnableSounds", 0);
if (GetExtraImage(hList, hItem, EXTRA_IMAGE_POPUP) == EXTRA_IMAGE_POPUP)
- DBDeleteContactSetting(hContact, MODULE, "EnablePopups");
+ db_unset(hContact, MODULE, "EnablePopups");
else
- DBWriteContactSettingByte(hContact, MODULE, "EnablePopups", 0);
+ db_set_b(hContact, MODULE, "EnablePopups", 0);
if (GetExtraImage(hList, hItem, EXTRA_IMAGE_XSTATUS) == EXTRA_IMAGE_XSTATUS)
- DBDeleteContactSetting(hContact, MODULE, "EnableXStatusNotify");
+ db_unset(hContact, MODULE, "EnableXStatusNotify");
else
- DBWriteContactSettingByte(hContact, MODULE, "EnableXStatusNotify", 0);
+ db_set_b(hContact, MODULE, "EnableXStatusNotify", 0);
if (GetExtraImage(hList, hItem, EXTRA_IMAGE_LOGGING) == EXTRA_IMAGE_LOGGING)
- DBDeleteContactSetting(hContact, MODULE, "EnableLogging");
+ db_unset(hContact, MODULE, "EnableLogging");
else
- DBWriteContactSettingByte(hContact, MODULE, "EnableLogging", 0);
+ db_set_b(hContact, MODULE, "EnableLogging", 0);
}
} while(hContact = db_find_next(hContact));