Bugfix in IrCtrl
[irwi] / src / irctrl.h
index 13ef634..0b22480 100644 (file)
@@ -3,25 +3,26 @@
 
 #include <QObject>
 #include <QString>
+#include <QTimer>
 
 class IrCtrl : public QObject
 {
     Q_OBJECT
-public:
-    IrCtrl();
 
-    void setRemoteName(const QString &newRemoteName);
+public:
+    explicit IrCtrl(QObject *parent = 0);
+    ~IrCtrl();
 
 public slots:
-    void sendCmd0(bool);
-    void sendCmd1(bool);
-    void sendCmd2(bool);
-    void sendCmd3(bool);
-    void sendCmd4(bool);
-    void sendCmd5(bool);
+    void sendCmd(const QString &cmd);
+
+private:
+    void startLirc();
+    void stopLirc();
 
 private:
-    QString remoteName;
+    QTimer m_killLircTimer;
+    static const quint16 LIRC_PORT = 8765;
 };
 
 #endif