2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-10-10 08:32:07 +02:00
|
|
|
|
|
|
|
#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]
|
2016-03-15 10:08:56 +01:00
|
|
|
private:
|
2011-10-10 08:32:07 +02:00
|
|
|
void triggerAction();
|
|
|
|
//! [slot]
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
} // namespace Example
|