diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-03 19:14:00 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-03 19:14:00 +0900 |
commit | e1aedb9f3dcf7dcdc68e5eefab206258013c5114 (patch) | |
tree | 8fdad5360c1d7b9fd5403541d32a156994ef107b /jobs/{{base}}.h.mustache | |
parent | 83427d7e20008f05bfc78339b3cdb30719c77272 (diff) | |
download | libquotient-e1aedb9f3dcf7dcdc68e5eefab206258013c5114.tar.gz libquotient-e1aedb9f3dcf7dcdc68e5eefab206258013c5114.zip |
GTAD: Generate job-specific makeRequestUrl() methods
Diffstat (limited to 'jobs/{{base}}.h.mustache')
-rw-r--r-- | jobs/{{base}}.h.mustache | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/jobs/{{base}}.h.mustache b/jobs/{{base}}.h.mustache index 69e0e6d3..63aa53e7 100644 --- a/jobs/{{base}}.h.mustache +++ b/jobs/{{base}}.h.mustache @@ -42,8 +42,15 @@ namespace QMatrixClient }; {{/ trivial?}}{{/model}} // End of inner data structures -{{/models}} - explicit {{camelCaseOperationId}}Job({{#allParams}}{{>maybeCrefType}} {{paramName}}{{^required?}} = {{>initializeDefaultValue}}{{/required?}}{{#@join}}, {{/@join}}{{/allParams}});{{!skip EOL +{{/models}}{{^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?}} ~{{camelCaseOperationId}}Job() override; {{#allProperties}} |