aboutsummaryrefslogtreecommitdiff
path: root/jobs/downloadfilejob.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-03 19:18:17 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-03 19:18:17 +0900
commit15d8e2b7b5268cd9c7fc69826f905de80c82fa54 (patch)
treece40e5097265a33b9bd5986bd13fe65a3fb8849a /jobs/downloadfilejob.cpp
parent23dc9a3259108f8e0c55e535b9341042f1ff77f5 (diff)
downloadlibquotient-15d8e2b7b5268cd9c7fc69826f905de80c82fa54.tar.gz
libquotient-15d8e2b7b5268cd9c7fc69826f905de80c82fa54.zip
DownloadFileJob, MediaThumbnailJob: augment generated makeRequestUrl() methods
Diffstat (limited to 'jobs/downloadfilejob.cpp')
-rw-r--r--jobs/downloadfilejob.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/jobs/downloadfilejob.cpp b/jobs/downloadfilejob.cpp
index 06fa3b48..07d14197 100644
--- a/jobs/downloadfilejob.cpp
+++ b/jobs/downloadfilejob.cpp
@@ -20,6 +20,11 @@ class DownloadFileJob::Private
QScopedPointer<QFile> tempFile;
};
+QUrl DownloadFileJob::makeRequestUrl(QUrl baseUrl, const QUrl& mxcUri)
+{
+ return makeRequestUrl(baseUrl, mxcUri.authority(), mxcUri.path().mid(1));
+}
+
DownloadFileJob::DownloadFileJob(const QString& serverName,
const QString& mediaId,
const QString& localFilename)