From 914e0b89c4aa13461d4f36fdfcb1b49bb3f00456 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 3 Mar 2014 15:44:40 +0000 Subject: - META_PROTO/Default went to cache; - MIDatabase::MetaSetDefault method added to store the default sub in a database; - Meta_SettingChanged fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@8380 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_db_int.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/m_db_int.h') diff --git a/include/m_db_int.h b/include/m_db_int.h index 95cd993878..3989424c40 100644 --- a/include/m_db_int.h +++ b/include/m_db_int.h @@ -52,10 +52,10 @@ struct DBCachedContact DBCachedContactValue *first, *last; // metacontacts - int nSubs; // == -1 -> not a metacontact at all + int nSubs; // == -1 -> not a metacontact MCONTACT *pSubs; - MCONTACT parentID, // == 0 -> not a subcontact - activeID; // manually chosen active sub + MCONTACT parentID; // == 0 -> not a subcontact + int nDefault; // default sub number }; interface MIDatabaseCache : public MZeroedObject @@ -113,6 +113,7 @@ interface MIDatabase STDMETHOD_(BOOL, IsSettingEncrypted)(LPCSTR szModule, LPCSTR szSetting) PURE; STDMETHOD_(BOOL, MetaDetouchSub)(DBCachedContact*, int nSub) PURE; + STDMETHOD_(BOOL, MetaSetDefault)(DBCachedContact*) PURE; }; /////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3