Developer Documentation

simplePlugin.hh
1 #ifndef SIMPLEPLUGIN_HH_INCLUDED
2 #define SIMPLEPLUGIN_HH_INCLUDED
3
4 #include <OpenFlipper/BasePlugin/BaseInterface.hh>
5 #include <OpenFlipper/common/Types.hh>
6
7 class SimplePlugin : public QObject, BaseInterface
8 {
9 Q_OBJECT
10 Q_INTERFACES(BaseInterface)
11 Q_PLUGIN_METADATA(IID "org.OpenFlipper.Plugins.examples.SimplePlugin")
12
13 public :
14
15 ~SimplePlugin() {};
16
17 QString name() { return QString("SimplePlugin"); };
18
19 QString description() { return QString("Does actually nothing but works!"); };
20
21 };
22
23
24 #endif
SimplePlugin::description
QString description()
Return a description of what the plugin is doing.
Definition: simplePlugin.hh:19
SimplePlugin
Definition: simplePlugin.hh:7
SimplePlugin::name
QString name()
Return a name for the plugin.
Definition: simplePlugin.hh:17
Types.hh
BaseInterface
Interface class from which all plugins have to be created.
Definition: BaseInterface.hh:65
BaseInterface.hh