summaryrefslogtreecommitdiff
path: root/plugins/TooltipNotify/src/DbHelpers.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-03-24 19:30:28 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-03-24 19:30:28 +0000
commit3fed56c332215dd3a753d2fc0b31616c1b270a51 (patch)
treeb3b88cfde907ac4ad412eb21c42ee214741ab42f /plugins/TooltipNotify/src/DbHelpers.cpp
parent4a0f83abb71146f2f7675dac274c93abda61d25e (diff)
TooltipNotify now uses status description from the core
git-svn-id: http://svn.miranda-ng.org/main/trunk@4176 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TooltipNotify/src/DbHelpers.cpp')
-rw-r--r--plugins/TooltipNotify/src/DbHelpers.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/TooltipNotify/src/DbHelpers.cpp b/plugins/TooltipNotify/src/DbHelpers.cpp
index 4a4fad9c1f..017e01451c 100644
--- a/plugins/TooltipNotify/src/DbHelpers.cpp
+++ b/plugins/TooltipNotify/src/DbHelpers.cpp
@@ -41,7 +41,7 @@ void DeleteModuleSettings(HANDLE hContact, const char* pszModuleName)
{
for(unsigned i=0; i<settingsList.size(); i++)
{
- DBDeleteContactSetting(hContact, pszModuleName, settingsList[i]);
+ db_unset(hContact, pszModuleName, settingsList[i]);
free((char*)settingsList[i]);
}
}
@@ -87,31 +87,31 @@ void RenameModule(HANDLE hContact, const char* pszOldName, const char* pszNewNam
switch (dbv.type)
{
case DBVT_BYTE:
- DBWriteContactSettingByte(hContact, pszNewName, pszSetting, dbv.bVal);
+ db_set_b(hContact, pszNewName, pszSetting, dbv.bVal);
break;
case DBVT_WORD:
- DBWriteContactSettingWord(hContact, pszNewName, pszSetting, dbv.wVal);
+ db_set_w(hContact, pszNewName, pszSetting, dbv.wVal);
break;
case DBVT_DWORD:
- DBWriteContactSettingDword(hContact, pszNewName, pszSetting, dbv.dVal);
+ db_set_dw(hContact, pszNewName, pszSetting, dbv.dVal);
break;
case DBVT_ASCIIZ:
- DBWriteContactSettingString(hContact, pszNewName, pszSetting, dbv.pszVal);
+ db_set_s(hContact, pszNewName, pszSetting, dbv.pszVal);
break;
case DBVT_UTF8:
- DBWriteContactSettingStringUtf(hContact, pszNewName, pszSetting, dbv.pszVal);
+ db_set_utf(hContact, pszNewName, pszSetting, dbv.pszVal);
break;
default:
assert(0);
break;
}
- DBDeleteContactSetting(hContact, pszOldName, pszSetting);
- DBFreeVariant(&dbv);
+ db_unset(hContact, pszOldName, pszSetting);
+ db_free(&dbv);
}
free((char*)settingsList[i]);
}