diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-04 18:56:03 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-04 20:24:28 +0900 |
commit | 33b1c4f9748f0d33da1d18a3abe861014c116b5c (patch) | |
tree | 93f6d9d23fb9ce1a8a0134e2d006e0e39d3bde70 | |
parent | 54c45b52cec717baf0448b4928e606f518a5f8fe (diff) | |
download | libquotient-33b1c4f9748f0d33da1d18a3abe861014c116b5c.tar.gz libquotient-33b1c4f9748f0d33da1d18a3abe861014c116b5c.zip |
{{base}}.h.mustache: better code ordering, more comments
-rw-r--r-- | lib/jobs/{{base}}.h.mustache | 12 |
1 files 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}} |