X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Firctrl.h;h=d71983d6a1edd470276672f4d0ed92db1c8884a1;hb=HEAD;hp=aee214d0e18f89795682de7409c7a964c5dd7674;hpb=b7f72f7622fa6eab6241bac270de8e7da168528d;p=irwi diff --git a/src/irctrl.h b/src/irctrl.h index aee214d..d71983d 100644 --- a/src/irctrl.h +++ b/src/irctrl.h @@ -2,20 +2,27 @@ #define IRCTRL_H #include +#include +#include class IrCtrl : public QObject { Q_OBJECT + public: - IrCtrl(); + 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); + + void stopLirc(); +private: + void startLirc(); + +private: + QTimer m_killLircTimer; + static const quint16 LIRC_PORT = 8765; }; #endif