diff options
author | George Hazan <george.hazan@gmail.com> | 2016-08-08 11:12:32 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-08-08 11:12:32 +0000 |
commit | 2cdd9ae1c6bbd4c19dcf3393db1943c1dff39604 (patch) | |
tree | 2423705f3ebb84915ca84d3c34d375df1a016bd2 /plugins/TabSRMM/src/contactcache.h | |
parent | 77d2c4bc51547dcf8812375812961c9fbb87e666 (diff) |
more cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@17170 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/contactcache.h')
-rw-r--r-- | plugins/TabSRMM/src/contactcache.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/contactcache.h b/plugins/TabSRMM/src/contactcache.h index 0c3ce81892..8e5c2afef4 100644 --- a/plugins/TabSRMM/src/contactcache.h +++ b/plugins/TabSRMM/src/contactcache.h @@ -65,8 +65,9 @@ struct CContactCache : public MZeroedObject }
__forceinline bool isValid() const { return m_Valid; }
- __forceinline WORD getActiveStatus() const { return m_isMeta ? m_wMetaStatus : getStatus(); }
- __forceinline WORD getOldStatus() const { return m_wOldStatus; }
+ __forceinline int getStatus() const { return m_iStatus; }
+ __forceinline int getActiveStatus() const { return m_isMeta ? m_iMetaStatus : getStatus(); }
+ __forceinline int getOldStatus() const { return m_iOldStatus; }
__forceinline LPCWSTR getNick() const { return m_szNick; }
__forceinline MCONTACT getContact() const { return m_hContact; }
__forceinline MCONTACT getActiveContact() const { return (m_isMeta) ? m_hSub : m_hContact; }
@@ -94,12 +95,11 @@ struct CContactCache : public MZeroedObject __forceinline TWindowData* getDat() const { return m_dat; }
size_t getMaxMessageLength();
- int getStatus() const;
void updateStats(int iType, size_t value = 0);
////////////////////////////////////////////////////////////////////////////
- void updateStatus();
+ bool updateStatus(int iStatus);
void updateState();
bool updateNick();
void updateMeta();
@@ -129,7 +129,7 @@ private: void releaseAlloced();
MCONTACT m_hContact, m_hSub;
- WORD m_wStatus, m_wOldStatus, m_wMetaStatus;
+ int m_iStatus, m_iOldStatus, m_iMetaStatus;
char *m_szMetaProto;
wchar_t *m_szAccount;
wchar_t m_szNick[80], m_szUIN[80];
|