aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppMessage.h
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-09-13 23:11:19 +0200
committerGitHub <noreply@github.com>2022-09-13 23:11:19 +0200
commita780d365fe9740d6533f4667fc8220eac148cd7d (patch)
tree32842f8342e8a001aef03c3dcf22a7199b597805 /src/base/QXmppMessage.h
parentc846f91c1750a35c17dbddcfd9176460765d5997 (diff)
downloadqxmpp-a780d365fe9740d6533f4667fc8220eac148cd7d.tar.gz
Implement XEP-0447: Stateless file sharing: File sharing element (#448)
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 <jbb@kaidan.im>
Diffstat (limited to 'src/base/QXmppMessage.h')
-rw-r--r--src/base/QXmppMessage.h5
1 files changed, 5 insertions, 0 deletions
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 <optional>
@@ -248,6 +249,10 @@ public:
std::optional<QXmppTrustMessageElement> trustMessageElement() const;
void setTrustMessageElement(const std::optional<QXmppTrustMessageElement> &trustMessageElement);
+ // XEP-0447: Stateless file sharing
+ const QVector<QXmppFileShare> &sharedFiles() const;
+ void setSharedFiles(const QVector<QXmppFileShare> &sharedFiles);
+
/// \cond
#ifdef BUILD_OMEMO
// XEP-0384: OMEMO Encryption