From 33b1c4f9748f0d33da1d18a3abe861014c116b5c Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 4 May 2018 18:56:03 +0900 Subject: {{base}}.h.mustache: better code ordering, more comments --- lib/jobs/{{base}}.h.mustache | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/jobs/{{base}}.h.mustache b/lib/jobs/{{base}}.h.mustache index ff9a7e7a..e4f45d85 100644 --- a/lib/jobs/{{base}}.h.mustache +++ b/lib/jobs/{{base}}.h.mustache @@ -35,18 +35,20 @@ namespace QMatrixClient {{#vars}} {{dataType.name}} {{nameCamelCase}}; {{/vars}} }; {{/ model}} - // End of inner data structures -{{/ models}}{{^bodyParams}} + // Construction/destruction +{{/ models}} + explicit {{camelCaseOperationId}}Job({{#allParams}}{{>joinedParamDecl}}{{/allParams}});{{^bodyParams}} + /** Construct a URL out of baseUrl and usual parameters passed to * {{camelCaseOperationId}}Job. This function can be used when * a URL for {{camelCaseOperationId}}Job is necessary but the job * itself isn't. */ static QUrl makeRequestUrl(QUrl baseUrl{{#allParams?}}, {{#allParams}}{{>joinedParamDecl}}{{/allParams}}{{/allParams?}}); -{{/bodyParams}} - explicit {{camelCaseOperationId}}Job({{#allParams}}{{>joinedParamDecl}}{{/allParams}});{{!skip EOL -}}{{# responses}}{{#normalResponse?}}{{#allProperties?}} +{{/bodyParams}}{{# responses}}{{#normalResponse?}}{{#allProperties?}} ~{{camelCaseOperationId}}Job() override; + + // Result properties {{#allProperties}} {{>maybeCrefType}} {{paramName}}(){{^noCopy?}} const{{/noCopy?}};{{/allProperties}} -- cgit v1.2.3