From 5c2f5a27a78d50b6814a89c974214e7d294f5981 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 3 Mar 2014 12:34:53 +0000 Subject: - MIDatabase::MetaDetouchSub = new method for the mc support virtualization - further cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@8376 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/src/dbcontacts.cpp | 9 +++++++++ plugins/Db3x_mmap/src/dbintf.h | 2 ++ 2 files changed, 11 insertions(+) (limited to 'plugins/Db3x_mmap') diff --git a/plugins/Db3x_mmap/src/dbcontacts.cpp b/plugins/Db3x_mmap/src/dbcontacts.cpp index fcfd56afb9..5420037b90 100644 --- a/plugins/Db3x_mmap/src/dbcontacts.cpp +++ b/plugins/Db3x_mmap/src/dbcontacts.cpp @@ -199,6 +199,15 @@ STDMETHODIMP_(BOOL) CDb3Mmap::IsDbContact(MCONTACT contactID) return FALSE; } +///////////////////////////////////////////////////////////////////////////////////////// +// metacontacts support + +BOOL CDb3Mmap::MetaDetouchSub(DBCachedContact *cc, int nSub) +{ + CallService(MS_DB_MODULE_DELETE, cc->pSubs[nSub], (LPARAM)META_PROTO); + return 0; +} + ///////////////////////////////////////////////////////////////////////////////////////// // contacts convertor diff --git a/plugins/Db3x_mmap/src/dbintf.h b/plugins/Db3x_mmap/src/dbintf.h index 6be58c9634..986ac700d0 100644 --- a/plugins/Db3x_mmap/src/dbintf.h +++ b/plugins/Db3x_mmap/src/dbintf.h @@ -234,6 +234,8 @@ public: STDMETHODIMP_(BOOL) EnumResidentSettings(DBMODULEENUMPROC pFunc, void *pParam); STDMETHODIMP_(BOOL) IsSettingEncrypted(LPCSTR szModule, LPCSTR szSetting); + STDMETHODIMP_(BOOL) MetaDetouchSub(DBCachedContact *cc, int nSub); + protected: STDMETHODIMP_(BOOL) Start(DBCHeckCallback *callback); STDMETHODIMP_(BOOL) CheckDb(int phase, int firstTime); -- cgit v1.2.3