#include <lirc.h>
Create connection to the lircd daemon and translate remote keypresses into custom events which are posted to the mainwindow.
Definition at line 15 of file lirc.h.
Public Member Functions | |
| LIRC (QObject *main_window, const QString &lircd_device, const QString &our_program, const QString &config_file, const QString &external_app) | |
| bool | Init (void) |
| virtual void | start (void) |
| virtual void | deleteLater (void) |
Private Member Functions | |
| virtual | ~LIRC () |
| void | TeardownAll () |
| bool | IsDoRunSet (void) const |
| virtual void | run (void) |
| void | SpawnApp (void) |
| QList< QByteArray > | GetCodes (void) |
| void | Process (const QByteArray &data) |
Private Attributes | |
| QMutex | lock |
| QObject * | m_mainWindow |
| window to send key events to | |
| QString | lircdDevice |
| device on which to receive lircd data | |
| QString | program |
| program to extract from config file | |
| QString | configFile |
| file containing LIRC->key mappings | |
| QString | m_externalApp |
| external application for keys | |
| bool | doRun |
| uint | buf_offset |
| QByteArray | buf |
| uint | eofCount |
| uint | retryCount |
| LIRCPriv * | d |
Static Private Attributes | |
| static QMutex | lirclib_lock |
| LIRC::LIRC | ( | QObject * | main_window, | |
| const QString & | lircd_device, | |||
| const QString & | our_program, | |||
| const QString & | config_file, | |||
| const QString & | external_app | |||
| ) |
| bool LIRC::Init | ( | void | ) |
| void LIRC::start | ( | void | ) | [virtual] |
| void LIRC::deleteLater | ( | void | ) | [virtual] |
Definition at line 109 of file lirc.cpp.
Referenced by MythMainWindow::StartLIRC(), and MythMainWindow::~MythMainWindow().
| void LIRC::TeardownAll | ( | void | ) | [private] |
| bool LIRC::IsDoRunSet | ( | void | ) | const [private] |
| void LIRC::SpawnApp | ( | void | ) | [private] |
| QList< QByteArray > LIRC::GetCodes | ( | void | ) | [private] |
| void LIRC::Process | ( | const QByteArray & | data | ) | [private] |
QMutex LIRC::lock [mutable, private] |
Definition at line 39 of file lirc.h.
Referenced by Init(), IsDoRunSet(), run(), start(), and TeardownAll().
QMutex LIRC::lirclib_lock [static, private] |
QObject* LIRC::m_mainWindow [private] |
QString LIRC::lircdDevice [private] |
QString LIRC::program [private] |
QString LIRC::configFile [private] |
QString LIRC::m_externalApp [private] |
external application for keys
Definition at line 45 of file lirc.h.
Referenced by LIRC(), and SpawnApp().
bool LIRC::doRun [private] |
Definition at line 46 of file lirc.h.
Referenced by IsDoRunSet(), run(), start(), and TeardownAll().
uint LIRC::buf_offset [private] |
QByteArray LIRC::buf [private] |
uint LIRC::eofCount [private] |
uint LIRC::retryCount [private] |
Definition at line 51 of file lirc.h.
Referenced by GetCodes(), Init(), Process(), run(), start(), and TeardownAll().
1.5.5