X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Firctrl.h;h=d71983d6a1edd470276672f4d0ed92db1c8884a1;hb=HEAD;hp=02308ba9f79b24c78df2eb61870a79afd683fd6b;hpb=e8f54ce67a89b98cbb6b25582aafca2fbf112e0e;p=irwi diff --git a/src/irctrl.h b/src/irctrl.h index 02308ba..d71983d 100644 --- a/src/irctrl.h +++ b/src/irctrl.h @@ -1,18 +1,28 @@ #ifndef IRCTRL_H #define IRCTRL_H -class IrCtrl +#include +#include +#include + +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