diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-02-18 14:35:48 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-02-18 14:35:48 +0000 |
| commit | c5a44ae2523a298737d3ba8be0b32318a03d7260 (patch) | |
| tree | e6be40f0a9d053a1edd3f859574897cf191f84e5 /source/QXmppMessage.h | |
| parent | 87b7c17bb63e55109e3c0b67dd5dd97803562897 (diff) | |
| download | qxmpp-c5a44ae2523a298737d3ba8be0b32318a03d7260.tar.gz | |
add support for XEP-0085 : Chat State Notifications
Diffstat (limited to 'source/QXmppMessage.h')
| -rw-r--r-- | source/QXmppMessage.h | 16 |
1 files changed, 16 insertions, 0 deletions
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; |
