summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/errorstate/plugin.h
blob: 1ac7e0f4e9cd465c68d181d7ce36d6e45e29577f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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