aboutsummaryrefslogtreecommitdiff
path: root/jobs/downloadfilejob.h
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/downloadfilejob.h')
-rw-r--r--jobs/downloadfilejob.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/jobs/downloadfilejob.h b/jobs/downloadfilejob.h
deleted file mode 100644
index 1815a7c8..00000000
--- a/jobs/downloadfilejob.h
+++ /dev/null
@@ -1,30 +0,0 @@
-#pragma once
-
-#include "generated/content-repo.h"
-
-namespace QMatrixClient
-{
- class DownloadFileJob : public GetContentJob
- {
- public:
- enum { FileError = BaseJob::UserDefinedError + 1 };
-
- 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 beforeStart(const ConnectionData*) override;
- void afterStart(const ConnectionData*,
- QNetworkReply* reply) override;
- void beforeAbandon(QNetworkReply*) override;
- Status parseReply(QNetworkReply*) override;
- };
-}