X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Firctrl.h;h=d71983d6a1edd470276672f4d0ed92db1c8884a1;hb=HEAD;hp=61523357bbe42df8d30386e2c8fa5b5e0d27bdd4;hpb=530200459589fdeb6300303bd1c7c2a6ffb95792;p=irwi diff --git a/src/irctrl.h b/src/irctrl.h index 6152335..d71983d 100644 --- a/src/irctrl.h +++ b/src/irctrl.h @@ -3,8 +3,7 @@ #include #include - -class IrCtrlPrivate; +#include class IrCtrl : public QObject { @@ -15,19 +14,15 @@ public: ~IrCtrl(); public slots: - void sendCmd0(); - void sendCmd1(); - void sendCmd2(); - void sendCmd3(); - void sendCmd4(); - void sendCmd5(); + void sendCmd(const QString &cmd); -protected: - IrCtrlPrivate *const d_ptr; - IrCtrl(IrCtrlPrivate &dd, QObject *parent); + void stopLirc(); +private: + void startLirc(); private: - Q_DECLARE_PRIVATE(IrCtrl); + QTimer m_killLircTimer; + static const quint16 LIRC_PORT = 8765; }; #endif