aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-04 18:56:03 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-04 20:24:28 +0900
commit33b1c4f9748f0d33da1d18a3abe861014c116b5c (patch)
tree93f6d9d23fb9ce1a8a0134e2d006e0e39d3bde70 /lib
parent54c45b52cec717baf0448b4928e606f518a5f8fe (diff)
downloadlibquotient-33b1c4f9748f0d33da1d18a3abe861014c116b5c.tar.gz
libquotient-33b1c4f9748f0d33da1d18a3abe861014c116b5c.zip
{{base}}.h.mustache: better code ordering, more comments
Diffstat (limited to 'lib')
-rw-r--r--lib/jobs/{{base}}.h.mustache12
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}}