2011-10-10 08:32:07 +02:00
|
|
|
#ifndef EXAMPLE_H
|
|
|
|
#define EXAMPLE_H
|
|
|
|
|
|
|
|
#include "example_global.h"
|
|
|
|
|
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
|
|
|
|
//! [namespaces]
|
|
|
|
namespace Example {
|
|
|
|
namespace Internal {
|
|
|
|
//! [namespaces]
|
|
|
|
|
|
|
|
//! [base class]
|
|
|
|
class ExamplePlugin : public ExtensionSystem::IPlugin
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2014-03-31 11:04:17 +02:00
|
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Example.json")
|
2011-10-10 08:32:07 +02:00
|
|
|
//! [base class]
|
|
|
|
|
|
|
|
public:
|
|
|
|
ExamplePlugin();
|
|
|
|
~ExamplePlugin();
|
|
|
|
|
2013-10-07 13:34:40 +02:00
|
|
|
//! [plugin functions]
|
2011-10-10 08:32:07 +02:00
|
|
|
bool initialize(const QStringList &arguments, QString *errorString);
|
|
|
|
void extensionsInitialized();
|
|
|
|
ShutdownFlag aboutToShutdown();
|
2013-10-07 13:34:40 +02:00
|
|
|
//! [plugin functions]
|
2011-10-10 08:32:07 +02:00
|
|
|
|
|
|
|
//! [slot]
|
|
|
|
private slots:
|
|
|
|
void triggerAction();
|
|
|
|
//! [slot]
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
} // namespace Example
|
|
|
|
|
|
|
|
#endif // EXAMPLE_H
|
|
|
|
|