#include <remote.h>
|
| 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) |
|
|
enum | { MaxKeys = 2 * MAXKEYSINMACRO
} |
|
enum | { MaxKeys = 2 * MAXKEYSINMACRO
} |
|
Definition at line 20 of file include/vdr/remote.h.
◆ anonymous enum
◆ anonymous enum
◆ cRemote() [1/2]
cRemote::cRemote |
( |
const char * |
Name | ) |
|
|
protected |
◆ ~cRemote() [1/2]
◆ cRemote() [2/2]
cRemote::cRemote |
( |
const char * |
Name | ) |
|
|
protected |
◆ ~cRemote() [2/2]
virtual cRemote::~cRemote |
( |
| ) |
|
|
virtual |
◆ CallPlugin() [1/2]
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 cSVDRPServer::CmdPLUG(), and cPictureControl::ProcessKey().
◆ CallPlugin() [2/2]
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.
◆ Clear() [1/2]
void cRemote::Clear |
( |
void |
| ) |
|
|
static |
◆ Clear() [2/2]
static void cRemote::Clear |
( |
void |
| ) |
|
|
static |
◆ Enabled() [1/2]
static bool cRemote::Enabled |
( |
void |
| ) |
|
|
inlinestatic |
◆ Enabled() [2/2]
static bool cRemote::Enabled |
( |
void |
| ) |
|
|
inlinestatic |
◆ Get() [1/2]
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().
◆ Get() [2/2]
static eKeys cRemote::Get |
( |
int |
WaitMs = 1000 , |
|
|
char ** |
UnknownCode = NULL |
|
) |
| |
|
static |
◆ GetPlugin() [1/2]
const char * cRemote::GetPlugin |
( |
void |
| ) |
|
|
static |
◆ GetPlugin() [2/2]
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.
◆ GetSetup() [1/2]
const char * cRemote::GetSetup |
( |
void |
| ) |
|
|
protected |
◆ GetSetup() [2/2]
const char * cRemote::GetSetup |
( |
void |
| ) |
|
|
protected |
◆ HasKeys() [1/2]
bool cRemote::HasKeys |
( |
void |
| ) |
|
|
static |
◆ HasKeys() [2/2]
static bool cRemote::HasKeys |
( |
void |
| ) |
|
|
static |
◆ Initialize() [1/2]
bool cRemote::Initialize |
( |
void |
| ) |
|
|
virtual |
◆ Initialize() [2/2]
virtual bool cRemote::Initialize |
( |
void |
| ) |
|
|
virtual |
◆ IsLearning() [1/2]
static bool cRemote::IsLearning |
( |
| ) |
|
|
inlinestatic |
◆ IsLearning() [2/2]
static bool cRemote::IsLearning |
( |
| ) |
|
|
inlinestatic |
◆ LastActivity() [1/2]
static time_t cRemote::LastActivity |
( |
void |
| ) |
|
|
inlinestatic |
◆ LastActivity() [2/2]
static time_t cRemote::LastActivity |
( |
void |
| ) |
|
|
inlinestatic |
◆ Name() [1/2]
const char * cRemote::Name |
( |
void |
| ) |
|
|
inline |
◆ Name() [2/2]
const char * cRemote::Name |
( |
void |
| ) |
|
|
inline |
◆ Put() [1/6]
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.
◆ Put() [2/6]
bool cRemote::Put |
( |
const char * |
Code, |
|
|
bool |
Repeat = false , |
|
|
bool |
Release = false |
|
) |
| |
|
protected |
◆ Put() [3/6]
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.
◆ Put() [4/6]
static bool cRemote::Put |
( |
eKeys |
Key, |
|
|
bool |
AtFront = false |
|
) |
| |
|
static |
◆ Put() [5/6]
bool cRemote::Put |
( |
uint64_t |
Code, |
|
|
bool |
Repeat = false , |
|
|
bool |
Release = false |
|
) |
| |
|
protected |
Definition at line 124 of file remote.c.
References Put().
Referenced by cLircRemote::Action(), cRcuRemote::Action(), CallPlugin(), cSVDRPServer::CmdHITK(), cMenuEditFolder::cMenuEditFolder(), cOsdMenu::HotKey(), main(), cMenuMain::ProcessKey(), cDisplayChannel::ProcessKey(), cDisplayVolume::ProcessKey(), cMenuRecording::ProcessKey(), cMenuSetupDVB::ProcessKey(), Put(), cKbdRemote::PutKey(), PutMacro(), and cInterface::Wait().
◆ Put() [6/6]
bool cRemote::Put |
( |
uint64_t |
Code, |
|
|
bool |
Repeat = false , |
|
|
bool |
Release = false |
|
) |
| |
|
protected |
◆ PutMacro() [1/2]
bool cRemote::PutMacro |
( |
eKeys |
Key | ) |
|
|
static |
◆ PutMacro() [2/2]
static bool cRemote::PutMacro |
( |
eKeys |
Key | ) |
|
|
static |
◆ PutSetup() [1/2]
void cRemote::PutSetup |
( |
const char * |
Setup | ) |
|
|
protected |
◆ PutSetup() [2/2]
void cRemote::PutSetup |
( |
const char * |
Setup | ) |
|
|
protected |
◆ Ready() [1/2]
virtual bool cRemote::Ready |
( |
void |
| ) |
|
|
inlinevirtual |
◆ Ready() [2/2]
virtual bool cRemote::Ready |
( |
void |
| ) |
|
|
inlinevirtual |
◆ SetEnabled() [1/2]
static void cRemote::SetEnabled |
( |
bool |
Enabled | ) |
|
|
inlinestatic |
◆ SetEnabled() [2/2]
static void cRemote::SetEnabled |
( |
bool |
Enabled | ) |
|
|
inlinestatic |
◆ SetLearning() [1/2]
static void cRemote::SetLearning |
( |
cRemote * |
Learning | ) |
|
|
inlinestatic |
◆ SetLearning() [2/2]
static void cRemote::SetLearning |
( |
cRemote * |
Learning | ) |
|
|
inlinestatic |
◆ TriggerLastActivity() [1/2]
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().
◆ TriggerLastActivity() [2/2]
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.
◆ callPlugin
static const char * cRemote::callPlugin = NULL |
|
staticprivate |
◆ enabled
static bool cRemote::enabled = true |
|
staticprivate |
◆ in
static int cRemote::in = 0 |
|
staticprivate |
◆ keyMacroPlugin
static const char * cRemote::keyMacroPlugin = NULL |
|
staticprivate |
◆ keyPressed
◆ keys
static eKeys cRemote::keys |
|
staticprivate |
◆ lastActivity
static time_t cRemote::lastActivity = 0 |
|
staticprivate |
◆ learning
static cRemote * cRemote::learning = NULL |
|
staticprivate |
◆ mutex
◆ name
◆ out
static int cRemote::out = 0 |
|
staticprivate |
◆ repeatTimeout
static cTimeMs cRemote::repeatTimeout |
|
staticprivate |
◆ unknownCode
static char * cRemote::unknownCode = NULL |
|
staticprivate |
The documentation for this class was generated from the following files: