diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-03 15:44:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-03 15:44:40 +0000 |
commit | 914e0b89c4aa13461d4f36fdfcb1b49bb3f00456 (patch) | |
tree | 82e26a44d5494700d4077295468051fb41dccd85 /include/m_db_int.h | |
parent | 2cbc7f36727cc86800c0866df859a0ab473b678e (diff) |
- 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
Diffstat (limited to 'include/m_db_int.h')
-rw-r--r-- | include/m_db_int.h | 7 |
1 files changed, 4 insertions, 3 deletions
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;
};
///////////////////////////////////////////////////////////////////////////////
|