Complete rewrite. Does not work yet.
[irwi] / src / mainwidget.h
index 1f74c10..4e211d9 100644 (file)
@@ -1,10 +1,11 @@
-#ifndef MAINWIDGET_H
-#define MAINWIDGET_H
+#ifndef _MAINWIDGET_H_
+#define _MAINWIDGET_H_
 
 #include <QWidget>
 
-#include "irctrl.h"
+#include "iremote.h"
 
+class IEngine;
 class QGridLayout;
 class QToolButton;
 class QSettings;
@@ -12,6 +13,7 @@ class QSettings;
 class MainWidget : public QWidget
 {
     Q_OBJECT
+
 public:
     MainWidget (QWidget *parent = NULL);
     ~MainWidget();
@@ -19,16 +21,21 @@ public:
 public slots:
     void showSettingsDialog();
 
+private slots:
+    void sendCmdClicked(IRemote::RemoteCmd cmd);
+
 protected:
     void paintEvent(QPaintEvent *event);
 
 private:
     void resize();
+
+private:
+    IEngine *engine;
+    QSettings *settings;
     static const int BUTTON_COUNT = 6;
     QGridLayout *layout;
     QToolButton *buttons[BUTTON_COUNT];
-    IrCtrl irCtrl;
-    QSettings *settings;
 };
 
 #endif