#define _MAINWIDGET_H_
#include <QWidget>
-
-#include "iremote.h"
+#include "irctrl.h"
class IEngine;
class QGridLayout;
void showSettingsDialog();
private slots:
- void sendCmdClicked(IRemote::RemoteCmd cmd);
+ void sendCmdVolUp();
+ void sendCmdVolDown();
+ void sendCmdChUp();
+ void sendCmdChDown();
+ void sendCmdPower();
+ void sendCmdMute();
protected:
void paintEvent(QPaintEvent *event);
void resize();
private:
- IEngine *engine;
+ IrCtrl irCtrl;
+
QSettings *settings;
static const int BUTTON_COUNT = 6;
QGridLayout *layout;