aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppMessage.h
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2019-04-27 21:37:31 +0100
committerLNJ <lnj@kaidan.im>2019-09-06 18:04:40 +0200
commit8ab56c2cf1ff490b78def3f9799d4b8a99965d47 (patch)
tree3b363feee85fd10a59b684c3e9067f1f1cde3eb4 /src/base/QXmppMessage.h
parent499b6567a9b3f9838a0d0f082d8baabd05414ff9 (diff)
Implement XEP-0367: Message Attaching
This adds parsing and serialization for XEP-0367: Message Attaching in version 0.3.0.
Diffstat (limited to 'src/base/QXmppMessage.h')
-rw-r--r--src/base/QXmppMessage.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/base/QXmppMessage.h b/src/base/QXmppMessage.h
index 0101e211..330c70fe 100644
--- a/src/base/QXmppMessage.h
+++ b/src/base/QXmppMessage.h
@@ -21,7 +21,6 @@
*
*/
-
#ifndef QXMPPMESSAGE_H
#define QXMPPMESSAGE_H
@@ -33,7 +32,6 @@ class QXmppMessagePrivate;
/// \brief The QXmppMessage class represents an XMPP message.
///
/// \ingroup Stanzas
-///
class QXMPP_EXPORT QXmppMessage : public QXmppStanza
{
@@ -48,8 +46,8 @@ public:
Headline
};
- /// This enum describes a chat state as defined by
- /// XEP-0085 : Chat State Notifications.
+ /// This enum describes a chat state as defined by XEP-0085: Chat State
+ /// Notifications.
enum State
{
None = 0, ///< The message does not contain any chat state information.
@@ -60,8 +58,7 @@ public:
Paused ///< User had been composing but now has stopped.
};
- /// This enum describes a chat marker as defined by
- /// XEP-0333 : Char Markers
+ /// This enum describes a chat marker as defined by XEP-0333: Chat Markers.
enum Marker {
NoMarker = 0,
Received,
@@ -116,7 +113,7 @@ public:
QString xhtml() const;
void setXhtml(const QString &xhtml);
- // XEP-0333
+ // XEP-0333: Chat Markers
bool isMarkable() const;
void setMarkable(const bool);
@@ -143,6 +140,10 @@ public:
QString replaceId() const;
void setReplaceId(const QString&);
+ // XEP-0367: Message Attaching
+ QString attachId() const;
+ void setAttachId(const QString&);
+
// XEP-0369: Mediated Information eXchange (MIX)
QString mixUserJid() const;
void setMixUserJid(const QString&);