summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-02-07 08:43:50 +0000
committerRobert Pösel <robyer@seznam.cz>2015-02-07 08:43:50 +0000
commitbca544e48bda364d28bf3d732e0b578683870ebf (patch)
tree64b710b5777cf5c83ab583e277111c26ff9fe381 /protocols/FacebookRM/src/proto.h
parentcaaf768bfac9eec37f9461c8354cb62a1216f773 (diff)
Facebook: Correct implementation of idle time reporting, update channel request
git-svn-id: http://svn.miranda-ng.org/main/trunk@12036 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.h')
-rw-r--r--protocols/FacebookRM/src/proto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/proto.h b/protocols/FacebookRM/src/proto.h
index 28ee25429c..fec92279d2 100644
--- a/protocols/FacebookRM/src/proto.h
+++ b/protocols/FacebookRM/src/proto.h
@@ -51,9 +51,15 @@ public:
//return (m_iStatus == ID_STATUS_INVISIBLE);
}
+ inline int IdleSeconds()
+ {
+ return m_idleTS ? time(0) - m_idleTS : 0;
+ }
+
bool m_invisible;
bool m_enableChat;
bool m_signingOut;
+ time_t m_idleTS;
std::string m_locale;
// DB utils missing in proto_interface