From 007b4c7301f0d26a72f89f74e9929f42e24eb3e6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 5 Apr 2013 22:27:16 +0000 Subject: - rest of menus cleared; - old database macroses wiped out from all plugins (left in m_database.h for compatibility) git-svn-id: http://svn.miranda-ng.org/main/trunk@4324 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AssocMgr/src/assoclist.cpp | 36 ++++++++++++++++++------------------ plugins/AssocMgr/src/reg.cpp | 4 ++-- plugins/AssocMgr/src/test.cpp | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) (limited to 'plugins/AssocMgr/src') diff --git a/plugins/AssocMgr/src/assoclist.cpp b/plugins/AssocMgr/src/assoclist.cpp index cc2a58828a..4124b493f4 100644 --- a/plugins/AssocMgr/src/assoclist.cpp +++ b/plugins/AssocMgr/src/assoclist.cpp @@ -51,7 +51,7 @@ static BOOL IsAssocEnabled(const ASSOCDATA *assoc) { char szSetting[MAXMODULELABELLENGTH]; mir_snprintf(szSetting, sizeof(szSetting), "enabled_%s", assoc->pszClassName); - return DBGetContactSettingByte(NULL, "AssocMgr", szSetting, (BYTE)!(assoc->flags&FTDF_DEFAULTDISABLED))!= 0; + return db_get_b(NULL, "AssocMgr", szSetting, (BYTE)!(assoc->flags&FTDF_DEFAULTDISABLED))!= 0; } static void SetAssocEnabled(const ASSOCDATA *assoc, BOOL fEnabled) @@ -59,13 +59,13 @@ static void SetAssocEnabled(const ASSOCDATA *assoc, BOOL fEnabled) char szSetting[MAXMODULELABELLENGTH]; TCHAR szDLL[MAX_PATH], szBuf[MAX_PATH]; mir_snprintf(szSetting, sizeof(szSetting), "enabled_%s", assoc->pszClassName); - DBWriteContactSettingByte(NULL, "AssocMgr", szSetting, (BYTE)fEnabled); + db_set_b(NULL, "AssocMgr", szSetting, (BYTE)fEnabled); /* dll name for uninstall */ if(assoc->hInstance!= NULL && assoc->hInstance!= hInst && assoc->hInstance!= GetModuleHandle(NULL)) if( GetModuleFileName(assoc->hInstance, szBuf, SIZEOF(szBuf))) if( PathToRelativeT(szBuf, szDLL)) { mir_snprintf(szSetting, sizeof(szSetting), "module_%s", assoc->pszClassName); - DBWriteContactSettingTString(NULL, "AssocMgr", szSetting, szDLL); + db_set_ts(NULL, "AssocMgr", szSetting, szDLL); } } @@ -73,10 +73,10 @@ static void DeleteAssocEnabledSetting(const ASSOCDATA *assoc) { char szSetting[MAXMODULELABELLENGTH]; mir_snprintf(szSetting, sizeof(szSetting), "enabled_%s", assoc->pszClassName); - DBDeleteContactSetting(NULL, "AssocMgr", szSetting); + db_unset(NULL, "AssocMgr", szSetting); /* dll name for uninstall */ mir_snprintf(szSetting, sizeof(szSetting), "module_%s", assoc->pszClassName); - DBDeleteContactSetting(NULL, "AssocMgr", szSetting); + db_unset(NULL, "AssocMgr", szSetting); } void CleanupAssocEnabledSettings(void) @@ -95,13 +95,13 @@ void CleanupAssocEnabledSettings(void) for(i = 0;i