aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppMessage.h
diff options
context:
space:
mode:
authorMelvin Keskin <melvo@olomono.de>2021-03-08 20:11:22 +0100
committerGitHub <noreply@github.com>2021-03-08 20:11:22 +0100
commit8efc8ea6aef64455bca04b11c3c4b0e20b532484 (patch)
tree8eced49da7e56f833cfb8534f4ead5261493e67f /src/base/QXmppMessage.h
parent9a1134a415cd550dcb6efd35bd1cf98b8faa236e (diff)
downloadqxmpp-8efc8ea6aef64455bca04b11c3c4b0e20b532484.tar.gz
Implement MIX-MISC XEP-0407: Invitation message extension (#329)
This implements the message extension for MIX invitations from XEP-0407: Mediated Information eXchange (MIX): Miscellaneous Capabilities in version 0.1.2. https://xmpp.org/extensions/xep-0407.html#usecase-user-invite
Diffstat (limited to 'src/base/QXmppMessage.h')
-rw-r--r--src/base/QXmppMessage.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/base/QXmppMessage.h b/src/base/QXmppMessage.h
index 7d7ef83b..eb650370 100644
--- a/src/base/QXmppMessage.h
+++ b/src/base/QXmppMessage.h
@@ -26,13 +26,16 @@
#ifndef QXMPPMESSAGE_H
#define QXMPPMESSAGE_H
-// Required for source compatibility
#include "QXmppStanza.h"
+// Required for source compatibility
#include <QDateTime>
+#include <optional>
+
class QXmppMessagePrivate;
class QXmppBitsOfBinaryDataList;
+class QXmppMixInvitation;
///
/// \brief The QXmppMessage class represents an XMPP message.
@@ -243,6 +246,10 @@ public:
QString spoilerHint() const;
void setSpoilerHint(const QString &);
+ // XEP-0407: Mediated Information eXchange (MIX): Miscellaneous Capabilities
+ std::optional<QXmppMixInvitation> mixInvitation() const;
+ void setMixInvitation(const std::optional<QXmppMixInvitation> &mixInvitation);
+
// XEP-0428: Fallback Indication
bool isFallback() const;
void setIsFallback(bool isFallback);