cKbdRemote Class Reference

#include <remote.h>

Inheritance diagram for cKbdRemote:

Inheritance graph
[legend]
Collaboration diagram for cKbdRemote:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cKbdRemote (void)
virtual ~cKbdRemote ()

Static Public Member Functions

static bool KbdAvailable (void)
static uint64_t MapFuncToCode (int Func)
static void SetRawMode (bool RawMode)

Private Member Functions

virtual void Action (void)
int ReadKey (void)
uint64_t ReadKeySequence (void)
int MapCodeToFunc (uint64_t Code)

Private Attributes

struct termios savedTm

Static Private Attributes

static bool kbdAvailable = false
static bool rawMode = false


Detailed Description

Definition at line 105 of file remote.h.


Constructor & Destructor Documentation

cKbdRemote::cKbdRemote ( void   ) 

Definition at line 246 of file remote.c.

References kbdAvailable, savedTm, and cThread::Start().

Here is the call graph for this function:

cKbdRemote::~cKbdRemote (  )  [virtual]

Definition at line 263 of file remote.c.

References cThread::Cancel(), kbdAvailable, and savedTm.

Here is the call graph for this function:


Member Function Documentation

void cKbdRemote::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 350 of file remote.c.

References KBDKEY, MapCodeToFunc(), cRemote::Put(), rawMode, ReadKeySequence(), and cThread::Running().

Here is the call graph for this function:

int cKbdRemote::ReadKey ( void   )  [private]

Definition at line 293 of file remote.c.

References LOG_ERROR_STR, cPoller::Poll(), and safe_read().

Referenced by ReadKeySequence().

Here is the call graph for this function:

uint64_t cKbdRemote::ReadKeySequence ( void   )  [private]

Definition at line 307 of file remote.c.

References ReadKey().

Referenced by Action().

Here is the call graph for this function:

int cKbdRemote::MapCodeToFunc ( uint64_t  Code  )  [private]

Definition at line 284 of file remote.c.

References tKbdMap::func, and kfNone.

Referenced by Action().

static bool cKbdRemote::KbdAvailable ( void   )  [inline, static]

Definition at line 117 of file remote.h.

References kbdAvailable.

uint64_t cKbdRemote::MapFuncToCode ( int  Func  )  [static]

Definition at line 275 of file remote.c.

References tKbdMap::func, and kfNone.

void cKbdRemote::SetRawMode ( bool  RawMode  )  [static]

Definition at line 270 of file remote.c.

References rawMode.


Member Data Documentation

bool cKbdRemote::kbdAvailable = false [static, private]

Definition at line 107 of file remote.h.

Referenced by cKbdRemote(), KbdAvailable(), and ~cKbdRemote().

bool cKbdRemote::rawMode = false [static, private]

Definition at line 108 of file remote.h.

Referenced by Action(), and SetRawMode().

struct termios cKbdRemote::savedTm [read, private]

Definition at line 109 of file remote.h.

Referenced by cKbdRemote(), and ~cKbdRemote().


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

Generated on Tue Jan 13 14:29:09 2009 for VDR by  doxygen 1.5.6