6
#include <qstringlist.h>
11
typedef QMap<QString, QStringList> Remotes;
13
class Lirc : public QObject
20
Lirc(QObject *parent);
27
* Returns true if the connection to lircd is operational
29
bool isConnected() const { return m_socket; }
31
* The names of the remote configured controls
33
const QStringList remotes() const;
35
* The names of the buttons for the specified
38
const QStringList buttons(const QString &remote) const
40
return m_remotes[remote];
45
* Emitted when a IR command was received
47
* The arguments are the name of the remote control used,
48
* the name of the button pressed and the repeat counter.
50
* The signal is emitted repeatedly as long as the button
51
* on the remote control remains pressed.
52
* The repeat counter starts with 0 and increases
53
* every time this signal is emitted.
55
void commandReceived(const QString &, const QString &, int);
62
const QString readLine();
63
void sendCommand(const QString &);