aboutsummaryrefslogtreecommitdiff
path: root/jobs/{{base}}.cpp.mustache
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-09 10:57:03 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-09 11:53:55 +0900
commit93cb0e5897cc94d8cc691bbe62f5b0093dd0a00f (patch)
tree6a1f7b82a0bca8034de55bbc3e86cd1b8a4ca211 /jobs/{{base}}.cpp.mustache
parentdca271aaf0142e2722219df8fcc03bf8fc03c150 (diff)
downloadlibquotient-93cb0e5897cc94d8cc691bbe62f5b0093dd0a00f.tar.gz
libquotient-93cb0e5897cc94d8cc691bbe62f5b0093dd0a00f.zip
Job template: Use QIODevice instead of QByteArray to store byte streams
This allows smooth pipelining of files to and from the network.
Diffstat (limited to 'jobs/{{base}}.cpp.mustache')
-rw-r--r--jobs/{{base}}.cpp.mustache2
1 files changed, 1 insertions, 1 deletions
diff --git a/jobs/{{base}}.cpp.mustache b/jobs/{{base}}.cpp.mustache
index 0726d523..34e7faf3 100644
--- a/jobs/{{base}}.cpp.mustache
+++ b/jobs/{{base}}.cpp.mustache
@@ -88,7 +88,7 @@ class {{camelCaseOperationId}}Job::Private
BaseJob::Status {{camelCaseOperationId}}Job::parseReply(QNetworkReply* reply)
{
{{#headers}}d->{{paramName}} = reply->rawHeader("{{baseName}}"); {{! We don't check for required headers yet }}
- {{/headers}}{{#properties}}d->{{paramName}} = reply->readAll();{{/properties}}
+ {{/headers}}{{#properties}}d->{{paramName}} = reply;{{/properties}}
return Success;
}{{/ producesNotJson?}}{{^producesNotJson?}}
BaseJob::Status {{camelCaseOperationId}}Job::parseJson(const QJsonDocument& data)