#include <remote.h>
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) |
| 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) |
Private Types |
enum | { MaxKeys = 2 * MAXKEYSINMACRO
} |
enum | { MaxKeys = 2 * MAXKEYSINMACRO
} |
Private Attributes |
char * | name |
Detailed Description
Definition at line 20 of file include/vdr/remote.h.
Member Enumeration Documentation
- Enumerator:
-
Definition at line 22 of file remote.h.
Constructor & Destructor Documentation
cRemote::cRemote |
( |
const char * |
Name | ) |
|
|
protected |
cRemote::cRemote |
( |
const char * |
Name | ) |
|
|
protected |
virtual cRemote::~cRemote |
( |
| ) |
|
|
virtual |
Member Function Documentation
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.
Definition at line 151 of file remote.c.
References callPlugin, k_Plugin, mutex, and Put().
Referenced by cSVDRP::CmdPLUG(), and cPictureControl::ProcessKey().
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 |
void cRemote::Clear |
( |
void |
| ) |
|
|
static |
static bool cRemote::Enabled |
( |
void |
| ) |
|
|
inlinestatic |
static bool cRemote::Enabled |
( |
void |
| ) |
|
|
inlinestatic |
eKeys cRemote::Get |
( |
int |
WaitMs = 1000 , |
|
|
char ** |
UnknownCode = NULL |
|
) |
| |
|
static |
Definition at line 181 of file remote.c.
References enabled, in, k_Repeat, keyPressed, keys, kNone, learning, MaxKeys, mutex, out, REPEATTIMEOUT, repeatTimeout, cTimeMs::Set(), cTimeMs::TimedOut(), cCondVar::TimedWait(), TriggerLastActivity(), and unknownCode.
Referenced by cInterface::GetKey(), Initialize(), and cInterface::QueryKeys().
static eKeys cRemote::Get |
( |
int |
WaitMs = 1000 , |
|
|
char ** |
UnknownCode = NULL |
|
) |
| |
|
static |
const char * cRemote::GetPlugin |
( |
void |
| ) |
|
|
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 |
const char* cRemote::GetSetup |
( |
void |
| ) |
|
|
protected |
bool cRemote::HasKeys |
( |
void |
| ) |
|
|
static |
static bool cRemote::HasKeys |
( |
void |
| ) |
|
|
static |
bool cRemote::Initialize |
( |
void |
| ) |
|
|
virtual |
virtual bool cRemote::Initialize |
( |
void |
| ) |
|
|
virtual |
static bool cRemote::IsLearning |
( |
| ) |
|
|
inlinestatic |
static bool cRemote::IsLearning |
( |
| ) |
|
|
inlinestatic |
static time_t cRemote::LastActivity |
( |
void |
| ) |
|
|
inlinestatic |
static time_t cRemote::LastActivity |
( |
void |
| ) |
|
|
inlinestatic |
const char* cRemote::Name |
( |
void |
| ) |
|
|
inline |
const char* cRemote::Name |
( |
void |
| ) |
|
|
inline |
bool cRemote::Put |
( |
uint64_t |
Code, |
|
|
bool |
Repeat = false , |
|
|
bool |
Release = false |
|
) |
| |
|
protected |
bool cRemote::Put |
( |
uint64_t |
Code, |
|
|
bool |
Repeat = false , |
|
|
bool |
Release = false |
|
) |
| |
|
protected |
Definition at line 124 of file remote.c.
Referenced by cLircRemote::Action(), cRcuRemote::Action(), cKbdRemote::Action(), CallPlugin(), cSVDRP::CmdHITK(), cMenuEditFolder::cMenuEditFolder(), cOsdMenu::HotKey(), main(), cMenuMain::ProcessKey(), cDisplayChannel::ProcessKey(), cDisplayVolume::ProcessKey(), cMenuRecording::ProcessKey(), cMenuSetupDVB::ProcessKey(), Put(), PutMacro(), and cInterface::Wait().
bool cRemote::Put |
( |
const char * |
Code, |
|
|
bool |
Repeat = false , |
|
|
bool |
Release = false |
|
) |
| |
|
protected |
Definition at line 131 of file remote.c.
References cCondVar::Broadcast(), cKeys::Get(), k_Release, k_Repeat, keyPressed, Keys, kNone, learning, Name(), Put(), and unknownCode.
bool cRemote::Put |
( |
const char * |
Code, |
|
|
bool |
Repeat = false , |
|
|
bool |
Release = false |
|
) |
| |
|
protected |
static bool cRemote::Put |
( |
eKeys |
Key, |
|
|
bool |
AtFront = false |
|
) |
| |
|
static |
bool cRemote::Put |
( |
eKeys |
Key, |
|
|
bool |
AtFront = false |
|
) |
| |
|
static |
Definition at line 82 of file remote.c.
References cCondVar::Broadcast(), Clear(), in, k_Release, k_Repeat, keyPressed, keys, kNone, MaxKeys, mutex, and out.
static bool cRemote::PutMacro |
( |
eKeys |
Key | ) |
|
|
static |
bool cRemote::PutMacro |
( |
eKeys |
Key | ) |
|
|
static |
void cRemote::PutSetup |
( |
const char * |
Setup | ) |
|
|
protected |
void cRemote::PutSetup |
( |
const char * |
Setup | ) |
|
|
protected |
virtual bool cRemote::Ready |
( |
void |
| ) |
|
|
inlinevirtual |
virtual bool cRemote::Ready |
( |
void |
| ) |
|
|
inlinevirtual |
static void cRemote::SetEnabled |
( |
bool |
Enabled | ) |
|
|
inlinestatic |
static void cRemote::SetEnabled |
( |
bool |
Enabled | ) |
|
|
inlinestatic |
static void cRemote::SetLearning |
( |
cRemote * |
Learning | ) |
|
|
inlinestatic |
static void cRemote::SetLearning |
( |
cRemote * |
Learning | ) |
|
|
inlinestatic |
void cRemote::TriggerLastActivity |
( |
void |
| ) |
|
|
static |
Simulates user activity, for instance to keep the current menu open even if no remote control key has been pressed.
Definition at line 204 of file remote.c.
References lastActivity.
Referenced by Get(), and cMenuCam::Set().
static void cRemote::TriggerLastActivity |
( |
void |
| ) |
|
|
static |
Simulates user activity, for instance to keep the current menu open even if no remote control key has been pressed.
Member Data Documentation
static const char * cRemote::callPlugin = NULL |
|
staticprivate |
static bool cRemote::enabled = true |
|
staticprivate |
static int cRemote::in = 0 |
|
staticprivate |
static const char * cRemote::keyMacroPlugin = NULL |
|
staticprivate |
static eKeys cRemote::keys |
|
staticprivate |
static time_t cRemote::lastActivity = 0 |
|
staticprivate |
static cRemote * cRemote::learning = NULL |
|
staticprivate |
static int cRemote::out = 0 |
|
staticprivate |
static cTimeMs cRemote::repeatTimeout |
|
staticprivate |
static char * cRemote::unknownCode = NULL |
|
staticprivate |
The documentation for this class was generated from the following files: