diff options
author | George Hazan <ghazan@miranda.im> | 2017-11-23 21:08:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-11-23 21:08:39 +0300 |
commit | 01b51542b22ea4c36001324b6014e3f7667c0981 (patch) | |
tree | 7cbd3d36be89dec75649529e441a23d1e3ebe8c1 /plugins/Dbx_mdb/src/dbintf.h | |
parent | f37c4afa26480bddde72d97c96ae9c8f3ef0ccea (diff) |
common database code to be concentrated in mir_app
Diffstat (limited to 'plugins/Dbx_mdb/src/dbintf.h')
-rw-r--r-- | plugins/Dbx_mdb/src/dbintf.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/plugins/Dbx_mdb/src/dbintf.h b/plugins/Dbx_mdb/src/dbintf.h index d97f11855c..8c93379094 100644 --- a/plugins/Dbx_mdb/src/dbintf.h +++ b/plugins/Dbx_mdb/src/dbintf.h @@ -125,7 +125,7 @@ struct EventItem MEVENT eventId;
};
-struct CDbxMdb : public MIDatabase, public MIDatabaseChecker, public MZeroedObject
+struct CDbxMdb : public MDatabaseCommon, public MIDatabaseChecker, public MZeroedObject
{
friend class LMDBEventCursor;
@@ -176,14 +176,10 @@ public: STDMETHODIMP_(BOOL) EnumModuleNames(DBMODULEENUMPROC pFunc, const void *pParam);
- STDMETHODIMP_(BOOL) GetContactSetting(MCONTACT contactID, LPCSTR szModule, LPCSTR szSetting, DBVARIANT *dbv);
- STDMETHODIMP_(BOOL) GetContactSettingStr(MCONTACT contactID, LPCSTR szModule, LPCSTR szSetting, DBVARIANT *dbv);
- STDMETHODIMP_(BOOL) GetContactSettingStatic(MCONTACT contactID, LPCSTR szModule, LPCSTR szSetting, DBVARIANT *dbv);
- STDMETHODIMP_(BOOL) FreeVariant(DBVARIANT *dbv);
+ STDMETHODIMP_(BOOL) GetContactSettingWorker(MCONTACT contactID, LPCSTR szModule, LPCSTR szSetting, DBVARIANT *dbv, int isStatic);
STDMETHODIMP_(BOOL) WriteContactSetting(MCONTACT contactID, DBCONTACTWRITESETTING *dbcws);
STDMETHODIMP_(BOOL) DeleteContactSetting(MCONTACT contactID, LPCSTR szModule, LPCSTR szSetting);
STDMETHODIMP_(BOOL) EnumContactSettings(MCONTACT hContact, DBSETTINGENUMPROC pfnEnumProc, const char *szModule, const void *param);
- STDMETHODIMP_(BOOL) SetSettingResident(BOOL bIsResident, const char *pszSettingName);
STDMETHODIMP_(BOOL) EnumResidentSettings(DBMODULEENUMPROC pFunc, const void *pParam);
STDMETHODIMP_(BOOL) IsSettingEncrypted(LPCSTR szModule, LPCSTR szSetting);
@@ -230,11 +226,8 @@ protected: MDBX_dbi m_dbSettings;
MDBX_cursor *m_curSettings;
- int m_codePage;
HANDLE hService, hHook;
- LIST<char> m_lResidentSettings;
-
////////////////////////////////////////////////////////////////////////////
// contacts
@@ -270,10 +263,6 @@ protected: uint32_t GetModuleID(const char *szName);
char* GetModuleName(uint32_t dwId);
-
- int GetContactSettingWorker(MCONTACT contactID, LPCSTR szModule, LPCSTR szSetting, DBVARIANT *dbv, int isStatic);
-
-
DBCHeckCallback *cb;
////////////////////////////////////////////////////////////////////////////
@@ -283,7 +272,6 @@ protected: int InitCrypt(void);
CRYPTO_PROVIDER* SelectProvider();
- void GenerateNewKey();
void InitDialogs();
};
\ No newline at end of file |