From 6d7087f75d1c08474e69ae4325afd0b661d71c1e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 Jan 2014 14:33:33 +0000 Subject: ability to detect whether a setting is encrypted or not git-svn-id: http://svn.miranda-ng.org/main/trunk@7629 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_tree/src/Compatibility.cpp | 6 ++++++ plugins/Dbx_tree/src/DataBase.h | 1 + 2 files changed, 7 insertions(+) (limited to 'plugins/Dbx_tree/src') diff --git a/plugins/Dbx_tree/src/Compatibility.cpp b/plugins/Dbx_tree/src/Compatibility.cpp index 4ea0092e7b..4c04e63cf4 100644 --- a/plugins/Dbx_tree/src/Compatibility.cpp +++ b/plugins/Dbx_tree/src/Compatibility.cpp @@ -844,6 +844,12 @@ STDMETHODIMP_(BOOL) CDataBase::EnumResidentSettings(DBMODULEENUMPROC pFunc, void STDMETHODIMP_(void) CDataBase::SetCacheSafetyMode(BOOL) {} + +STDMETHODIMP_(BOOL) CDataBase::IsSettingEncrypted(LPCSTR szModule, LPCSTR szSetting) +{ + return FALSE; +} + bool CompatibilityRegister() { hEventDeletedEvent = CreateHookableEvent(ME_DB_EVENT_DELETED); diff --git a/plugins/Dbx_tree/src/DataBase.h b/plugins/Dbx_tree/src/DataBase.h index 539abd6564..0d03cd6f3d 100644 --- a/plugins/Dbx_tree/src/DataBase.h +++ b/plugins/Dbx_tree/src/DataBase.h @@ -226,6 +226,7 @@ protected: // to be compatible with the standard Miranda databases STDMETHODIMP_(BOOL) EnumContactSettings(HANDLE hContact, DBCONTACTENUMSETTINGS* dbces); STDMETHODIMP_(BOOL) SetSettingResident(BOOL bIsResident, const char *pszSettingName); STDMETHODIMP_(BOOL) EnumResidentSettings(DBMODULEENUMPROC pFunc, void *pParam); + STDMETHODIMP_(BOOL) IsSettingEncrypted(LPCSTR szModule, LPCSTR szSetting); int CheckProto(HANDLE hContact, const char *proto); }; -- cgit v1.2.3