Files
qt-creator/share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.h

38 lines
716 B
C
Raw Normal View History

@if '%{Cpp:PragmaOnce}'
#pragma once
@else
#ifndef %{GUARD}
#define %{GUARD}
@endif
2010-05-05 18:40:30 +02:00
#include "%{GlobalHdrFileName}"
2010-05-05 18:40:30 +02:00
#include <extensionsystem/iplugin.h>
namespace %{PluginName} {
2010-05-05 18:40:30 +02:00
namespace Internal {
class %{CN} : public ExtensionSystem::IPlugin
2010-05-05 18:40:30 +02:00
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "%{PluginName}.json")
2010-05-05 18:40:30 +02:00
public:
%{CN}();
~%{CN}() override;
2010-05-05 18:40:30 +02:00
bool initialize(const QStringList &arguments, QString *errorString) override;
void extensionsInitialized() override;
ShutdownFlag aboutToShutdown() override;
private:
void triggerAction();
2010-05-05 18:40:30 +02:00
};
} // namespace Internal
} // namespace %{PluginName}
@if ! '%{Cpp:PragmaOnce}'
#endif // %{GUARD}
@endif