vdr  1.7.27
Public Member Functions | Private Types | Private Member Functions | Private Attributes
cLircRemote Class Reference

#include <lirc.h>

List of all members.

Public Member Functions

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

Private Types

enum  { LIRC_KEY_BUF = 30, LIRC_BUFFER_SIZE = 128 }
enum  { LIRC_KEY_BUF = 30, LIRC_BUFFER_SIZE = 128 }

Private Member Functions

virtual void Action (void)
bool Connect (void)
virtual void Action (void)
bool Connect (void)

Private Attributes

int f
struct sockaddr_un addr

Detailed Description

Definition at line 17 of file include/vdr/lirc.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
LIRC_KEY_BUF 
LIRC_BUFFER_SIZE 

Definition at line 19 of file include/vdr/lirc.h.

anonymous enum [private]
Enumerator:
LIRC_KEY_BUF 
LIRC_BUFFER_SIZE 

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

Definition at line 34 of file lirc.c.

References cThread::Cancel(), and f.

cLircRemote::cLircRemote ( const char *  DeviceName)
virtual cLircRemote::~cLircRemote ( ) [virtual]

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

virtual 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.

bool cLircRemote::Connect ( void  ) [private]
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.

virtual bool cLircRemote::Ready ( void  ) [virtual]

Reimplemented from cRemote.


Member Data Documentation

struct sockaddr_un cLircRemote::addr [private]

Definition at line 21 of file include/vdr/lirc.h.

Referenced by cLircRemote(), and Connect().

int cLircRemote::f [private]

Definition at line 20 of file include/vdr/lirc.h.

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


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