summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-12 18:34:27 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-12 18:34:27 +0300
commit35a2b1771115068077ce6db13860766e70405de1 (patch)
tree3c58de2e19d5b3be66eb7b74cd631ca4fcc1bba3 /include
parentfc1b90ac5521548d3062062faf72e7fc2196122e (diff)
MIDatabase became pure interface
Diffstat (limited to 'include')
-rw-r--r--include/m_db_int.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/m_db_int.h b/include/m_db_int.h
index 4178434dc0..c3fc97eecd 100644
--- a/include/m_db_int.h
+++ b/include/m_db_int.h
@@ -82,8 +82,6 @@ interface MIDatabaseCache : public MZeroedObject
interface MIR_APP_EXPORT MIDatabase
{
- MIDatabaseCache* m_cache;
-
STDMETHOD_(BOOL, IsRelational)(void) PURE;
STDMETHOD_(void, SetCacheSafetyMode)(BOOL) PURE;
@@ -137,6 +135,7 @@ protected:
mir_cs m_csDbAccess;
LIST<char> m_lResidentSettings;
+ MIDatabaseCache* m_cache;
protected:
int CheckProto(DBCachedContact *cc, const char *proto);
@@ -147,6 +146,8 @@ public:
MDatabaseCommon();
virtual ~MDatabaseCommon();
+ __forceinline MIDatabaseCache* getCache() const { return m_cache; }
+
STDMETHODIMP_(BOOL) DeleteModule(MCONTACT contactID, LPCSTR szModule);
STDMETHODIMP_(MCONTACT) FindFirstContact(const char *szProto = nullptr);