5#ifndef QXMPPFILESHARE_H
6#define QXMPPFILESHARE_H
8#include "QXmppGlobal.h"
13#include <QSharedDataPointer>
17class QXmlStreamWriter;
18class 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;
Represents an encrypted file source for file sharing.
Definition QXmppEncryptedFileSource.h:21
Definition QXmppFileShare.h:24
Disposition
Decides whether to display the file contents (e.g. an image) inline in the chat or as a file.
Definition QXmppFileShare.h:26
Definition QXmppFileSharingManager.h:121
Provides progress of stateless file sharing uploads.
Definition QXmppFileSharingManager.h:32
Definition QXmppHttpFileSource.h:16