Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cRemote Class Reference

#include <remote.h>

Inheritance diagram for cRemote:

Inheritance graph
[legend]
Collaboration diagram for cRemote:

Collaboration graph
[legend]

Detailed Description

Remote menu list configuration.

remote.h: General Remote Control handling

See the main source file 'vdr.c' for copyright information and how to reach the author.

Id
remote.h 1.24 2002/12/15 15:49:06 kls Exp

Definition at line 21 of file remote.h.

Public Methods

virtual ~cRemote ()
virtual bool Initialize (void)
const char * Name (void)

Static Public Methods

void SetLearning (cRemote *Learning)
void Clear (void)
bool Put (eKeys Key)
bool PutMacro (eKeys Key)
const char * GetPlugin (void)
eKeys Get (int WaitMs=1000, char **UnknownCode=NULL)

Protected Methods

 cRemote (const char *Name)
const char * GetSetup (void)
void PutSetup (const char *Setup)
bool Put (uint64 Code, bool Repeat=false, bool Release=false)
bool Put (const char *Code, bool Repeat=false, bool Release=false)

Private Types

enum  { MaxKeys = MAXKEYSINMACRO }

Private Attributes

char * name

Static Private Attributes

eKeys keys [MaxKeys]
int in = 0
int out = 0
cRemote * learning = NULL
char * unknownCode = NULL
cMutex mutex
cCondVar keyPressed
const char * plugin = NULL


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
MaxKeys 

Definition at line 23 of file remote.h.


Constructor & Destructor Documentation

cRemote::cRemote const char *    Name [protected]
 

Definition at line 32 of file remote.c.

References cListBase::Add(), name, and Remotes.

cRemote::~cRemote   [virtual]
 

Definition at line 38 of file remote.c.


Member Function Documentation

void cRemote::Clear void    [static]
 

Definition at line 53 of file remote.c.

References in, out, and unknownCode.

Referenced by cInterface::LearnKeys(), Put(), and cInterface::QueryKeys().

eKeys cRemote::Get int    WaitMs = 1000,
char **    UnknownCode = NULL
[static]
 

Definition at line 128 of file remote.c.

References eKeys, in, keyPressed, keys, kNone, learning, MaxKeys, out, cCondVar::TimedWait(), and unknownCode.

Referenced by cInterface::GetKey(), and cInterface::QueryKeys().

const char* cRemote::GetPlugin void    [inline, static]
 

Definition at line 51 of file remote.h.

const char * cRemote::GetSetup void    [protected]
 

Definition at line 43 of file remote.c.

References Name().

Referenced by cRcuRemote::cRcuRemote().

virtual bool cRemote::Initialize void    [inline, virtual]
 

Reimplemented in cRcuRemote.

Definition at line 41 of file remote.h.

Referenced by cInterface::QueryKeys().

const char* cRemote::Name void    [inline]
 

Definition at line 42 of file remote.h.

Referenced by cRcuRemote::cRcuRemote(), GetSetup(), cRcuRemote::Initialize(), cInterface::LearnKeys(), Put(), PutSetup(), and cInterface::QueryKeys().

bool cRemote::Put eKeys    Key [static]
 

Definition at line 63 of file remote.c.

References cCondVar::Broadcast(), Clear(), in, k_Release, k_Repeat, keyPressed, keys, kNone, MaxKeys, and out.

bool cRemote::Put const char *    Code,
bool    Repeat = false,
bool    Release = false
[protected]
 

Definition at line 108 of file remote.c.

References cCondVar::Broadcast(), eKeys, keyPressed, kNone, learning, Name(), Put(), and unknownCode.

bool cRemote::Put uint64    Code,
bool    Repeat = false,
bool    Release = false
[protected]
 

Definition at line 101 of file remote.c.

Referenced by cKbdRemote::Action(), cRcuRemote::Action(), cLircRemote::Action(), cSVDRP::CmdHITK(), cDisplayVolume::ProcessKey(), cDisplayChannel::ProcessKey(), Put(), PutMacro(), and cInterface::Wait().

bool cRemote::PutMacro eKeys    Key [static]
 

Definition at line 84 of file remote.c.

References kNone, cKeyMacro::Macro(), MAXKEYSINMACRO, cKeyMacro::Plugin(), plugin, and Put().

Referenced by main().

void cRemote::PutSetup const char *    Setup [protected]
 

Definition at line 48 of file remote.c.

References Name().

Referenced by cRcuRemote::Initialize().

void cRemote::SetLearning cRemote *    Learning [inline, static]
 

set learn mode

Definition at line 47 of file remote.h.

Referenced by cInterface::LearnKeys().


Field Documentation

int cRemote::in = 0 [static, private]
 

Definition at line 24 of file remote.c.

Referenced by Clear(), Get(), and Put().

cCondVar cRemote::keyPressed [static, private]
 

Definition at line 29 of file remote.c.

Referenced by Get(), and Put().

eKeys cRemote::keys [static, private]
 

--- cRemote ---------------------------------------------------------------

Definition at line 23 of file remote.c.

Referenced by Get(), and Put().

cRemote * cRemote::learning = NULL [static, private]
 

Definition at line 26 of file remote.c.

Referenced by Get(), and Put().

cMutex cRemote::mutex [static, private]
 

Definition at line 28 of file remote.c.

char* cRemote::name [private]
 

Definition at line 32 of file remote.h.

Referenced by cRemote().

int cRemote::out = 0 [static, private]
 

Definition at line 25 of file remote.c.

Referenced by Clear(), Get(), and Put().

const char * cRemote::plugin = NULL [static, private]
 

Definition at line 30 of file remote.c.

Referenced by PutMacro().

char * cRemote::unknownCode = NULL [static, private]
 

Definition at line 27 of file remote.c.

Referenced by Clear(), Get(), and Put().


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 23:31:51 2003 for VDR by doxygen1.3-rc2