summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/tankgame/plugin.h
blob: 006ad78402be28dc3ab1a12914a03353620448d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef PLUGIN_H
#define PLUGIN_H

#include <QtPlugin>

QT_BEGIN_NAMESPACE
class QState;
QT_END_NAMESPACE
class Plugin
{
public:
    virtual ~Plugin() {}

    virtual QState *create(QState *parentState, QObject *tank) = 0;
};

QT_BEGIN_NAMESPACE
Q_DECLARE_INTERFACE(Plugin, "TankPlugin")
QT_END_NAMESPACE

#endif