2019-04-03 19:02:30 +02:00
|
|
|
%{Cpp:LicenseTemplate}\
|
|
|
|
|
@if '%{Cpp:PragmaOnce}'
|
|
|
|
|
#pragma once
|
|
|
|
|
@else
|
|
|
|
|
#ifndef %{GUARD}
|
|
|
|
|
#define %{GUARD}
|
|
|
|
|
@endif
|
|
|
|
|
@if %{IsShared}
|
|
|
|
|
|
|
|
|
|
#include "%{GlobalHdrFileName}"
|
|
|
|
|
@elsif %{IsQtPlugin}
|
|
|
|
|
|
|
|
|
|
#include <%{BaseClassName}>
|
|
|
|
|
@endif
|
|
|
|
|
%{JS: Cpp.openNamespaces('%{Class}')}\
|
|
|
|
|
|
|
|
|
|
@if %{IsShared}
|
|
|
|
|
class %{LibraryExport} %{CN}
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
%{CN}();
|
|
|
|
|
};
|
|
|
|
|
@elsif %{IsStatic}
|
|
|
|
|
class %{CN}
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
%{CN}();
|
|
|
|
|
};
|
|
|
|
|
@else
|
|
|
|
|
class %{CN} : public %{BaseClassName}
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.%{PluginInterface}" FILE "%{PluginJsonFile}")
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit %{CN}(QObject *parent = nullptr);
|
|
|
|
|
|
|
|
|
|
private:
|
2019-05-31 15:29:05 +02:00
|
|
|
%{JS: '%{PluginMethods}'.split('|').map(function(s) { return ' ' + s + ' override;'; \}).join('\\n')}
|
2019-04-03 19:02:30 +02:00
|
|
|
};
|
|
|
|
|
@endif
|
|
|
|
|
%{JS: Cpp.closeNamespaces('%{Class}')}\
|
|
|
|
|
@if ! '%{Cpp:PragmaOnce}'
|
|
|
|
|
|
|
|
|
|
#endif // %{GUARD}
|
|
|
|
|
@endif
|