|
vdr 2.8.1
|
#include <menu.h>
Public Member Functions | |
| cMenuRecordings (const char *Base=NULL, int Level=0, bool OpenSubMenus=false, const cRecordingFilter *Filter=NULL, bool DelRecMenu=false) | |
| ~cMenuRecordings () | |
| virtual eOSState | ProcessKey (eKeys Key) override |
| Public Member Functions inherited from cOsdMenu | |
| cOsdMenu (const char *Title, int c0=0, int c1=0, int c2=0, int c3=0, int c4=0) | |
| virtual | ~cOsdMenu () override |
| virtual bool | NeedsFastResponse (void) override |
| void | SetMenuCategory (eMenuCategory MenuCategory) |
| void | SetMenuSortMode (eMenuSortMode MenuSortMode) |
| int | Current (void) const |
| void | Add (cOsdItem *Item, bool Current=false, cOsdItem *After=NULL) |
| void | Ins (cOsdItem *Item, bool Current=false, cOsdItem *Before=NULL) |
| virtual void | Display (void) |
| Public Member Functions inherited from cOsdObject | |
| cOsdObject (bool FastResponse=false) | |
| virtual | ~cOsdObject () |
| bool | IsMenu (void) const |
| virtual void | Show (void) |
| Public Member Functions inherited from cList< cOsdItem > | |
| cList (const char *NeedsLocking=NULL) | |
| const cOsdItem * | Get (int Index) const |
| const cOsdItem * | First (void) const |
| const cOsdItem * | Last (void) const |
| const cOsdItem * | Prev (const cOsdItem *Object) const |
| const cOsdItem * | Next (const cOsdItem *Object) const |
| Public Member Functions inherited from cListBase | |
| virtual | ~cListBase () |
| bool | Lock (cStateKey &StateKey, bool Write=false, int TimeoutMs=0) const |
| void | SetSyncStateKey (cStateKey &StateKey) |
| void | SetUseGarbageCollector (void) |
| void | SetExplicitModify (void) |
| void | SetModified (void) |
| void | Add (cListObject *Object, cListObject *After=NULL) |
| void | Ins (cListObject *Object, cListObject *Before=NULL) |
| void | Del (cListObject *Object, bool DeleteObject=true) |
| virtual void | Move (int From, int To) |
| void | Move (cListObject *From, cListObject *To) |
| bool | Contains (const cListObject *Object) const |
| const cListObject * | Get (int Index) const |
| cListObject * | Get (int Index) |
| int | Count (void) const |
| void | Sort (void) |
Static Public Member Functions | |
| static void | SetRecording (const char *FileName) |
Protected Member Functions | |
| cString | DirectoryName (void) |
| Protected Member Functions inherited from cOsdMenu | |
| void | SetDisplayMenu (void) |
| cSkinDisplayMenu * | DisplayMenu (void) |
| const char * | hk (const char *s) |
| void | SetCols (int c0, int c1=0, int c2=0, int c3=0, int c4=0) |
| void | SetHasHotkeys (bool HasHotkeys=true) |
| virtual void | Clear (void) |
| const char * | Title (void) |
| int | VisibleItem (int Idx) |
| bool | SelectableItem (int idx) |
| void | SetCurrent (cOsdItem *Item) |
| void | RefreshCurrent (void) |
| void | DisplayCurrent (bool Current) |
| void | DisplayItem (cOsdItem *Item) |
| void | CursorUp (void) |
| void | CursorDown (void) |
| void | PageUp (void) |
| void | PageDown (void) |
| void | Mark (void) |
| eOSState | HotKey (eKeys Key) |
| eOSState | AddSubMenu (cOsdMenu *SubMenu) |
| eOSState | CloseSubMenu (bool ReDisplay=true) |
| bool | HasSubMenu (void) |
| cOsdMenu * | SubMenu (void) |
| void | SetStatus (const char *s) |
| void | SetTitle (const char *Title) |
| void | SetHelp (const char *Red, const char *Green=NULL, const char *Yellow=NULL, const char *Blue=NULL) |
| virtual void | Del (int Index) |
| Protected Member Functions inherited from cOsdObject | |
| void | SetNeedsFastResponse (bool NeedsFastResponse) |
| Protected Member Functions inherited from cListBase | |
| cListBase (const char *NeedsLocking=NULL) | |
Private Member Functions | |
| void | SetHelpKeys (void) |
| void | Set (bool Refresh=false) |
| bool | Open (bool OpenSubMenus=false) |
| eOSState | AdjustTitle (eOSState State, bool Redisplay=true) |
| eOSState | Play (void) |
| eOSState | Rewind (void) |
| eOSState | Delete (void) |
| eOSState | Restore (void) |
| eOSState | Purge (void) |
| eOSState | Info (void) |
| eOSState | Sort (void) |
| eOSState | Commands (eKeys Key=kNone) |
| void | SetDeleted (const char *FileName) |
Private Attributes | |
| char * | base |
| int | level |
| cStateKey | recordingsStateKey |
| int | helpKeys |
| bool | delRecMenu |
| bool | autoRefresh |
| const cRecordingFilter * | filter |
Static Private Attributes | |
| static cString | fileName |
| static cString | deletedName |
| static time_t | toggleDelRec = 0 |
Additional Inherited Members | |
| Protected Attributes inherited from cListBase | |
| cListObject * | objects |
| cListObject * | lastObject |
| int | count |
| cStateLock | stateLock |
| const char * | needsLocking |
| bool | useGarbageCollector |
| cMenuRecordings::cMenuRecordings | ( | const char * | Base = NULL, |
| int | Level = 0, | ||
| bool | OpenSubMenus = false, | ||
| const cRecordingFilter * | Filter = NULL, | ||
| bool | DelRecMenu = false ) |
Definition at line 3118 of file menu.c.
References autoRefresh, base, cOsdMenu::cOsdMenu(), cOsdMenu::Current(), deletedName, delRecMenu, cOsdMenu::Display(), fileName, filter, cList< cOsdItem >::First(), helpKeys, cReplayControl::LastReplayed(), level, mcRecording, mcRecordingDel, Open(), Set(), cOsdMenu::SetCurrent(), SetHelpKeys(), cOsdMenu::SetMenuCategory(), Setup, toggleDelRec, and tr.
Referenced by Open().
| cMenuRecordings::~cMenuRecordings | ( | ) |
Definition at line 3142 of file menu.c.
References base, cOsdMenu::Current(), delRecMenu, cList< cOsdItem >::Get(), SetDeleted(), and SetRecording().
Definition at line 3309 of file menu.c.
References base, delRecMenu, cOsdMenu::Display(), osUserRecEmpty, cOsdMenu::SetTitle(), and tr.
Referenced by ProcessKey(), and Set().
Definition at line 3536 of file menu.c.
References cOsdMenu::AddSubMenu(), cListBase::Count(), cOsdMenu::Current(), cRecording::FileName(), cList< cOsdItem >::Get(), cOsdMenu::HasSubMenu(), cMenuRecordingItem::IsDirectory(), kNone, osContinue, cMenuCommands::ProcessKey(), cMenuRecordingItem::Recording(), RecordingCommands, cString::sprintf(), strescape(), and tr.
|
private |
Definition at line 3401 of file menu.c.
References cRecordings::Add(), cReplayControl::ClearLastReplayed(), cListBase::Count(), cOsdMenu::Current(), cListBase::Del(), cOsdMenu::Del(), cRecording::Delete(), cOsdMenu::Display(), cRecording::FileName(), cVideoDiskUsage::ForceCheck(), cList< cOsdItem >::Get(), cRecordings::GetByName(), cRecordings::GetDeletedRecordingsWrite(), cRecordings::GetRecordingsWrite(), cOsdMenu::HasSubMenu(), Interface, cMenuRecordingItem::IsDirectory(), LOCK_RECORDINGS_READ, mtError, cReplayControl::NowReplaying(), osContinue, osUserRecEmpty, osUserRecRemoved, cMenuRecordingItem::Recording(), RecordingsHandler, recordingsStateKey, cStateKey::Remove(), SetDeleted(), SetHelpKeys(), cOsdObject::SetNeedsFastResponse(), cControl::Shutdown(), Skins, TimerStillRecording(), cRecordings::TouchUpdate(), and tr.
Referenced by ProcessKey().
|
protected |
Definition at line 3282 of file menu.c.
References base, ExchangeChars(), cVideoDirectory::Name(), and cString::sprintf().
|
private |
Definition at line 3521 of file menu.c.
References cOsdMenu::AddSubMenu(), cListBase::Count(), cOsdMenu::Current(), delRecMenu, FOLDERDELIMCHAR, cList< cOsdItem >::Get(), cOsdMenu::HasSubMenu(), osContinue, and strchrn().
Referenced by ProcessKey().
|
private |
Definition at line 3293 of file menu.c.
References cOsdMenu::AddSubMenu(), base, cMenuRecordings(), cOsdMenu::Current(), delRecMenu, filter, FOLDERDELIMCHAR, cList< cOsdItem >::Get(), cMenuRecordingItem::IsDirectory(), level, cMenuRecordingItem::Name(), and cString::sprintf().
Referenced by cMenuRecordings(), Play(), and ProcessKey().
|
private |
Definition at line 3322 of file menu.c.
References cOsdMenu::Current(), cRecording::FileName(), cList< cOsdItem >::Get(), cMenuRecordingItem::IsDirectory(), Open(), osContinue, osReplay, cMenuRecordingItem::Recording(), and cReplayControl::SetRecording().
Referenced by ProcessKey(), and Rewind().
Reimplemented from cOsdMenu.
Definition at line 3563 of file menu.c.
References AdjustTitle(), base, cOsdMenu::CloseSubMenu(), Commands, cOsdMenu::cOsdMenu(), cListBase::Count(), cOsdMenu::Current(), cOsdMenu::Del(), Delete(), delRecMenu, cOsdMenu::Display(), fileName, cList< cOsdItem >::Get(), cOsdMenu::HasSubMenu(), helpKeys, Info(), k0, k1, kBlue, kGreen, kInfo, kNone, kOk, kPlay, kPlayPause, kRed, kYellow, Open(), osContinue, osRecsDel, osRecsOpen, osUnknown, osUserRecEmpty, osUserRecMoved, osUserRecRemoved, osUserRecRenamed, Play(), cOsdMenu::ProcessKey(), Purge(), RecordingCommands, Restore(), Rewind(), Set(), SetHelpKeys(), Sort(), cOsdMenu::SubMenu(), and toggleDelRec.
|
private |
Definition at line 3491 of file menu.c.
References cListBase::Count(), cOsdMenu::Current(), cListBase::Del(), cOsdMenu::Del(), cOsdMenu::Display(), cVideoDiskUsage::ForceCheck(), cList< cOsdItem >::Get(), cRecordings::GetDeletedRecordingsWrite(), cOsdMenu::HasSubMenu(), Interface, cMenuRecordingItem::IsDirectory(), mtError, osContinue, osUserRecEmpty, osUserRecRemoved, cMenuRecordingItem::Recording(), recordingsStateKey, SetHelpKeys(), Skins, cRecordings::TouchUpdate(), and tr.
Referenced by ProcessKey().
|
private |
Definition at line 3455 of file menu.c.
References cRecordings::Add(), cListBase::Count(), cOsdMenu::Current(), cListBase::Del(), cOsdMenu::Del(), cOsdMenu::Display(), cVideoDiskUsage::ForceCheck(), cList< cOsdItem >::Get(), cRecordings::GetDeletedRecordingsWrite(), cRecordings::GetRecordingsWrite(), cOsdMenu::HasSubMenu(), Interface, cMenuRecordingItem::IsDirectory(), mtError, osContinue, osUserRecEmpty, osUserRecRemoved, cMenuRecordingItem::Recording(), recordingsStateKey, cStateKey::Remove(), SetHelpKeys(), SetRecording(), Skins, cRecordings::TouchUpdate(), and tr.
Referenced by ProcessKey().
|
private |
Definition at line 3336 of file menu.c.
References cListBase::Count(), cOsdMenu::Current(), cRecording::DeleteResume(), cList< cOsdItem >::Get(), cOsdMenu::HasSubMenu(), cMenuRecordingItem::IsDirectory(), osContinue, Play(), cDevice::PrimaryDevice(), cMenuRecordingItem::Recording(), and cDevice::StopReplay().
Referenced by ProcessKey().
|
private |
Definition at line 3186 of file menu.c.
References cOsdMenu::Add(), AdjustTitle(), autoRefresh, base, cOsdMenu::Clear(), cListBase::Count(), cOsdMenu::Current(), cOsdMenu::current, deletedName, delRecMenu, DirectoryName(), cOsdMenu::Display(), cOsdMenu::DisplayMenu(), fileName, filter, cList< T >::First(), cList< cOsdItem >::First(), FOLDERDELIMCHAR, cList< cOsdItem >::Get(), cRecordings::GetDeletedRecordingsRead(), cRecordings::GetDeletedRecordingsWrite(), cRecordings::GetRecordingsRead(), GetRecordingsSortMode(), cRecordings::GetRecordingsWrite(), cMenuRecordingItem::IncrementCounter(), cMenuRecordingItem::IsDirectory(), cReplayControl::LastReplayed(), level, msmName, msmTime, cMenuRecordingItem::Name(), cList< T >::Next(), cList< cOsdItem >::Next(), osContinue, osUserRecEmpty, RecordingsSortMode, recordingsStateKey, rsmName, cOsdMenu::SetCurrent(), SetHelpKeys(), cOsdMenu::SetMenuSortMode(), Setup, cListBase::Sort(), cOsdItem::Text(), cMenuRecordingItem::Update(), cMenuRecordingItem::Usage(), and cOsdMenu::VisibleItem().
Referenced by cMenuRecordings(), ProcessKey(), and Sort().
|
private |
Definition at line 3272 of file menu.c.
References deletedName.
Referenced by Delete(), and ~cMenuRecordings().
|
private |
Definition at line 3155 of file menu.c.
References cOsdMenu::Current(), delRecMenu, cList< cOsdItem >::Get(), helpKeys, cMenuRecordingItem::IsDirectory(), RecordingCommands, cOsdMenu::SetHelp(), toggleDelRec, and tr.
Referenced by cMenuRecordings(), Delete(), ProcessKey(), Purge(), Restore(), and Set().
|
static |
Definition at line 3277 of file menu.c.
References fileName.
Referenced by main(), Restore(), Sort(), cReplayControl::Stop(), and ~cMenuRecordings().
|
private |
Definition at line 3551 of file menu.c.
References cOsdMenu::Current(), DirectoryName(), cList< cOsdItem >::Get(), cOsdMenu::HasSubMenu(), IncRecordingsSortMode(), osContinue, recordingsStateKey, Set(), and SetRecording().
Referenced by ProcessKey().
|
private |
Definition at line 218 of file menu.h.
Referenced by cMenuRecordings(), and Set().
|
private |
Definition at line 213 of file menu.h.
Referenced by AdjustTitle(), cMenuRecordings(), DirectoryName(), Open(), ProcessKey(), Set(), and ~cMenuRecordings().
|
staticprivate |
Definition at line 221 of file menu.h.
Referenced by cMenuRecordings(), Set(), and SetDeleted().
|
private |
Definition at line 217 of file menu.h.
Referenced by AdjustTitle(), cMenuRecordings(), Info(), Open(), ProcessKey(), Set(), SetHelpKeys(), and ~cMenuRecordings().
|
staticprivate |
Definition at line 220 of file menu.h.
Referenced by cMenuRecordings(), ProcessKey(), Set(), and SetRecording().
|
private |
Definition at line 219 of file menu.h.
Referenced by cMenuRecordings(), Open(), and Set().
|
private |
Definition at line 216 of file menu.h.
Referenced by cMenuRecordings(), ProcessKey(), and SetHelpKeys().
|
private |
Definition at line 214 of file menu.h.
Referenced by cMenuRecordings(), Open(), and Set().
|
private |
|
staticprivate |
Definition at line 222 of file menu.h.
Referenced by cMenuRecordings(), ProcessKey(), and SetHelpKeys().