5 #ifndef QXMPPFILESHARE_H 6 #define QXMPPFILESHARE_H 8 #include "QXmppGlobal.h" 13 #include <QSharedDataPointer> 17 class QXmlStreamWriter;
18 class QXmppFileSharePrivate;
40 const QVector<QXmppHttpFileSource> &httpSources()
const;
41 void setHttpSources(
const QVector<QXmppHttpFileSource> &newHttpSources);
43 const QVector<QXmppEncryptedFileSource> &encryptedSources()
const;
44 void setEncryptedSourecs(
const QVector<QXmppEncryptedFileSource> &newEncryptedSources);
47 bool parse(
const QDomElement &el);
48 void toXml(QXmlStreamWriter *writer)
const;
55 void visitSources(std::function<
bool(
const std::any &)> &&visitor)
const;
56 void addSource(
const std::any &source);
60 QSharedDataPointer<QXmppFileSharePrivate> d;
63 #endif // QXMPPFILESHARE_H Definition: QXmppFileSharingManager.h:120
Definition: QXmppFileShare.h:23
Disposition
Decides whether to display the file contents (e.g. an image) inline in the chat or as a file...
Definition: QXmppFileShare.h:26
Provides progress of stateless file sharing uploads.
Definition: QXmppFileSharingManager.h:31
Represents an encrypted file source for file sharing.
Definition: QXmppEncryptedFileSource.h:20
Definition: QXmppHttpFileSource.h:15