6#ifndef QXMPPENCRYPTEDHTTPFILESHARINGPROVIDER_H
7#define QXMPPENCRYPTEDHTTPFILESHARINGPROVIDER_H
9#include "QXmppEncryptedFileSource.h"
10#include "QXmppHttpFileSharingProvider.h"
13class QXmppEncryptedFileSharingProviderPrivate;
25 auto downloadFile(
const std::any &source,
26 std::unique_ptr<QIODevice> target,
27 std::function<
void(quint64, quint64)> reportProgress,
28 std::function<
void(
DownloadResult)> reportFinished) -> std::shared_ptr<Download>
override;
30 auto uploadFile(std::unique_ptr<QIODevice> source,
32 std::function<
void(quint64, quint64)> reportProgress,
33 std::function<
void(
UploadResult)> reportFinished) -> std::shared_ptr<Upload>
override;
36 std::unique_ptr<QXmppEncryptedFileSharingProviderPrivate> d;
Definition QXmppEncryptedFileSharingProvider.h:16
Represents an encrypted file source for file sharing.
Definition QXmppEncryptedFileSource.h:21
Definition QXmppFileSharingManager.h:121
The interface of a provider for the QXmppFileSharingManager.
Definition QXmppFileSharingProvider.h:32
std::variant< QXmpp::Success, QXmpp::Cancelled, QXmppError > DownloadResult
Definition QXmppFileSharingProvider.h:36
std::variant< std::any, QXmpp::Cancelled, QXmppError > UploadResult
Definition QXmppFileSharingProvider.h:40