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

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

There is a newer version: 7.8.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}}}{{#isBodyParam}}{{/isBodyParam}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) {
    {{#allParams}}
    Q_UNUSED({{paramName}});
    {{/allParams}}
    auto reqObj = qobject_cast<{{classname}}Request*>(sender());
    if( reqObj != nullptr ) 
    { 
        {{#returnType}}{{{returnType}}} res;{{/returnType}}
        reqObj->{{nickname}}Response({{#returnType}}res{{/returnType}});
    }    
}
{{/operation}}{{/operations}}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy