vdr  1.7.31
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
cKbdRemote Class Reference

#include <remote.h>

Public Member Functions

 cKbdRemote (void)
virtual ~cKbdRemote ()
 cKbdRemote (void)
virtual ~cKbdRemote ()
- Public Member Functions inherited from cRemote
virtual ~cRemote ()
virtual bool Ready (void)
virtual bool Initialize (void)
const char * Name (void)
virtual ~cRemote ()
virtual bool Ready (void)
virtual bool Initialize (void)
const char * Name (void)
- Public Member Functions inherited from cListObject
 cListObject (void)
virtual ~cListObject ()
virtual int Compare (const cListObject &ListObject) const
void Append (cListObject *Object)
void Insert (cListObject *Object)
void Unlink (void)
int Index (void) const
cListObjectPrev (void) const
cListObjectNext (void) const
 cListObject (void)
virtual ~cListObject ()
virtual int Compare (const cListObject &ListObject) const
void Append (cListObject *Object)
void Insert (cListObject *Object)
void Unlink (void)
int Index (void) const
cListObjectPrev (void) const
cListObjectNext (void) const

Static Public Member Functions

static bool KbdAvailable (void)
static uint64_t MapFuncToCode (int Func)
static void SetRawMode (bool RawMode)
static bool KbdAvailable (void)
static uint64_t MapFuncToCode (int Func)
static void SetRawMode (bool RawMode)
- Static Public Member Functions inherited from cRemote
static void SetLearning (cRemote *Learning)
static bool IsLearning ()
static bool Enabled (void)
static void SetEnabled (bool Enabled)
static void Clear (void)
static bool Put (eKeys Key, bool AtFront=false)
static bool PutMacro (eKeys Key)
static bool CallPlugin (const char *Plugin)
static const char * GetPlugin (void)
static bool HasKeys (void)
static eKeys Get (int WaitMs=1000, char **UnknownCode=NULL)
static time_t LastActivity (void)
static void TriggerLastActivity (void)
static void SetLearning (cRemote *Learning)
static bool IsLearning ()
static bool Enabled (void)
static void SetEnabled (bool Enabled)
static void Clear (void)
static bool Put (eKeys Key, bool AtFront=false)
static bool PutMacro (eKeys Key)
static bool CallPlugin (const char *Plugin)
static const char * GetPlugin (void)
static bool HasKeys (void)
static eKeys Get (int WaitMs=1000, char **UnknownCode=NULL)
static time_t LastActivity (void)
static void TriggerLastActivity (void)

Private Member Functions

virtual void Action (void)
int ReadKey (void)
uint64_t ReadKeySequence (void)
int MapCodeToFunc (uint64_t Code)
virtual void Action (void)
int ReadKey (void)
uint64_t ReadKeySequence (void)
int MapCodeToFunc (uint64_t Code)
- Private Member Functions inherited from cThread
 cThread (const char *Description=NULL)
virtual ~cThread ()
void SetDescription (const char *Description,...) __attribute__((format(printf
void bool Start (void)
bool Active (void)
 cThread (const char *Description=NULL)
virtual ~cThread ()
void SetDescription (const char *Description,...) __attribute__((format(printf
void bool Start (void)
bool Active (void)
void SetPriority (int Priority)
void SetIOPriority (int Priority)
void Lock (void)
void Unlock (void)
virtual void Action (void)=0
bool Running (void)
void Cancel (int WaitSeconds=0)
void SetPriority (int Priority)
void SetIOPriority (int Priority)
void Lock (void)
void Unlock (void)
virtual void Action (void)=0
bool Running (void)
void Cancel (int WaitSeconds=0)

Private Attributes

struct termios savedTm

Static Private Attributes

static bool kbdAvailable = false
static bool rawMode = false

Additional Inherited Members

- Protected Member Functions inherited from cRemote
 cRemote (const char *Name)
const char * GetSetup (void)
void PutSetup (const char *Setup)
bool Put (uint64_t Code, bool Repeat=false, bool Release=false)
bool Put (const char *Code, bool Repeat=false, bool Release=false)
 cRemote (const char *Name)
const char * GetSetup (void)
void PutSetup (const char *Setup)
bool Put (uint64_t Code, bool Repeat=false, bool Release=false)
bool Put (const char *Code, bool Repeat=false, bool Release=false)
- Static Private Member Functions inherited from cThread
static tThreadId ThreadId (void)
static tThreadId IsMainThread (void)
static void SetMainThreadId (void)
static tThreadId ThreadId (void)
static tThreadId IsMainThread (void)
static void SetMainThreadId (void)

Detailed Description

Definition at line 105 of file include/vdr/remote.h.

Constructor & Destructor Documentation

cKbdRemote::cKbdRemote ( void  )

Definition at line 249 of file remote.c.

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

cKbdRemote::~cKbdRemote ( )
virtual

Definition at line 266 of file remote.c.

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

cKbdRemote::cKbdRemote ( void  )
virtual cKbdRemote::~cKbdRemote ( )
virtual

Member Function Documentation

void cKbdRemote::Action ( void  )
privatevirtual
virtual void cKbdRemote::Action ( void  )
privatevirtual
static bool cKbdRemote::KbdAvailable ( void  )
inlinestatic

Definition at line 117 of file include/vdr/remote.h.

References kbdAvailable.

static bool cKbdRemote::KbdAvailable ( void  )
inlinestatic

Definition at line 117 of file remote.h.

References kbdAvailable.

int cKbdRemote::MapCodeToFunc ( uint64_t  Code)
private

Definition at line 287 of file remote.c.

References tKbdMap::func, and kfNone.

Referenced by Action().

int cKbdRemote::MapCodeToFunc ( uint64_t  Code)
private
static uint64_t cKbdRemote::MapFuncToCode ( int  Func)
static
uint64_t cKbdRemote::MapFuncToCode ( int  Func)
static

Definition at line 278 of file remote.c.

References tKbdMap::func, and kfNone.

int cKbdRemote::ReadKey ( void  )
private
int cKbdRemote::ReadKey ( void  )
private

Definition at line 298 of file remote.c.

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

Referenced by ReadKeySequence().

uint64_t cKbdRemote::ReadKeySequence ( void  )
private
uint64_t cKbdRemote::ReadKeySequence ( void  )
private

Definition at line 312 of file remote.c.

References ReadKey().

Referenced by Action().

void cKbdRemote::SetRawMode ( bool  RawMode)
static

Definition at line 273 of file remote.c.

References rawMode.

static void cKbdRemote::SetRawMode ( bool  RawMode)
static

Member Data Documentation

static bool cKbdRemote::kbdAvailable = false
staticprivate

Definition at line 107 of file include/vdr/remote.h.

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

static bool cKbdRemote::rawMode = false
staticprivate

Definition at line 108 of file include/vdr/remote.h.

Referenced by Action(), and SetRawMode().

struct termios cKbdRemote::savedTm
private

Definition at line 109 of file include/vdr/remote.h.

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


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