diff options
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; |
