vdr 2.7.6
cMenuSchedule Class Reference

Public Member Functions

 cMenuSchedule (void)
virtual ~cMenuSchedule () override
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 cOsdItemGet (int Index) const
const cOsdItemFirst (void) const
const cOsdItemLast (void) const
const cOsdItemPrev (const cOsdItem *Object) const
const cOsdItemNext (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 cListObjectGet (int Index) const
cListObjectGet (int Index)
int Count (void) const
void Sort (void)

Private Member Functions

void Set (const cTimers *Timers, const cChannels *Channels, const cChannel *Channel=NULL, bool Force=false)
eOSState Number (void)
eOSState Record (void)
eOSState Switch (void)
bool PrepareScheduleAllThis (const cTimers *Timers, const cSchedules *Schedules, const cEvent *Event, const cChannel *Channel)
bool PrepareScheduleThisThis (const cTimers *Timers, const cSchedules *Schedules, const cEvent *Event, const cChannel *Channel)
bool PrepareScheduleThisAll (const cTimers *Timers, const cSchedules *Schedules, const cEvent *Event, const cChannel *Channel)
bool PrepareScheduleAllAll (const cTimers *Timers, const cSchedules *Schedules, const cEvent *Event, const cChannel *Channel)
bool Update (void)
void SetHelpKeys (void)

Private Attributes

cStateKey timersStateKey
cStateKey schedulesStateKey
int scheduleState
bool now
bool next
bool canSwitch
int helpKeys

Additional Inherited Members

Protected Member Functions inherited from cOsdMenu
void SetDisplayMenu (void)
cSkinDisplayMenuDisplayMenu (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)
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)
cOsdMenuSubMenu (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)
Protected Attributes inherited from cListBase
cListObjectobjects
cListObjectlastObject
int count
cStateLock stateLock
const char * needsLocking
bool useGarbageCollector

Detailed Description

Definition at line 1861 of file menu.c.

Constructor & Destructor Documentation

◆ cMenuSchedule()

◆ ~cMenuSchedule()

cMenuSchedule::~cMenuSchedule ( )
overridevirtual

Definition at line 1900 of file menu.c.

References cMenuWhatsOn::ScheduleEvent().

Member Function Documentation

◆ Number()

eOSState cMenuSchedule::Number ( void )
private

Definition at line 2057 of file menu.c.

References cMenuScheduleItem::IncSortMode(), LOCK_CHANNELS_READ, LOCK_TIMERS_READ, osContinue, and Set().

Referenced by ProcessKey().

◆ PrepareScheduleAllAll()

bool cMenuSchedule::PrepareScheduleAllAll ( const cTimers * Timers,
const cSchedules * Schedules,
const cEvent * Event,
const cChannel * Channel )
private

◆ PrepareScheduleAllThis()

bool cMenuSchedule::PrepareScheduleAllThis ( const cTimers * Timers,
const cSchedules * Schedules,
const cEvent * Event,
const cChannel * Channel )
private

◆ PrepareScheduleThisAll()

bool cMenuSchedule::PrepareScheduleThisAll ( const cTimers * Timers,
const cSchedules * Schedules,
const cEvent * Event,
const cChannel * Channel )
private

◆ PrepareScheduleThisThis()

bool cMenuSchedule::PrepareScheduleThisThis ( const cTimers * Timers,
const cSchedules * Schedules,
const cEvent * Event,
const cChannel * Channel )
private

◆ ProcessKey()

◆ Record()

◆ Set()

◆ SetHelpKeys()

◆ Switch()

eOSState cMenuSchedule::Switch ( void )
private

◆ Update()

bool cMenuSchedule::Update ( void )
private

Member Data Documentation

◆ canSwitch

bool cMenuSchedule::canSwitch
private

Definition at line 1867 of file menu.c.

Referenced by cMenuSchedule(), ProcessKey(), and SetHelpKeys().

◆ helpKeys

int cMenuSchedule::helpKeys
private

Definition at line 1868 of file menu.c.

Referenced by cMenuSchedule(), and SetHelpKeys().

◆ next

bool cMenuSchedule::next
private

Definition at line 1866 of file menu.c.

Referenced by cMenuSchedule(), and ProcessKey().

◆ now

bool cMenuSchedule::now
private

◆ schedulesStateKey

cStateKey cMenuSchedule::schedulesStateKey
private

Definition at line 1864 of file menu.c.

Referenced by Set().

◆ scheduleState

int cMenuSchedule::scheduleState
private

Definition at line 1865 of file menu.c.

Referenced by cMenuSchedule(), PrepareScheduleAllThis(), PrepareScheduleThisThis(), and Set().

◆ timersStateKey

cStateKey cMenuSchedule::timersStateKey
private

Definition at line 1863 of file menu.c.

Referenced by Update().


The documentation for this class was generated from the following file: