30 lines
700 B
C++
30 lines
700 B
C++
#ifndef HPLUGININTERFACE_H
|
|
#define HPLUGININTERFACE_H
|
|
|
|
#include <QtCore/QObject>
|
|
#include <QtCore/QString>
|
|
#include <QtGui/QIcon>
|
|
#include <QString>
|
|
|
|
#include "HPluginDefine.h"
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class HPluginInterface
|
|
{
|
|
public:
|
|
virtual ~HPluginInterface(){}
|
|
virtual QString getPluName() const = 0;
|
|
virtual QIcon icon() const = 0;
|
|
virtual int windowType() const = 0;
|
|
virtual QWidget *createWindow(QWidget *parent) const = 0;
|
|
virtual QString getParams() const = 0;
|
|
virtual void setParams(QString &strParams) = 0;
|
|
};
|
|
|
|
#define HPluginInterface_iid "org.qt-project.HPluginInterface"
|
|
|
|
Q_DECLARE_INTERFACE(HPluginInterface, HPluginInterface_iid)
|
|
|
|
#endif // HPLUGININTERFACE_H
|