diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-03 19:06:41 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-03 19:06:41 +0900 |
commit | 32a912ff71bc86d862d89e0a01a35ce7b001de7c (patch) | |
tree | f9d4fc69df54f32d78451aea84c2cc6d20f7135b /lib/csapi/content-repo.cpp | |
parent | 5be3dcc9d45d2c52a514b5ebfa691dca9c73b047 (diff) | |
download | libquotient-32a912ff71bc86d862d89e0a01a35ce7b001de7c.tar.gz libquotient-32a912ff71bc86d862d89e0a01a35ce7b001de7c.zip |
csapi/content-repo.*: jobs return results in data() instead of content() now
Because GTAD has been updated to use a different default name for
returned properties.
Diffstat (limited to 'lib/csapi/content-repo.cpp')
-rw-r--r-- | lib/csapi/content-repo.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/csapi/content-repo.cpp b/lib/csapi/content-repo.cpp index 7eebeae5..a127dfad 100644 --- a/lib/csapi/content-repo.cpp +++ b/lib/csapi/content-repo.cpp @@ -60,7 +60,7 @@ class GetContentJob::Private public: QString contentType; QString contentDisposition; - QIODevice* content; + QIODevice* data; }; BaseJob::Query queryToGetContent(bool allowRemote) @@ -99,16 +99,16 @@ const QString& GetContentJob::contentDisposition() const return d->contentDisposition; } -QIODevice* GetContentJob::content() const +QIODevice* GetContentJob::data() const { - return d->content; + return d->data; } BaseJob::Status GetContentJob::parseReply(QNetworkReply* reply) { d->contentType = reply->rawHeader("Content-Type"); d->contentDisposition = reply->rawHeader("Content-Disposition"); - d->content = reply; + d->data = reply; return Success; } @@ -117,7 +117,7 @@ class GetContentOverrideNameJob::Private public: QString contentType; QString contentDisposition; - QIODevice* content; + QIODevice* data; }; BaseJob::Query queryToGetContentOverrideName(bool allowRemote) @@ -156,16 +156,16 @@ const QString& GetContentOverrideNameJob::contentDisposition() const return d->contentDisposition; } -QIODevice* GetContentOverrideNameJob::content() const +QIODevice* GetContentOverrideNameJob::data() const { - return d->content; + return d->data; } BaseJob::Status GetContentOverrideNameJob::parseReply(QNetworkReply* reply) { d->contentType = reply->rawHeader("Content-Type"); d->contentDisposition = reply->rawHeader("Content-Disposition"); - d->content = reply; + d->data = reply; return Success; } @@ -173,7 +173,7 @@ class GetContentThumbnailJob::Private { public: QString contentType; - QIODevice* content; + QIODevice* data; }; BaseJob::Query queryToGetContentThumbnail(Omittable<int> width, Omittable<int> height, const QString& method, bool allowRemote) @@ -213,15 +213,15 @@ const QString& GetContentThumbnailJob::contentType() const return d->contentType; } -QIODevice* GetContentThumbnailJob::content() const +QIODevice* GetContentThumbnailJob::data() const { - return d->content; + return d->data; } BaseJob::Status GetContentThumbnailJob::parseReply(QNetworkReply* reply) { d->contentType = reply->rawHeader("Content-Type"); - d->content = reply; + d->data = reply; return Success; } |