diff options
Diffstat (limited to 'src/base/QXmppMessage.h')
| -rw-r--r-- | src/base/QXmppMessage.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/base/QXmppMessage.h b/src/base/QXmppMessage.h index 2743ca13..21c656c1 100644 --- a/src/base/QXmppMessage.h +++ b/src/base/QXmppMessage.h @@ -3,6 +3,8 @@ * * Author: * Manjeet Dahiya + * Jeremy Lainé + * Linus Jahn * * Source: * https://github.com/qxmpp-project/qxmpp @@ -24,7 +26,6 @@ #ifndef QXMPPMESSAGE_H #define QXMPPMESSAGE_H -#include <QDateTime> #include "QXmppStanza.h" class QXmppMessagePrivate; @@ -36,9 +37,8 @@ class QXmppMessagePrivate; class QXMPP_EXPORT QXmppMessage : public QXmppStanza { public: - /// This enum described a message type. - enum Type - { + /// This enum describes a message type. + enum Type { Error = 0, Normal, Chat, @@ -48,8 +48,7 @@ public: /// This enum describes a chat state as defined by XEP-0085: Chat State /// Notifications. - enum State - { + enum State { None = 0, ///< The message does not contain any chat state information. Active, ///< User is actively participating in the chat session. Inactive, ///< User has not been actively participating in the chat session. @@ -94,6 +93,8 @@ public: QXmppMessage& operator=(const QXmppMessage &other); + bool isXmppStanza() const override; + QString body() const; void setBody(const QString&); @@ -133,7 +134,7 @@ public: QString xhtml() const; void setXhtml(const QString &xhtml); - // XEP-0333: Chat Markers + // XEP-0333: Chat State Markers bool isMarkable() const; void setMarkable(const bool); @@ -150,8 +151,6 @@ public: bool isPrivate() const; void setPrivate(const bool); - bool isXmppStanza() const override; - // XEP-0066: Out of Band Data QString outOfBandUrl() const; void setOutOfBandUrl(const QString&); @@ -199,6 +198,9 @@ public: /// \endcond private: + void parseExtension(const QDomElement &element, QXmppElementList &unknownElements); + void parseXElement(const QDomElement &element, QXmppElementList &unknownElements); + QSharedDataPointer<QXmppMessagePrivate> d; }; |
