2009-02-02 17:02:42 -05:00
|
|
|
#ifndef _HWA_PLUGIN_H_
|
|
|
|
#define _HWA_PLUGIN_H_
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QWidget>
|
2009-02-05 11:35:45 -05:00
|
|
|
#include <QFrame>
|
|
|
|
class QVBoxLayout;
|
2009-02-02 17:02:42 -05:00
|
|
|
|
|
|
|
#include <PluginInterface.h>
|
|
|
|
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
|
|
class SMPlayer;
|
|
|
|
|
2009-02-05 11:35:45 -05:00
|
|
|
class SMPlayerPluginWidget: public QFrame
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
SMPlayerPluginWidget(QWidget* parent, Qt::WindowFlags flags = 0 );
|
|
|
|
~SMPlayerPluginWidget();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
SMPlayer* player;
|
|
|
|
QVBoxLayout* lay;
|
|
|
|
};
|
2009-02-02 17:02:42 -05:00
|
|
|
|
|
|
|
class SMPlayerPlugin: public QObject, public PluginInterface
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_INTERFACES(PluginInterface)
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
virtual QString pluginDescription() const ;
|
|
|
|
virtual QString pluginName() const ;
|
|
|
|
|
|
|
|
virtual QWidget* pluginWidget(QWidget * parent = 0) ;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|