vdr
1.7.27
|
#include <menu.h>
Public Member Functions | |
cMenuRecordings (const char *Base=NULL, int Level=0, bool OpenSubMenus=false) | |
~cMenuRecordings () | |
virtual eOSState | ProcessKey (eKeys Key) |
cMenuRecordings (const char *Base=NULL, int Level=0, bool OpenSubMenus=false) | |
~cMenuRecordings () | |
virtual eOSState | ProcessKey (eKeys Key) |
Protected Member Functions | |
cRecording * | GetRecording (cMenuRecordingItem *Item) |
cRecording * | GetRecording (cMenuRecordingItem *Item) |
Private Member Functions | |
bool | SetFreeDiskDisplay (bool Force=false) |
void | SetHelpKeys (void) |
void | Set (bool Refresh=false) |
bool | Open (bool OpenSubMenus=false) |
eOSState | Play (void) |
eOSState | Rewind (void) |
eOSState | Delete (void) |
eOSState | Info (void) |
eOSState | Commands (eKeys Key=kNone) |
eOSState | Edit (void) |
bool | SetFreeDiskDisplay (bool Force=false) |
void | SetHelpKeys (void) |
void | Set (bool Refresh=false) |
bool | Open (bool OpenSubMenus=false) |
eOSState | Play (void) |
eOSState | Rewind (void) |
eOSState | Delete (void) |
eOSState | Info (void) |
eOSState | Commands (eKeys Key=kNone) |
eOSState | Edit (void) |
Private Attributes | |
char * | base |
int | level |
int | recordingsState |
int | helpKeys |
Definition at line 194 of file include/vdr/menu.h.
cMenuRecordings::cMenuRecordings | ( | const char * | Base = NULL , |
int | Level = 0 , |
||
bool | OpenSubMenus = false |
||
) |
Definition at line 2559 of file menu.c.
References base, cOsdMenu::Current(), cOsdMenu::Display(), cList< cOsdItem >::First(), helpKeys, cReplayControl::LastReplayed(), level, Open(), cSetup::RecordingDirs, Recordings, recordingsState, Set(), cOsdMenu::SetCurrent(), SetFreeDiskDisplay(), SetHelpKeys(), Setup, and cRecordings::StateChanged().
Referenced by Open().
cMenuRecordings::cMenuRecordings | ( | const char * | Base = NULL , |
int | Level = 0 , |
||
bool | OpenSubMenus = false |
||
) |
eOSState cMenuRecordings::Commands | ( | eKeys | Key = kNone | ) | [private] |
Definition at line 2787 of file menu.c.
References cOsdMenu::AddSubMenu(), cListBase::Count(), cOsdMenu::Current(), cRecording::FileName(), cList< cOsdItem >::Get(), GetRecording(), cOsdMenu::HasSubMenu(), cMenuRecordingItem::IsDirectory(), kNone, osContinue, cMenuCommands::ProcessKey(), RecordingCommands, cString::sprintf(), strescape(), and tr.
Referenced by ProcessKey().
eOSState cMenuRecordings::Commands | ( | eKeys | Key = kNone | ) | [private] |
eOSState cMenuRecordings::Delete | ( | void | ) | [private] |
eOSState cMenuRecordings::Delete | ( | void | ) | [private] |
Definition at line 2718 of file menu.c.
References cCutter::Active(), cReplayControl::ClearLastReplayed(), cInterface::Confirm(), cListBase::Count(), cOsdMenu::Current(), cOsdMenu::Del(), cTimers::Del(), cRecordings::DelByName(), cRecording::Delete(), cOsdMenu::Display(), cMenuRecordingItem::FileName(), cList< cOsdItem >::Get(), cRecordings::GetByName(), cRecordControls::GetRecordControl(), GetRecording(), cOsdMenu::HasSubMenu(), Interface, cMenuRecordingItem::IsDirectory(), cTimer::IsSingleEvent(), isyslog, cSkins::Message(), mtError, cReplayControl::NowReplaying(), osBack, osContinue, cRecordControls::Process(), Recordings, SetFreeDiskDisplay(), SetHelpKeys(), cTimers::SetModified(), cControl::Shutdown(), Skins, cTimer::Skip(), cCutter::Stop(), cRecordControl::Timer(), Timers, cTimer::ToDescr(), and tr.
Referenced by ProcessKey().
eOSState cMenuRecordings::Edit | ( | void | ) | [private] |
Definition at line 2805 of file menu.c.
References cOsdMenu::AddSubMenu(), cListBase::Count(), cOsdMenu::Current(), cList< cOsdItem >::Get(), GetRecording(), cOsdMenu::HasSubMenu(), cMenuRecordingItem::IsDirectory(), and osContinue.
Referenced by ProcessKey().
eOSState cMenuRecordings::Edit | ( | void | ) | [private] |
cRecording* cMenuRecordings::GetRecording | ( | cMenuRecordingItem * | Item | ) | [protected] |
cRecording * cMenuRecordings::GetRecording | ( | cMenuRecordingItem * | Item | ) | [protected] |
Definition at line 2660 of file menu.c.
References cMenuRecordingItem::FileName(), cRecordings::GetByName(), cSkins::Message(), mtError, Recordings, Skins, and tr.
Referenced by Commands(), Delete(), Edit(), Info(), Play(), Rewind(), and SetHelpKeys().
eOSState cMenuRecordings::Info | ( | void | ) | [private] |
Definition at line 2774 of file menu.c.
References cOsdMenu::AddSubMenu(), cListBase::Count(), cOsdMenu::Current(), cList< cOsdItem >::Get(), GetRecording(), cOsdMenu::HasSubMenu(), cRecording::Info(), cMenuRecordingItem::IsDirectory(), osContinue, and cRecordingInfo::Title().
Referenced by ProcessKey().
eOSState cMenuRecordings::Info | ( | void | ) | [private] |
bool cMenuRecordings::Open | ( | bool | OpenSubMenus = false | ) | [private] |
bool cMenuRecordings::Open | ( | bool | OpenSubMenus = false | ) | [private] |
Definition at line 2668 of file menu.c.
References cOsdMenu::AddSubMenu(), base, cMenuRecordings(), cOsdMenu::Current(), cList< cOsdItem >::Get(), cMenuRecordingItem::IsDirectory(), level, cMenuRecordingItem::Name(), and cString::sprintf().
Referenced by cMenuRecordings(), and Play().
eOSState cMenuRecordings::Play | ( | void | ) | [private] |
eOSState cMenuRecordings::Play | ( | void | ) | [private] |
Definition at line 2684 of file menu.c.
References cOsdMenu::Current(), cRecording::FileName(), cList< cOsdItem >::Get(), GetRecording(), cMenuRecordingItem::IsDirectory(), Open(), osContinue, osReplay, cReplayControl::SetRecording(), and cRecording::Title().
Referenced by ProcessKey(), and Rewind().
eOSState cMenuRecordings::ProcessKey | ( | eKeys | Key | ) | [virtual] |
Reimplemented from cOsdMenu.
Definition at line 2818 of file menu.c.
References Commands(), cListBase::Count(), cOsdMenu::Current(), cOsdMenu::Del(), Delete(), cOsdMenu::Display(), Edit(), cOsdMenu::HasSubMenu(), helpKeys, Info(), k0, k1, kBlue, kGreen, kInfo, kNone, kOk, kPlay, kRed, kYellow, osBack, osUnknown, Play(), RecordingCommands, Recordings, recordingsState, Rewind(), Set(), SetFreeDiskDisplay(), SetHelpKeys(), and cRecordings::StateChanged().
virtual eOSState cMenuRecordings::ProcessKey | ( | eKeys | Key | ) | [virtual] |
Reimplemented from cOsdMenu.
eOSState cMenuRecordings::Rewind | ( | void | ) | [private] |
eOSState cMenuRecordings::Rewind | ( | void | ) | [private] |
Definition at line 2701 of file menu.c.
References cListBase::Count(), cOsdMenu::Current(), cResumeFile::Delete(), cMenuRecordingItem::FileName(), cList< cOsdItem >::Get(), GetRecording(), cOsdMenu::HasSubMenu(), cMenuRecordingItem::IsDirectory(), cRecording::IsPesRecording(), osContinue, Play(), cDevice::PrimaryDevice(), and cDevice::StopReplay().
Referenced by ProcessKey().
void cMenuRecordings::Set | ( | bool | Refresh = false | ) | [private] |
void cMenuRecordings::Set | ( | bool | Refresh = false | ) | [private] |
Definition at line 2619 of file menu.c.
References cOsdMenu::Add(), base, cOsdMenu::Clear(), cOsdMenu::Current(), cOsdMenu::Display(), cRecording::FileName(), cMenuRecordingItem::FileName(), cList< T >::First(), FOLDERDELIMCHAR, cList< cOsdItem >::Get(), cRecordings::GetByName(), cMenuRecordingItem::IncrementCounter(), cMenuRecordingItem::IsDirectory(), cReplayControl::LastReplayed(), level, cList< T >::Next(), Recordings, cOsdMenu::SetCurrent(), SetFreeDiskDisplay(), cListBase::Sort(), and cOsdItem::Text().
Referenced by cMenuRecordings(), and ProcessKey().
bool cMenuRecordings::SetFreeDiskDisplay | ( | bool | Force = false | ) | [private] |
bool cMenuRecordings::SetFreeDiskDisplay | ( | bool | Force = false | ) | [private] |
Definition at line 2583 of file menu.c.
References base, cFreeDiskSpace::FreeDiskSpaceString(), cFreeDiskSpace::HasChanged(), cOsdMenu::SetTitle(), cString::sprintf(), and tr.
Referenced by cMenuRecordings(), Delete(), ProcessKey(), and Set().
void cMenuRecordings::SetHelpKeys | ( | void | ) | [private] |
void cMenuRecordings::SetHelpKeys | ( | void | ) | [private] |
Definition at line 2593 of file menu.c.
References cListBase::Count(), cOsdMenu::Current(), cList< cOsdItem >::Get(), GetRecording(), helpKeys, cRecording::Info(), cMenuRecordingItem::IsDirectory(), RecordingCommands, cOsdMenu::SetHelp(), cRecordingInfo::Title(), and tr.
Referenced by cMenuRecordings(), Delete(), and ProcessKey().
char * cMenuRecordings::base [private] |
Definition at line 196 of file include/vdr/menu.h.
Referenced by cMenuRecordings(), Open(), Set(), SetFreeDiskDisplay(), and ~cMenuRecordings().
int cMenuRecordings::helpKeys [private] |
Definition at line 199 of file include/vdr/menu.h.
Referenced by cMenuRecordings(), ProcessKey(), SetHelpKeys(), and ~cMenuRecordings().
int cMenuRecordings::level [private] |
Definition at line 197 of file include/vdr/menu.h.
Referenced by cMenuRecordings(), Open(), and Set().
int cMenuRecordings::recordingsState [private] |
Definition at line 198 of file include/vdr/menu.h.
Referenced by cMenuRecordings(), and ProcessKey().