vdr
2.2.0
|
Public Member Functions | |
cRcuRemote (const char *DeviceName) | |
virtual | ~cRcuRemote () |
virtual bool | Ready (void) |
virtual bool | Initialize (void) |
![]() | |
virtual | ~cRemote () |
const char * | Name (void) |
![]() | |
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 |
cListObject * | Prev (void) const |
cListObject * | Next (void) const |
Private Types | |
enum | { modeH = 'h', modeB = 'b', modeS = 's' } |
Private Member Functions | |
bool | SendCommand (unsigned char Cmd) |
int | ReceiveByte (int TimeoutMs=0) |
bool | SendByteHandshake (unsigned char c) |
bool | SendByte (unsigned char c) |
bool | SendData (unsigned int n) |
void | SetCode (unsigned char Code) |
void | SetMode (unsigned char Mode) |
void | SetNumber (int n, bool Hex=false) |
void | SetPoints (unsigned char Dp, bool On) |
void | SetString (const char *s) |
bool | DetectCode (unsigned char *Code) |
virtual void | Action (void) |
virtual void | ChannelSwitch (const cDevice *Device, int ChannelNumber, bool LiveView) |
virtual void | Recording (const cDevice *Device, const char *Name, const char *FileName, bool On) |
![]() | |
cThread (const char *Description=NULL, bool LowPriority=false) | |
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) |
bool | Running (void) |
void | Cancel (int WaitSeconds=0) |
![]() | |
cStatus (void) | |
virtual | ~cStatus () |
virtual void | ChannelChange (const cChannel *Channel) |
virtual void | TimerChange (const cTimer *Timer, eTimerChange Change) |
virtual void | Replaying (const cControl *Control, const char *Name, const char *FileName, bool On) |
virtual void | SetVolume (int Volume, bool Absolute) |
virtual void | SetAudioTrack (int Index, const char *const *Tracks) |
virtual void | SetAudioChannel (int AudioChannel) |
virtual void | SetSubtitleTrack (int Index, const char *const *Tracks) |
virtual void | OsdClear (void) |
virtual void | OsdTitle (const char *Title) |
virtual void | OsdStatusMessage (const char *Message) |
virtual void | OsdHelpKeys (const char *Red, const char *Green, const char *Yellow, const char *Blue) |
virtual void | OsdItem (const char *Text, int Index) |
virtual void | OsdCurrentItem (const char *Text) |
virtual void | OsdTextItem (const char *Text, bool Scroll) |
virtual void | OsdChannel (const char *Text) |
virtual void | OsdProgramme (time_t PresentTime, const char *PresentTitle, const char *PresentSubtitle, time_t FollowingTime, const char *FollowingTitle, const char *FollowingSubtitle) |
![]() | |
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 |
cListObject * | Prev (void) const |
cListObject * | Next (void) const |
Private Attributes | |
int | f |
unsigned char | dp |
unsigned char | code |
unsigned char | mode |
int | number |
unsigned int | data |
bool | receivedCommand |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
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 tThreadId | ThreadId (void) |
static tThreadId | IsMainThread (void) |
static void | SetMainThreadId (void) |
![]() | |
static void | MsgChannelChange (const cChannel *Channel) |
static void | MsgTimerChange (const cTimer *Timer, eTimerChange Change) |
static void | MsgChannelSwitch (const cDevice *Device, int ChannelNumber, bool LiveView) |
static void | MsgRecording (const cDevice *Device, const char *Name, const char *FileName, bool On) |
static void | MsgReplaying (const cControl *Control, const char *Name, const char *FileName, bool On) |
static void | MsgSetVolume (int Volume, bool Absolute) |
static void | MsgSetAudioTrack (int Index, const char *const *Tracks) |
static void | MsgSetAudioChannel (int AudioChannel) |
static void | MsgSetSubtitleTrack (int Index, const char *const *Tracks) |
static void | MsgOsdClear (void) |
static void | MsgOsdTitle (const char *Title) |
static void | MsgOsdStatusMessage (const char *Message) |
static void | MsgOsdHelpKeys (const char *Red, const char *Green, const char *Yellow, const char *Blue) |
static void | MsgOsdItem (const char *Text, int Index) |
static void | MsgOsdCurrentItem (const char *Text) |
static void | MsgOsdTextItem (const char *Text, bool Scroll=false) |
static void | MsgOsdChannel (const char *Text) |
static void | MsgOsdProgramme (time_t PresentTime, const char *PresentTitle, const char *PresentSubtitle, time_t FollowingTime, const char *FollowingTitle, const char *FollowingSubtitle) |
cRcuRemote::cRcuRemote | ( | const char * | DeviceName | ) |
Definition at line 56 of file rcu.c.
References code, data, dp, f, cRemote::GetSetup(), isyslog, LOG_ERROR_STR, mode, modeB, cRemote::Name(), number, receivedCommand, SetCode(), SetNumber(), Setup, and cThread::Start().
Referenced by cPluginRcu::Start().
|
virtual |
Definition at line 91 of file rcu.c.
References cThread::Cancel().
|
privatevirtual |
A derived cThread class must implement the code it wants to execute as a separate thread in this function.
If this is a loop, it must check Running() repeatedly to see whether it's time to stop.
Implements cThread.
Definition at line 121 of file rcu.c.
References code, data, cTimeMs::Elapsed(), f, mode, cRemote::Put(), ReceiveByte(), receivedCommand, REPEATDELAY, REPEATLIMIT, cThread::Running(), SendCommand(), SendData(), and cTimeMs::Set().
|
privatevirtual |
Reimplemented from cStatus.
Definition at line 356 of file rcu.c.
References cDevice::CurrentChannel(), and SetNumber().
|
private |
Definition at line 322 of file rcu.c.
References modeB, modeH, receivedCommand, REPEATDELAY, SetCode(), SetMode(), SetString(), and cCondWait::SleepMs().
Referenced by Initialize().
|
virtual |
Reimplemented from cRemote.
Definition at line 101 of file rcu.c.
References code, DetectCode(), f, isyslog, cRemote::Name(), and cRemote::PutSetup().
|
virtual |
|
private |
Definition at line 203 of file rcu.c.
References f, cFile::FileReady(), LOG_ERROR, and safe_read().
Referenced by Action(), and SendByteHandshake().
|
privatevirtual |
Reimplemented from cStatus.
Definition at line 362 of file rcu.c.
References cDevice::DeviceNumber(), cDevice::Receiving(), and SetPoints().
|
private |
Definition at line 240 of file rcu.c.
References SendByteHandshake().
Referenced by SendCommand(), and SendData().
|
private |
Definition at line 216 of file rcu.c.
References f, HANDSHAKETIMEOUT, LOG_ERROR, and ReceiveByte().
Referenced by SendByte().
|
private |
Definition at line 269 of file rcu.c.
References SendByte().
Referenced by Action(), and SendData().
|
private |
Definition at line 249 of file rcu.c.
References mode, SendByte(), and SendCommand().
Referenced by Action().
|
private |
Definition at line 259 of file rcu.c.
References code.
Referenced by cRcuRemote(), and DetectCode().
|
private |
|
private |
Definition at line 274 of file rcu.c.
References data, dp, and number.
Referenced by ChannelSwitch(), cRcuRemote(), SetPoints(), and SetString().
|
private |
Definition at line 313 of file rcu.c.
References dp, number, and SetNumber().
Referenced by Recording().
|
private |
Definition at line 296 of file rcu.c.
References mode, modeH, and SetNumber().
Referenced by DetectCode().
|
private |
Definition at line 31 of file rcu.c.
Referenced by Action(), cRcuRemote(), Initialize(), and SetCode().
|
private |
Definition at line 33 of file rcu.c.
Referenced by Action(), cRcuRemote(), and SetNumber().
|
private |
Definition at line 31 of file rcu.c.
Referenced by cRcuRemote(), SetNumber(), and SetPoints().
|
private |
Definition at line 30 of file rcu.c.
Referenced by Action(), cRcuRemote(), Initialize(), Ready(), ReceiveByte(), and SendByteHandshake().
|
private |
Definition at line 31 of file rcu.c.
Referenced by Action(), cRcuRemote(), SendData(), SetMode(), and SetString().
|
private |
Definition at line 32 of file rcu.c.
Referenced by cRcuRemote(), SetNumber(), and SetPoints().
|
private |
Definition at line 34 of file rcu.c.
Referenced by Action(), cRcuRemote(), and DetectCode().