projects
/
irwi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Website updated.
[irwi]
/
src
/
irctrl.h
diff --git
a/src/irctrl.h
b/src/irctrl.h
index
ed20e57
..
d71983d
100644
(file)
--- a/
src/irctrl.h
+++ b/
src/irctrl.h
@@
-3,26
+3,26
@@
#include <QObject>
#include <QString>
#include <QObject>
#include <QString>
+#include <QTimer>
class IrCtrl : public QObject
{
Q_OBJECT
class IrCtrl : public QObject
{
Q_OBJECT
+
public:
public:
- IrCtrl();
+ explicit IrCtrl(QObject *parent = 0);
~IrCtrl();
~IrCtrl();
- void setRemoteName(const QString &newRemoteName);
-
public slots:
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:
private:
- QString remoteName;
+ QTimer m_killLircTimer;
+ static const quint16 LIRC_PORT = 8765;
};
#endif
};
#endif