aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppMessage.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-02-18 14:35:48 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-02-18 14:35:48 +0000
commitc5a44ae2523a298737d3ba8be0b32318a03d7260 (patch)
treee6be40f0a9d053a1edd3f859574897cf191f84e5 /source/QXmppMessage.h
parent87b7c17bb63e55109e3c0b67dd5dd97803562897 (diff)
downloadqxmpp-c5a44ae2523a298737d3ba8be0b32318a03d7260.tar.gz
add support for XEP-0085 : Chat State Notifications
Diffstat (limited to 'source/QXmppMessage.h')
-rw-r--r--source/QXmppMessage.h16
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;