32 lines
724 B
C++
32 lines
724 B
C++
#ifndef PLUGINUNIT_H
|
|
#define PLUGINUNIT_H
|
|
|
|
#include "HPluginInterface.h"
|
|
|
|
class PluginUnit : 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 PluginUnit(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);
|
|
|
|
virtual QAction *createAction(QWidget *parent) const;
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
};
|
|
#endif // PLUGINUNIT_H
|