Connected IrCtrl to MainWidget
[irwi] / src / irctrl.h
1 #ifndef IRCTRL_H
2 #define IRCTRL_H
3
4 #include <QObject>
5 #include <QString>
6
7 class QTimer;
8
9 class IrCtrl : public QObject
10 {
11     Q_OBJECT
12
13 public:
14     explicit IrCtrl(QObject *parent = 0);
15     ~IrCtrl();
16
17 public slots:
18     void sendCmd(const QString &cmd);
19
20 private:
21     void startLirc();
22     void stopLirc();
23
24 private:
25     static const quint16 LIRC_PORT = 8765;
26     QTimer *killLircTimer;
27 };
28
29 #endif
30