blob: e00fd9e4022475f9f37ba5d0d3294e058ab12898 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#include "csapi/content-repo.h"
namespace Quotient {
class DownloadFileJob : public GetContentJob {
public:
using GetContentJob::makeRequestUrl;
static QUrl makeRequestUrl(QUrl baseUrl, const QUrl& mxcUri);
DownloadFileJob(const QString& serverName, const QString& mediaId,
const QString& localFilename = {});
QString targetFileName() const;
private:
class Private;
QScopedPointer<Private> d;
void doPrepare() override;
void onSentRequest(QNetworkReply* reply) override;
void beforeAbandon() override;
Status prepareResult() override;
};
} // namespace Quotient
|