#ifndef MYUNITPLUGIN_H #define MYUNITPLUGIN_H #include "HPluginInterface.h" class MyUnitPlugin : public QObject, public HPluginInterface { Q_OBJECT Q_INTERFACES(HPluginInterface) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.HPluginInterface") #endif // QT_VERSION >= 0x050000 public: explicit MyUnitPlugin(QObject *parent = 0); virtual QString getPluName() const; virtual QIcon icon() const; virtual int windowType() const; virtual QWidget *createWindow(QWidget *parent) const; virtual QString getParams() const; virtual void setParams(QString &strParams); signals: public slots: }; #endif // MYUNITPLUGIN_H