summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/errorstate/plugin.h
blob: 2b48d4309fc6b02341ff5a64feb1ecaf52c707d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef PLUGIN_H
#define PLUGIN_H

#include <QtPlugin>

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

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

Q_DECLARE_INTERFACE(Plugin, "TankPlugin")

#endif