From 7bdb598e26e7e98788933af43090d34027166969 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 14 Sep 2016 18:01:49 +0000 Subject: second major wipeout of database services & structures: - DBCONTACTENUMSETTINGS removed; - all helpers moved to mir_core.dll git-svn-id: http://svn.miranda-ng.org/main/trunk@17296 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TooltipNotify/src/DbHelpers.cpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'plugins/TooltipNotify') diff --git a/plugins/TooltipNotify/src/DbHelpers.cpp b/plugins/TooltipNotify/src/DbHelpers.cpp index 4393e44b5a..8fe93249a6 100644 --- a/plugins/TooltipNotify/src/DbHelpers.cpp +++ b/plugins/TooltipNotify/src/DbHelpers.cpp @@ -13,12 +13,7 @@ static int EnumSettingsProc1(const char*, LPARAM) bool ModuleSettingsExists(MCONTACT hContact, const char* pszModuleName) { - DBCONTACTENUMSETTINGS dbces = {0}; - dbces.szModule = pszModuleName; - dbces.pfnEnumProc = EnumSettingsProc1; - - int nResult = ::CallService(MS_DB_CONTACT_ENUMSETTINGS, hContact, (LPARAM)&dbces); - return (nResult != -1); + return db_enum_settings(hContact, EnumSettingsProc1, pszModuleName) != -1; } static int EnumSettingsProc2(const char *pszSetting, LPARAM lParam) @@ -31,12 +26,7 @@ static int EnumSettingsProc2(const char *pszSetting, LPARAM lParam) void DeleteModuleSettings(MCONTACT hContact, const char* pszModuleName) { SettingsList settingsList; - DBCONTACTENUMSETTINGS dbces = {0}; - dbces.szModule = pszModuleName; - dbces.lParam = (LPARAM)&settingsList; - dbces.pfnEnumProc = EnumSettingsProc2; - - int nResult = ::CallService(MS_DB_CONTACT_ENUMSETTINGS, hContact, (LPARAM)&dbces); + int nResult = db_enum_settings(hContact, EnumSettingsProc2, pszModuleName, &settingsList); if (nResult != -1) { for(unsigned i=0; i