aboutsummaryrefslogtreecommitdiff
path: root/jobs/mediathumbnailjob.cpp
diff options
context:
space:
mode:
authorKitsuneRal <KitsuneRal@users.noreply.github.com>2016-06-01 20:58:25 +0900
committerKitsuneRal <KitsuneRal@users.noreply.github.com>2016-06-01 20:58:25 +0900
commit43ecbf3135687b2e5a5a604a902f992139cce428 (patch)
treed717d85e8b5d340050c317418e26addf1766a826 /jobs/mediathumbnailjob.cpp
parentd5df4568d34487aea519ae97dd1666927dcfb62b (diff)
parent46050cd59a7af8cc7d616fab1a80db95dc8b5b35 (diff)
downloadlibquotient-43ecbf3135687b2e5a5a604a902f992139cce428.tar.gz
libquotient-43ecbf3135687b2e5a5a604a902f992139cce428.zip
Merge pull request #9 from Fxrh/code-tweaks
Code tweaks
Diffstat (limited to 'jobs/mediathumbnailjob.cpp')
-rw-r--r--jobs/mediathumbnailjob.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/jobs/mediathumbnailjob.cpp b/jobs/mediathumbnailjob.cpp
index 02d9bbd9..48ed0ffb 100644
--- a/jobs/mediathumbnailjob.cpp
+++ b/jobs/mediathumbnailjob.cpp
@@ -34,7 +34,7 @@ class MediaThumbnailJob::Private
MediaThumbnailJob::MediaThumbnailJob(ConnectionData* data, QUrl url, int requestedWidth, int requestedHeight,
ThumbnailType thumbnailType)
- : BaseJob(data, JobHttpType::GetJob)
+ : BaseJob(data, JobHttpType::GetJob, "MediaThumbnailJob")
, d(new Private)
{
d->url = url;
@@ -53,12 +53,12 @@ QPixmap MediaThumbnailJob::thumbnail()
return d->thumbnail;
}
-QString MediaThumbnailJob::apiPath()
+QString MediaThumbnailJob::apiPath() const
{
return QString("/_matrix/media/v1/thumbnail/%1/%2").arg(d->url.host()).arg(d->url.path());
}
-QUrlQuery MediaThumbnailJob::query()
+QUrlQuery MediaThumbnailJob::query() const
{
QUrlQuery query;
query.addQueryItem("width", QString::number(d->requestedWidth));