summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/contactcache.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-09 18:53:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-09 18:53:22 +0000
commit3096166d9f66a25d9f74924b66fdd19624364593 (patch)
tree5f36ee69f595e48a46f99880d735f6acfedece8c /plugins/TabSRMM/src/contactcache.h
parentf5add60f90e833abe8817bbe3beb64fe5a2b76a8 (diff)
fix for tabSRMM sub selection
git-svn-id: http://svn.miranda-ng.org/main/trunk@8519 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/contactcache.h')
-rw-r--r--plugins/TabSRMM/src/contactcache.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/TabSRMM/src/contactcache.h b/plugins/TabSRMM/src/contactcache.h
index 193acb8ec9..141f93e52c 100644
--- a/plugins/TabSRMM/src/contactcache.h
+++ b/plugins/TabSRMM/src/contactcache.h
@@ -77,12 +77,12 @@ struct CContactCache : public MZeroedObject
const WORD getOldStatus() const { return m_wOldStatus; }
const TCHAR* getNick() const { return m_szNick; }
const MCONTACT getContact() const { return m_hContact; }
- const MCONTACT getActiveContact() const { return m_isMeta ? (m_hSubContact ? m_hSubContact : m_hContact) : m_hContact; }
+ const MCONTACT getActiveContact() const { return m_isMeta ? cc->nDefault : m_hContact; }
const DWORD getIdleTS() const { return m_idleTS; }
- const char* getProto() const { return m_szProto; }
- const char* getActiveProto() const { return m_isMeta ? (m_szMetaProto ? m_szMetaProto : m_szProto) : m_szProto; }
+ const char* getProto() const { return cc->szProto; }
+ const char* getActiveProto() const { return m_isMeta ? (m_szMetaProto ? m_szMetaProto : cc->szProto) : cc->szProto; }
bool isMeta() const { return m_isMeta; }
- bool isSubContact() const { return m_isSubcontact; }
+ bool isSubContact() const { return cc->IsSub(); }
bool isFavorite() const { return m_isFavorite; }
bool isRecent() const { return m_isRecent; }
const TCHAR* getRealAccount() const { return m_szAccount ? m_szAccount : C_INVALID_ACCOUNT; }
@@ -133,15 +133,14 @@ private:
void releaseAlloced();
MCONTACT m_hContact;
- MCONTACT m_hSubContact;
WORD m_wStatus, m_wOldStatus;
- char* m_szProto, *m_szMetaProto;
- TCHAR* m_szAccount;
+ char *m_szMetaProto;
+ TCHAR *m_szAccount;
TCHAR m_szNick[80], m_szUIN[80];
- TCHAR* m_szStatusMsg, *m_xStatusMsg, *m_ListeningInfo;
+ TCHAR *m_szStatusMsg, *m_xStatusMsg, *m_ListeningInfo;
BYTE m_xStatus;
DWORD m_idleTS;
- bool m_isMeta, m_isSubcontact;
+ bool m_isMeta;
bool m_Valid;
bool m_isFavorite;
bool m_isRecent;
@@ -152,6 +151,7 @@ private:
TWindowData *m_dat;
TSessionStats *m_stats;
TInputHistory *m_history;
+ DBCachedContact *cc;
};
#endif /* __CONTACTCACHE_H */