forked from qt-creator/qt-creator
Use Qt 5 connects. Change-Id: I0e8ae956258892f60a1d12222a081c0fa6577717 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
41 lines
739 B
C++
41 lines
739 B
C++
#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
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Example.json")
|
|
//! [base class]
|
|
|
|
public:
|
|
ExamplePlugin();
|
|
~ExamplePlugin();
|
|
|
|
//! [plugin functions]
|
|
bool initialize(const QStringList &arguments, QString *errorString);
|
|
void extensionsInitialized();
|
|
ShutdownFlag aboutToShutdown();
|
|
//! [plugin functions]
|
|
|
|
//! [slot]
|
|
private:
|
|
void triggerAction();
|
|
//! [slot]
|
|
};
|
|
|
|
} // namespace Internal
|
|
} // namespace Example
|
|
|
|
#endif // EXAMPLE_H
|
|
|