From 93cb0e5897cc94d8cc691bbe62f5b0093dd0a00f Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 9 Jan 2018 10:57:03 +0900 Subject: Job template: Use QIODevice instead of QByteArray to store byte streams This allows smooth pipelining of files to and from the network. --- jobs/{{base}}.cpp.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jobs/{{base}}.cpp.mustache') 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) -- cgit v1.2.3