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