LIRC Class Reference

#include <lirc.h>

List of all members.


Detailed Description

Interface between mythtv and lircd.

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
LIRCPrivd

Static Private Attributes

static QMutex lirclib_lock

Constructor & Destructor Documentation

LIRC::LIRC ( QObject *  main_window,
const QString &  lircd_device,
const QString &  our_program,
const QString &  config_file,
const QString &  external_app 
)

Definition at line 79 of file lirc.cpp.

LIRC::~LIRC (  )  [private, virtual]

Definition at line 104 of file lirc.cpp.


Member Function Documentation

bool LIRC::Init ( void   ) 

Definition at line 174 of file lirc.cpp.

Referenced by run(), and MythMainWindow::StartLIRC().

void LIRC::start ( void   )  [virtual]

Definition at line 324 of file lirc.cpp.

Referenced by MythMainWindow::StartLIRC().

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]

Definition at line 115 of file lirc.cpp.

Referenced by deleteLater(), and ~LIRC().

bool LIRC::IsDoRunSet ( void   )  const [private]

Definition at line 338 of file lirc.cpp.

Referenced by run().

void LIRC::run ( void   )  [private, virtual]

Definition at line 411 of file lirc.cpp.

void LIRC::SpawnApp ( void   )  [private]

Definition at line 540 of file lirc.cpp.

Referenced by Process().

QList< QByteArray > LIRC::GetCodes ( void   )  [private]

Definition at line 473 of file lirc.cpp.

Referenced by run().

void LIRC::Process ( const QByteArray &  data  )  [private]

Definition at line 344 of file lirc.cpp.

Referenced by run().


Member Data Documentation

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]

Definition at line 40 of file lirc.h.

Referenced by Init(), and Process().

QObject* LIRC::m_mainWindow [private]

window to send key events to

Definition at line 41 of file lirc.h.

Referenced by Process().

QString LIRC::lircdDevice [private]

device on which to receive lircd data

Definition at line 42 of file lirc.h.

Referenced by Init(), and LIRC().

QString LIRC::program [private]

program to extract from config file

Definition at line 43 of file lirc.h.

Referenced by LIRC().

QString LIRC::configFile [private]

file containing LIRC->key mappings

Definition at line 44 of file lirc.h.

Referenced by Init(), and LIRC().

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().

Definition at line 47 of file lirc.h.

Referenced by GetCodes().

QByteArray LIRC::buf [private]

Definition at line 48 of file lirc.h.

Referenced by GetCodes(), and LIRC().

uint LIRC::eofCount [private]

Definition at line 49 of file lirc.h.

Referenced by GetCodes(), and run().

Definition at line 50 of file lirc.h.

Referenced by GetCodes(), Init(), and run().

LIRCPriv* LIRC::d [private]

Definition at line 51 of file lirc.h.

Referenced by GetCodes(), Init(), Process(), run(), start(), and TeardownAll().


The documentation for this class was generated from the following files:

Generated on Thu Sep 9 06:39:44 2010 for MythTV by  doxygen 1.5.5