cLircRemote Class Reference

#include <lirc.h>

Inheritance diagram for cLircRemote:

Inheritance graph
Collaboration diagram for cLircRemote:

Collaboration graph

List of all members.

Public Member Functions

 cLircRemote (const char *DeviceName)
virtual ~cLircRemote ()
virtual bool Ready (void)

Private Types

enum  { LIRC_KEY_BUF = 30, LIRC_BUFFER_SIZE = 128 }

Private Member Functions

virtual void Action (void)
bool Connect (void)

Private Attributes

int f
struct sockaddr_un addr

Detailed Description

Definition at line 17 of file lirc.h.

Member Enumeration Documentation

anonymous enum [private]


Definition at line 19 of file lirc.h.

Constructor & Destructor Documentation

cLircRemote::cLircRemote ( const char *  DeviceName  ) 

Definition at line 21 of file lirc.c.

References addr, Connect(), f, and cThread::Start().

Here is the call graph for this function:

cLircRemote::~cLircRemote (  )  [virtual]

Definition at line 34 of file lirc.c.

References cThread::Cancel(), and f.

Here is the call graph for this function:

Member Function Documentation

void cLircRemote::Action ( void   )  [private, virtual]

A derived cThread class must implement the code it wants to execute as a separate thread in this function. If this is a loop, it must check Running() repeatedly to see whether it's time to stop.

Implements cThread.

Definition at line 62 of file lirc.c.

References Connect(), cTimeMs::Elapsed(), esyslog, f, cFile::FileReady(), isyslog, LIRC_BUFFER_SIZE, LIRC_KEY_BUF, cRemote::Put(), RECONNECTDELAY, REPEATDELAY, REPEATFREQ, REPEATTIMEOUT, cThread::Running(), safe_read(), cTimeMs::Set(), and cCondWait::SleepMs().

Here is the call graph for this function:

bool cLircRemote::Connect ( void   )  [private]

Definition at line 43 of file lirc.c.

References addr, f, and LOG_ERROR_STR.

Referenced by Action(), and cLircRemote().

bool cLircRemote::Ready ( void   )  [virtual]

Reimplemented from cRemote.

Definition at line 57 of file lirc.c.

References f.

Member Data Documentation

int cLircRemote::f [private]

Definition at line 20 of file lirc.h.

Referenced by Action(), cLircRemote(), Connect(), Ready(), and ~cLircRemote().

struct sockaddr_un cLircRemote::addr [read, private]

Definition at line 21 of file lirc.h.

Referenced by cLircRemote(), and Connect().

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

Generated on Tue Nov 4 19:59:16 2008 for VDR by  doxygen 1.5.6