Files
qt-creator/share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.h
Nicolas Arnaud-Cormos 5bab50a934 Update the template for Qt Creator plugin.
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>
2010-12-07 12:36:06 +01:00

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%