summaryrefslogtreecommitdiff
path: root/plugins/Variables/help.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-01 10:21:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-01 10:21:56 +0000
commita41c9020b7fcbc4d05fcb37097177cc0efc7cdce (patch)
tree5bda74986883a9152123474152c6546547211b9d /plugins/Variables/help.cpp
parent0ae8779546586eba91408d03949d45ec9ced5133 (diff)
db_helpers.cpp deleted
git-svn-id: http://svn.miranda-ng.org/main/trunk@708 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/help.cpp')
-rw-r--r--plugins/Variables/help.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/Variables/help.cpp b/plugins/Variables/help.cpp
index 66d24ee12f..9c35806f11 100644
--- a/plugins/Variables/help.cpp
+++ b/plugins/Variables/help.cpp
@@ -148,14 +148,13 @@ static INT_PTR CALLBACK clistDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM
break;
case VARM_SETSUBJECT: {
- TCHAR *tszContact;
LPARAM res = 0;
HANDLE hContact, hItem;
hContact = (HANDLE)wParam;
log_debugA("VARM_SETSUBJECT: %u", hContact);
if (hContact == INVALID_HANDLE_VALUE) {
- tszContact = db_gets(SETTING_SUBJECT, NULL);
+ TCHAR *tszContact = db_get_tsa(NULL, MODULENAME, SETTING_SUBJECT);
log_debugA("VARM_SETSUBJECT: %s", tszContact);
if (tszContact != NULL) {
hContact = decodeContactFromString(tszContact);
@@ -233,13 +232,13 @@ static INT_PTR CALLBACK clistDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM
break;
case WM_DESTROY:
- db_del(SETTING_SUBJECT);
+ db_unset(NULL, MODULENAME, SETTING_SUBJECT);
{
HANDLE hContact = (HANDLE)SendMessage(hwndDlg, VARM_GETSUBJECT, 0, 0);
if (hContact != NULL) {
TCHAR *tszContact = encodeContactToString(hContact);
if (tszContact != NULL) {
- db_sets(SETTING_SUBJECT, tszContact);
+ db_set_ts(NULL, MODULENAME, SETTING_SUBJECT, tszContact);
mir_free(tszContact);
} } }
break;
@@ -677,7 +676,7 @@ static INT_PTR CALLBACK inputDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM
ZeroMemory(dat, sizeof(INPUTDLGDATA));
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)dat);
// splitter things
- dat->splitterPos = (INT_PTR)db_getd(SETTING_SPLITTERPOS, -1);
+ dat->splitterPos = (INT_PTR)db_get_dw(NULL, MODULENAME, SETTING_SPLITTERPOS, -1);
{
RECT rc;
POINT pt;
@@ -816,7 +815,7 @@ static INT_PTR CALLBACK inputDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM
case WM_DESTROY:
KillTimer(hwndDlg, IDT_PARSE);
- db_setd(SETTING_SPLITTERPOS, dat->splitterPos);
+ db_set_dw(NULL, MODULENAME, SETTING_SPLITTERPOS, dat->splitterPos);
SetWindowLongPtr(GetDlgItem(hwndDlg, IDC_SPLITTER), GWLP_WNDPROC, (LONG_PTR) OldSplitterProc);
if (dat != NULL) {
mir_free(dat);