From c5a44ae2523a298737d3ba8be0b32318a03d7260 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 18 Feb 2010 14:35:48 +0000 Subject: add support for XEP-0085 : Chat State Notifications --- source/QXmppMessage.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source/QXmppMessage.h') diff --git a/source/QXmppMessage.h b/source/QXmppMessage.h index e985706c..2590e088 100644 --- a/source/QXmppMessage.h +++ b/source/QXmppMessage.h @@ -39,6 +39,18 @@ public: Headline }; + // XEP-0085 : Chat State Notifications + // http://xmpp.org/extensions/xep-0085.html + enum State + { + None = 0, + Active, + Inactive, + Gone, + Composing, + Paused, + }; + QXmppMessage(const QString& from = "", const QString& to = "", const QString& body = "", const QString& thread = ""); ~QXmppMessage(); @@ -48,6 +60,9 @@ public: void setType(QXmppMessage::Type); void setTypeFromStr(const QString&); + QXmppMessage::State getState() const; + void setState(QXmppMessage::State); + QString getBody() const; void setBody(const QString&); QString getSubject() const; @@ -60,6 +75,7 @@ public: private: Type m_type; + State m_state; QString m_body; QString m_subject; -- cgit v1.2.3