Website updated.
[irwi] / src / irctrl.h
index 02308ba..d71983d 100644 (file)
@@ -1,18 +1,28 @@
 #ifndef IRCTRL_H
 #define IRCTRL_H
 
-class IrCtrl
+#include <QObject>
+#include <QString>
+#include <QTimer>
+
+class IrCtrl : public QObject
 {
+    Q_OBJECT
+
 public:
-    IrCtrl();
+    explicit IrCtrl(QObject *parent = 0);
+    ~IrCtrl();
 
 public slots:
-    void sendCmd0();
-    void sendCmd1();
-    void sendCmd2();
-    void sendCmd3();
-    void sendCmd4();
-    void sendCmd5();
+    void sendCmd(const QString &cmd);
+
+    void stopLirc();
+private:
+    void startLirc();
+
+private:
+    QTimer m_killLircTimer;
+    static const quint16 LIRC_PORT = 8765;
 };
 
 #endif