6#ifndef QXMPPHTTPFILESHARINGPROVIDER_H
7#define QXMPPHTTPFILESHARINGPROVIDER_H
9#include "QXmppFileSharingProvider.h"
10#include "QXmppHttpFileSource.h"
13class QNetworkAccessManager;
15class QXmppHttpFileSharingProviderPrivate;
28 std::unique_ptr<QIODevice> target,
29 std::function<
void(quint64, quint64)> reportProgress,
30 std::function<
void(
DownloadResult)> reportFinished) -> std::shared_ptr<Download>
override;
31 auto uploadFile(std::unique_ptr<QIODevice> source,
33 std::function<
void(quint64, quint64)> reportProgress,
34 std::function<
void(
UploadResult)> reportFinished) -> std::shared_ptr<Upload>
override;
37 std::unique_ptr<QXmppHttpFileSharingProviderPrivate> d;
The interface of a provider for the QXmppFileSharingManager.
Definition: QXmppFileSharingProvider.h:32
virtual auto uploadFile(std::unique_ptr< QIODevice > source, const QXmppFileMetadata &info, std::function< void(quint64, quint64)> reportProgress, std::function< void(UploadResult)> reportFinished) -> std::shared_ptr< Upload >=0
Handles the upload of a file for this provider.
virtual auto downloadFile(const std::any &source, std::unique_ptr< QIODevice > target, std::function< void(quint64, quint64)> reportProgress, std::function< void(DownloadResult)> reportFinished) -> std::shared_ptr< Download >=0
Handles the download of files for this provider.
std::variant< QXmpp::Success, QXmpp::Cancelled, QXmppError > DownloadResult
Definition: QXmppFileSharingProvider.h:36
std::variant< std::any, QXmpp::Cancelled, QXmppError > UploadResult
Definition: QXmppFileSharingProvider.h:40
Definition: QXmppHttpFileSharingProvider.h:18
Definition: QXmppHttpFileSource.h:16
Definition: QXmppHttpUploadManager.h:54