diff options
Diffstat (limited to 'examples/statemachine/errorstate/plugin.h')
-rw-r--r-- | examples/statemachine/errorstate/plugin.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/statemachine/errorstate/plugin.h b/examples/statemachine/errorstate/plugin.h new file mode 100644 index 0000000..1ac7e0f --- /dev/null +++ b/examples/statemachine/errorstate/plugin.h @@ -0,0 +1,16 @@ +#ifndef PLUGIN_H +#define PLUGIN_H + +class QState; +class Tank; +class Plugin +{ +public: + virtual ~Plugin() {} + + virtual QState *create(QState *parentState, Tank *tank) = 0; +}; + +Q_DECLARE_INTERFACE(Plugin, "TankPlugin") + +#endif |