forked from qt-creator/qt-creator
Make it more consistant with the current plugins: * plugin class use the Plugin template instead of Impl * add a pluginconstants.h file * use the new pluginspec.in file Merge-request: 216 Reviewed-by: con <qtc-committer@nokia.com>
31 lines
648 B
C++
31 lines
648 B
C++
#ifndef %PluginName:u%_%CppHeaderSuffix:u%
|
|
#define %PluginName:u%_%CppHeaderSuffix:u%
|
|
|
|
#include "%PluginName:l%_global.%CppHeaderSuffix%"
|
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
namespace %PluginName% {
|
|
namespace Internal {
|
|
|
|
class %PluginName%Plugin : public ExtensionSystem::IPlugin
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
%PluginName%Plugin();
|
|
~%PluginName%Plugin();
|
|
|
|
bool initialize(const QStringList &arguments, QString *errorString);
|
|
void extensionsInitialized();
|
|
ShutdownFlag aboutToShutdown();
|
|
|
|
private slots:
|
|
void triggerAction();
|
|
};
|
|
|
|
} // namespace Internal
|
|
} // namespace %PluginName%
|
|
|
|
#endif // %PluginName:u%_%CppHeaderSuffix:u%
|