diff options
| author | Melvin Keskin <melvo@olomono.de> | 2021-03-08 20:11:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-08 20:11:22 +0100 |
| commit | 8efc8ea6aef64455bca04b11c3c4b0e20b532484 (patch) | |
| tree | 8eced49da7e56f833cfb8534f4ead5261493e67f /src/base/QXmppMessage.h | |
| parent | 9a1134a415cd550dcb6efd35bd1cf98b8faa236e (diff) | |
| download | qxmpp-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.h | 9 |
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); |
