diff options
-rw-r--r-- | jobs/gtad.yaml | 17 | ||||
-rw-r--r-- | jobs/{{base}}.cpp.mustache | 2 |
2 files changed, 8 insertions, 11 deletions
diff --git a/jobs/gtad.yaml b/jobs/gtad.yaml index 54f70cdb..f79ce9b6 100644 --- a/jobs/gtad.yaml +++ b/jobs/gtad.yaml @@ -27,12 +27,12 @@ types: - //: double boolean: bool string: - - byte: &QByteArray - type: QByteArray - initializer: '"{{defaultValue}}"' - string?: true - imports: <QtCore/QByteArray> - - binary: *QByteArray + - byte: &ByteStream + type: QIODevice* + #initializer: '"{{defaultValue}}"' + #string?: true + imports: <QtCore/QIODevice> + - binary: *ByteStream - date: type: QDate initializer: QDate::fromString("{{defaultValue}}") @@ -48,10 +48,7 @@ types: initializer: QStringLiteral("{{defaultValue}}") string?: true avoidCopy?: true - imports: <QtCore/QString> - file: - type: QByteArray - imports: <QtCore/QByteArray> + file: *ByteStream object: type: QJsonObject avoidCopy?: true 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) |