aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppFileShare.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/QXmppFileShare.h')
-rw-r--r--src/base/QXmppFileShare.h10
1 files changed, 10 insertions, 0 deletions
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 <any>
+#include <functional>
+
#include <QSharedDataPointer>
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<bool(const std::any &)> &&visitor) const;
+ void addSource(const std::any &source);
/// \endcond
private: