From 68f167995e7ba71a6f2e556a7a0eab3d234e2d1a Mon Sep 17 00:00:00 2001 From: Jonah BrĂ¼chert Date: Fri, 9 Sep 2022 23:15:10 +0200 Subject: Implement XEP-0448: Stateless File Sharing This adds a file sharing manager that is capable of using multiple back ends. Currently implemented are a normal HTTP File Upload backend and an encrypted HTTP File Upload. Jingle File Transfer could be implemented later. Co-authored-by: Linus Jahn --- src/base/QXmppFileShare.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/base/QXmppFileShare.h') diff --git a/src/base/QXmppFileShare.h b/src/base/QXmppFileShare.h index b0d48bd3..b8506836 100644 --- a/src/base/QXmppFileShare.h +++ b/src/base/QXmppFileShare.h @@ -7,6 +7,9 @@ #include "QXmppGlobal.h" +#include +#include + #include class QDomElement; @@ -43,6 +46,13 @@ public: /// \cond bool parse(const QDomElement &el); void toXml(QXmlStreamWriter *writer) const; + +protected: + friend class QXmppFileSharingManager; + + // Private, internally used API: + void visitSources(std::function &&visitor) const; + void addSource(const std::any &source); /// \endcond private: -- cgit v1.2.3