Revision control
+ {{>licenseInfo}}
+ #ifndef {{prefix}}_{{classname}}_H
+ #define {{prefix}}_{{classname}}_H
+
+ #include "{{prefix}}BaseApi.h"
+ #include <QtNetwork/qrestreply.h>{{#enableQmlCode}}
+ #include <QtQmlIntegration/qqmlintegration.h>{{/enableQmlCode}}
+
+ {{#imports}}{{{import}}}
+ {{/imports}}
+
+ {{#cppNamespaceDeclarations}}
+ namespace {{this}} {
+ {{/cppNamespaceDeclarations}}
+
+ class {{classname}} : public {{prefix}}BaseApi {
+ Q_OBJECT{{#enableQmlCode}}
+ QML_ELEMENT{{/enableQmlCode}}
+ public:
+ {{classname}}(QObject *parent = nullptr);
+ virtual ~{{classname}}();
+
+ void initializeServerConfigs();
+ {{#operations}}public{{#enableQmlCode}} Q_SLOTS{{/enableQmlCode}}:{{#operation}}
+ /**
+ * \internal
+ * The auto-generated API:
+ * void {{nickname}}({{#hasParams}}{{#allParams}}const {{#required}}{{{dataType}}} &{{/required}}{{^required}}::{{cppNamespace}}::OptionalParam<{{{dataType}}}> &{{/required}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{/hasParams}});
+ * void {{nickname}}({{#hasParams}}{{#allParams}}const {{#required}}{{{dataType}}} &{{/required}}{{^required}}::{{cppNamespace}}::OptionalParam<{{{dataType}}}> &{{/required}}{{paramName}}, {{/allParams}}{{/hasParams}}QObject *object, [&](QRestReply &reply{{#returnType}}, {{{.}}} &summary{{/returnType}}){});
+ * \endinternal
+ */
+ {{#hasParams}}{{^returnType}}{{prefix}}_ADD_OPERATION_WITH_NO_RESPONSE_IMPL{{/returnType}}{{#returnType}}{{prefix}}_ADD_OPERATION_IMPL{{/returnType}}{{/hasParams}}{{^hasParams}}{{^returnType}}{{prefix}}_ADD_EMPTY_OPERATION_IMPL{{/returnType}}{{#returnType}}{{prefix}}_ADD_NO_PARAMS_OPERATION_WITH_RESPONSE_IMPL{{/returnType}}{{/hasParams}}({{nickname}}{{#hasParams}}, ({{#allParams}}const {{#required}}{{{dataType}}}{{/required}}{{^required}}::{{cppNamespace}}::OptionalParam<{{{dataType}}}>{{/required}} &{{paramName}}{{^required}} = ::{{cppNamespace}}::OptionalParam<{{{dataType}}}>(){{/required}}{{^-last}}, {{/-last}}{{/allParams}}), ({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){{/hasParams}}{{#returnType}}, ({{{.}}}){{/returnType}}{{#isDeprecated}}, Q_DECL_DEPRECATED{{/isDeprecated}}{{^isDeprecated}}, /* non-deprecated */{{/isDeprecated}})
+ {{/operation}}{{/operations}}
+ Q_SIGNALS:{{#operations}}{{#operation}}
+ /** Signal is emitted, if {{nickname}}() request completed successfully.{{#returnType}} The \a summary contains a serialized server response.{{/returnType}} */
+ void {{nickname}}Finished({{#returnType}}{{{.}}} summary{{/returnType}});{{#addDownloadProgress}}
+ void {{nickname}}Progress(qint64 bytesReceived, qint64 bytesTotal);{{/addDownloadProgress}}
+ /** Signal is emitted, if {{nickname}}() request completed with an error. \a errorType and \a errorStr contain an information about the error. */
+ void {{nickname}}ErrorOccurred(QNetworkReply::NetworkError errorType, const QString &errorStr);{{/operation}}{{/operations}}
+ };
+
+ {{#cppNamespaceDeclarations}}
+ } // namespace {{this}}
+ {{/cppNamespaceDeclarations}}
+ #endif