summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/contactcache.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-09-09 16:14:28 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-09-09 16:14:28 +0000
commit3e6e572558a049fe8ebb7ac2390e954d12b2c320 (patch)
tree9b5493ada959c7522c1c05ef5af000a08393baee /plugins/TabSRMM/src/contactcache.h
parent50a2be2affae63fc6ba4e7ebb22af563f1f8b867 (diff)
we don't use cache for statuses anymore
git-svn-id: http://svn.miranda-ng.org/main/trunk@17276 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/contactcache.h')
-rw-r--r--plugins/TabSRMM/src/contactcache.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/contactcache.h b/plugins/TabSRMM/src/contactcache.h
index a469b4b6a5..1ec1e40221 100644
--- a/plugins/TabSRMM/src/contactcache.h
+++ b/plugins/TabSRMM/src/contactcache.h
@@ -57,15 +57,13 @@ struct TSessionStats {
struct CContactCache : public MZeroedObject
{
- CContactCache() {}
CContactCache(MCONTACT hContact);
~CContactCache()
{
releaseAlloced();
}
- __forceinline bool isValid() const { return m_Valid; }
- __forceinline int getStatus() const { return m_iStatus; }
+ __forceinline bool isValid() const { return m_isValid; }
__forceinline int getActiveStatus() const { return m_isMeta ? m_iMetaStatus : getStatus(); }
__forceinline int getOldStatus() const { return m_iOldStatus; }
__forceinline LPCWSTR getNick() const { return m_szNick; }
@@ -94,6 +92,11 @@ struct CContactCache : public MZeroedObject
__forceinline TWindowData* getDat() const { return m_dat; }
+ int getStatus(void) const
+ {
+ return db_get_w(m_hContact, cc->szProto, "Status", ID_STATUS_OFFLINE);
+ }
+
size_t getMaxMessageLength();
void updateStats(int iType, size_t value = 0);
@@ -136,7 +139,7 @@ private:
BYTE m_xStatus;
DWORD m_idleTS;
bool m_isMeta;
- bool m_Valid;
+ bool m_isValid;
bool m_isFavorite;
bool m_isRecent;
HWND m_hwnd;