SASC
DVBSoftCAM

cRemote Class Reference

#include <remote.h>

Inheritance diagram for cRemote:

List of all members.

Public Member Functions

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

Static Public Member Functions

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)
 Absolute time when last key was delivered by Get().

Protected Member Functions

 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)

Detailed Description

Definition at line 20 of file remote.h.


Constructor & Destructor Documentation

cRemote::cRemote ( const char *  Name) [protected]
virtual cRemote::~cRemote ( ) [virtual]

Member Function Documentation

static bool cRemote::CallPlugin ( const char *  Plugin) [static]

Initiates calling the given plugin's main menu function. The Plugin parameter is the name of the plugin, and must be a static string. Returns true if the plugin call was successfully initiated (the actual call to the plugin's main menu function will take place some time later, during the next execution of VDR's main loop). If there is already a plugin call pending false will be returned and the caller should try again later.

static void cRemote::Clear ( void  ) [static]
static bool cRemote::Enabled ( void  ) [inline, static]

Definition at line 49 of file remote.h.

Referenced by SetEnabled().

{ return enabled; }
static eKeys cRemote::Get ( int  WaitMs = 1000,
char **  UnknownCode = NULL 
) [static]
static const char* cRemote::GetPlugin ( void  ) [static]

Returns the name of the plugin that was set with a previous call to PutMacro() or CallPlugin(). The internally stored pointer to the plugin name will be reset to NULL by this call.

const char* cRemote::GetSetup ( void  ) [protected]
static bool cRemote::HasKeys ( void  ) [static]
virtual bool cRemote::Initialize ( void  ) [virtual]
static bool cRemote::IsLearning ( ) [inline, static]

Definition at line 48 of file remote.h.

References NULL.

{ return learning != NULL; }
static time_t cRemote::LastActivity ( void  ) [inline, static]

Absolute time when last key was delivered by Get().

Definition at line 68 of file remote.h.

const char* cRemote::Name ( void  ) [inline]

Definition at line 46 of file remote.h.

{ return name; }
bool cRemote::Put ( const char *  Code,
bool  Repeat = false,
bool  Release = false 
) [protected]
bool cRemote::Put ( uint64_t  Code,
bool  Repeat = false,
bool  Release = false 
) [protected]
static bool cRemote::Put ( eKeys  Key,
bool  AtFront = false 
) [static]
static bool cRemote::PutMacro ( eKeys  Key) [static]
void cRemote::PutSetup ( const char *  Setup) [protected]
virtual bool cRemote::Ready ( void  ) [inline, virtual]

Definition at line 44 of file remote.h.

{ return true; }
static void cRemote::SetEnabled ( bool  Enabled) [inline, static]

Definition at line 50 of file remote.h.

References Enabled().

{ enabled = Enabled; }
static void cRemote::SetLearning ( cRemote *  Learning) [inline, static]

Definition at line 47 of file remote.h.

{ learning = Learning; }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines