From a780d365fe9740d6533f4667fc8220eac148cd7d Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Tue, 13 Sep 2022 23:11:19 +0200 Subject: Implement XEP-0447: Stateless file sharing: File sharing element (#448) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implements parsing for the file sharing element from XEP-0447: Stateless files sharing version 0.2. https://xmpp.org/extensions/xep-0447.html Co-authored-by: Jonah BrĂ¼chert --- src/base/QXmppMessage.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/base/QXmppMessage.h') diff --git a/src/base/QXmppMessage.h b/src/base/QXmppMessage.h index 43949118..a4d4fcbe 100644 --- a/src/base/QXmppMessage.h +++ b/src/base/QXmppMessage.h @@ -8,6 +8,7 @@ #ifndef QXMPPMESSAGE_H #define QXMPPMESSAGE_H +#include "QXmppFileShare.h" #include "QXmppStanza.h" #include @@ -248,6 +249,10 @@ public: std::optional trustMessageElement() const; void setTrustMessageElement(const std::optional &trustMessageElement); + // XEP-0447: Stateless file sharing + const QVector &sharedFiles() const; + void setSharedFiles(const QVector &sharedFiles); + /// \cond #ifdef BUILD_OMEMO // XEP-0384: OMEMO Encryption -- cgit v1.2.3