roll back qt5cpp template

This commit is contained in:
wing328
2015-06-09 12:42:07 +08:00
parent 263b4080ee
commit 6253bbff3d
9 changed files with 454 additions and 512 deletions

View File

@@ -6,15 +6,14 @@
{{#imports}}{{{import}}}
{{/imports}}
#include
<QObject>
#include <QObject>
namespace Swagger {
namespace Swagger {
class {{classname}}: public QObject {
class {{classname}}: public QObject {
Q_OBJECT
public:
public:
{{classname}}();
{{classname}}(QString host, QString basePath);
~{{classname}}();
@@ -22,15 +21,14 @@
QString host;
QString basePath;
{{#operations}}{{#operation}}void {{nickname}}({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}
, {{/hasMore}}{{/allParams}});
{{#operations}}{{#operation}}void {{nickname}}({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
{{/operation}}{{/operations}}
private:
private:
{{#operations}}{{#operation}}void {{nickname}}Callback (HttpRequestWorker * worker);
{{/operation}}{{/operations}}
signals:
signals:
{{#operations}}{{#operation}}void {{nickname}}Signal({{#returnType}}{{{returnType}}} summary{{/returnType}});
{{/operation}}{{/operations}}
};
}
#endif
};
}
#endif