vdr
2.2.0
|
#include <interface.h>
Public Member Functions | |
cInterface (int SVDRPport=0) | |
~cInterface () | |
bool | HasSVDRPConnection (void) |
void | Interrupt (void) |
eKeys | GetKey (bool Wait=true) |
eKeys | Wait (int Seconds=0, bool KeepChar=false) |
bool | Confirm (const char *s, int Seconds=10, bool WaitForTimeout=false) |
void | LearnKeys (void) |
Private Member Functions | |
bool | QueryKeys (cRemote *Remote, cSkinDisplayMenu *DisplayMenu) |
Private Attributes | |
bool | interrupted |
cSVDRP * | SVDRP |
Definition at line 18 of file interface.h.
cInterface::cInterface | ( | int | SVDRPport = 0 | ) |
Definition at line 22 of file interface.c.
References interrupted, and SVDRP.
cInterface::~cInterface | ( | ) |
Definition at line 30 of file interface.c.
References SVDRP.
bool cInterface::Confirm | ( | const char * | s, |
int | Seconds = 10 , |
||
bool | WaitForTimeout = false |
||
) |
Definition at line 67 of file interface.c.
References isyslog, kNone, kOk, cSkins::Message(), mtWarning, and Skins.
Referenced by cMenuRecordingEdit::Action(), cPluginManager::Active(), cMenuPathEdit::ApplyChanges(), cShutdownHandler::ConfirmRestart(), cShutdownHandler::ConfirmShutdown(), cMenuFolder::Delete(), cMenuRecordings::Delete(), cMenuChannels::Delete(), cMenuTimers::Delete(), cMenuRecordingEdit::Delete(), cReplayControl::EditCut(), cMenuCommands::Execute(), Interrupt(), main(), cPluginSvcCli::MainMenuAction(), cPluginHello::MainMenuAction(), cMenuMain::ProcessKey(), cMenuRecordingEdit::RemoveName(), cMenuSetupCAM::Reset(), cMenuSetup::Restart(), cPluginSvcSvr::Service(), cPluginSvcCli::Service(), and cReplayControl::Stop().
eKeys cInterface::GetKey | ( | bool | Wait = true | ) |
Definition at line 35 of file interface.c.
References cSkins::Flush(), cRemote::Get(), cRemote::HasKeys(), cRemote::IsLearning(), kNone, cSVDRP::Process(), Skins, and SVDRP.
Referenced by Interrupt(), LearnKeys(), main(), and Wait().
|
inline |
Definition at line 26 of file interface.h.
References cSVDRP::HasConnection().
Referenced by main().
|
inline |
Definition at line 27 of file interface.h.
References Confirm(), GetKey(), Interface, LearnKeys(), and Wait().
Referenced by SignalHandler().
void cInterface::LearnKeys | ( | void | ) |
Definition at line 155 of file interface.c.
References cRemote::Clear(), cSkinDisplayMenu::Clear(), cSkins::Current(), cSkin::DisplayMenu(), dsyslog, esyslog, cList< T >::First(), GetKey(), kDown, Keys, cKeys::KnowsRemote(), kUp, cConfig< T >::Load(), mcUnknown, cList< T >::Next(), QueryKeys(), Remotes, cConfig< T >::Save(), cSkinDisplayMenu::SetItem(), cRemote::SetLearning(), cSkinDisplayMenu::SetMenuCategory(), cSkinDisplayMenu::SetTitle(), Skins, and tr.
Referenced by Interrupt(), and main().
|
private |
Definition at line 76 of file interface.c.
References cListBase::Add(), cRemote::Clear(), cSkinDisplayMenu::Clear(), cListBase::Del(), dsyslog, cSkinDisplay::Flush(), cRemote::Get(), cRemote::Initialize(), kDown, cKey::Key(), Keys, kMenu, kNone, kUp, cList< T >::Last(), cRemote::Name(), cSkinDisplayMenu::SetItem(), cCondWait::SleepMs(), cString::sprintf(), cKey::ToString(), and tr.
Referenced by LearnKeys().
eKeys cInterface::Wait | ( | int | Seconds = 0 , |
bool | KeepChar = false |
||
) |
Definition at line 49 of file interface.c.
References cSkins::Flush(), GetKey(), interrupted, ISRAWKEY, k_Plugin, kNone, cSetup::OSDMessageTime, cRemote::Put(), Setup, and Skins.
Referenced by Interrupt(), and cSkins::Message().
|
private |
Definition at line 20 of file interface.h.
Referenced by cInterface(), and Wait().
|
private |
Definition at line 21 of file interface.h.
Referenced by cInterface(), GetKey(), and ~cInterface().