Interface between mythtv and lircd. More...
#include <lirc.h>
Public Member Functions | |
| LIRC (QObject *main_window, const QString &lircd_device, const QString &our_program, const QString &config_file) | |
| 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) |
| Run's the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead. | |
| 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 | |
| bool | doRun |
| uint | buf_offset |
| QByteArray | buf |
| uint | eofCount |
| uint | retryCount |
| LIRCPriv * | d |
Static Private Attributes | |
| static QMutex | lirclib_lock |
Interface between mythtv and lircd.
Listens for input from the Linux Infrared Remote Control daemon and translates it into internal input events.
Create connection to the lircd daemon and translate remote keypresses into custom events which are posted to the mainwindow.
Definition at line 24 of file lirc.h.
| LIRC::LIRC | ( | QObject * | main_window, | |
| const QString & | lircd_device, | |||
| const QString & | our_program, | |||
| const QString & | config_file | |||
| ) |
| bool LIRC::Init | ( | void | ) |
Definition at line 165 of file lirc.cpp.
Referenced by run(), and MythMainWindow::StartLIRC().
| void LIRC::start | ( | void | ) | [virtual] |
Definition at line 313 of file lirc.cpp.
Referenced by MythMainWindow::StartLIRC().
| void LIRC::deleteLater | ( | void | ) | [virtual] |
Definition at line 99 of file lirc.cpp.
Referenced by MythMainWindow::StartLIRC(), and MythMainWindow::~MythMainWindow().
| void LIRC::TeardownAll | ( | void | ) | [private] |
Definition at line 105 of file lirc.cpp.
Referenced by deleteLater(), and ~LIRC().
| bool LIRC::IsDoRunSet | ( | void | ) | const [private] |
| void LIRC::run | ( | void | ) | [private, virtual] |
| QList< QByteArray > LIRC::GetCodes | ( | void | ) | [private] |
| void LIRC::Process | ( | const QByteArray & | data | ) | [private] |
QMutex LIRC::lock [mutable, private] |
Definition at line 46 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] |
bool LIRC::doRun [private] |
Definition at line 52 of file lirc.h.
Referenced by IsDoRunSet(), run(), start(), and TeardownAll().
uint LIRC::buf_offset [private] |
Definition at line 53 of file lirc.h.
Referenced by GetCodes().
QByteArray LIRC::buf [private] |
Definition at line 54 of file lirc.h.
Referenced by GetCodes(), and LIRC().
uint LIRC::eofCount [private] |
Definition at line 55 of file lirc.h.
Referenced by GetCodes(), and run().
uint LIRC::retryCount [private] |
Definition at line 56 of file lirc.h.
Referenced by GetCodes(), Init(), and run().
Definition at line 57 of file lirc.h.
Referenced by GetCodes(), Init(), Process(), run(), start(), and TeardownAll().
1.6.3