forked from qt-creator/qt-creator
		
	Change-Id: I90405eaba68efa0f6861a54a7283dc062a3d1408 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
		
			
				
	
	
		
			41 lines
		
	
	
		
			745 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			745 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 slots:
 | 
						|
    void triggerAction();
 | 
						|
//! [slot]
 | 
						|
};
 | 
						|
 | 
						|
} // namespace Internal
 | 
						|
} // namespace Example
 | 
						|
 | 
						|
#endif // EXAMPLE_H
 | 
						|
 |