All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cpp-qt-qhttpengine-server.apihandler.cpp.mustache Maven / Gradle / Ivy

There is a newer version: 7.6.0
Show newest version
{{>licenseInfo}}
#include 
#include 
#include 
#include 
#include 

#include "{{classname}}Handler.h"
#include "{{classname}}Request.h"

{{#cppNamespaceDeclarations}}
namespace {{this}} {
{{/cppNamespaceDeclarations}}

{{classname}}Handler::{{classname}}Handler(){

}

{{classname}}Handler::~{{classname}}Handler(){

}

{{#operations}}{{#operation}}void {{classname}}Handler::{{nickname}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) {
    {{#allParams}}
    Q_UNUSED({{paramName}});
    {{/allParams}}
    auto reqObj = qobject_cast<{{classname}}Request*>(sender());
    if( reqObj != nullptr )
    {
        {{#returnType}}{{{.}}} res;{{/returnType}}
        reqObj->{{nickname}}Response({{#returnType}}res{{/returnType}});
    }
}
{{/operation}}{{/operations}}

{{#cppNamespaceDeclarations}}
}
{{/cppNamespaceDeclarations}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy