vdr 2.7.7
cMenuScheduleItem Class Reference

Public Types

enum  eScheduleSortMode { ssmAllThis , ssmThisThis , ssmThisAll , ssmAllAll }

Public Member Functions

 cMenuScheduleItem (const cTimers *Timers, const cEvent *Event, const cChannel *Channel=NULL, bool WithDate=false)
virtual int Compare (const cListObject &ListObject) const override
bool Update (const cTimers *Timers, bool Force=false)
virtual void SetMenuItem (cSkinDisplayMenu *DisplayMenu, int Index, bool Current, bool Selectable) override
Public Member Functions inherited from cOsdItem
 cOsdItem (eOSState State=osUnknown)
 cOsdItem (const char *Text, eOSState State=osUnknown, bool Selectable=true)
virtual ~cOsdItem () override
bool Selectable (void) const
void SetText (const char *Text, bool Copy=true)
void SetSelectable (bool Selectable)
void SetFresh (bool Fresh)
const char * Text (void) const
virtual void Set (void)
virtual eOSState ProcessKey (eKeys Key)
Public Member Functions inherited from cListObject
 cListObject (void)
virtual ~cListObject ()
void Append (cListObject *Object)
void Insert (cListObject *Object)
void Unlink (void)
int Index (void) const
cListObject * Prev (void) const
cListObject * Next (void) const

Static Public Member Functions

static void SetSortMode (eScheduleSortMode SortMode)
static void IncSortMode (void)
static eScheduleSortMode SortMode (void)

Public Attributes

const cEvent * event
const cChannel * channel
const cTimer * timer
bool withDate
eTimerMatch timerMatch
bool timerActive

Static Private Attributes

static eScheduleSortMode sortMode = ssmAllThis

Additional Inherited Members

Protected Attributes inherited from cOsdItem
bool fresh

Detailed Description

Definition at line 1574 of file menu.c.

Member Enumeration Documentation

◆ eScheduleSortMode

Enumerator
ssmAllThis 
ssmThisThis 
ssmThisAll 
ssmAllAll 

Definition at line 1576 of file menu.c.

Constructor & Destructor Documentation

◆ cMenuScheduleItem()

cMenuScheduleItem::cMenuScheduleItem ( const cTimers * Timers,
const cEvent * Event,
const cChannel * Channel = NULL,
bool WithDate = false )

Definition at line 1597 of file menu.c.

References channel, timer, timerActive, timerMatch, tmNone, Update(), and withDate.

Referenced by Compare().

Member Function Documentation

◆ Compare()

int cMenuScheduleItem::Compare ( const cListObject & ListObject) const
overridevirtual

Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".

Reimplemented from cListObject.

Definition at line 1608 of file menu.c.

References cListObject::cListObject(), cMenuScheduleItem(), event, sortMode, ssmAllThis, cEvent::StartTime(), and cEvent::Title().

◆ IncSortMode()

void cMenuScheduleItem::IncSortMode ( void )
inlinestatic

Definition at line 1588 of file menu.c.

References sortMode, ssmAllAll, and ssmAllThis.

Referenced by cMenuSchedule::Number().

◆ SetMenuItem()

void cMenuScheduleItem::SetMenuItem ( cSkinDisplayMenu * DisplayMenu,
int Index,
bool Current,
bool Selectable )
overridevirtual

◆ SetSortMode()

void cMenuScheduleItem::SetSortMode ( eScheduleSortMode SortMode)
inlinestatic

Definition at line 1587 of file menu.c.

References SortMode(), and sortMode.

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

◆ SortMode()

eScheduleSortMode cMenuScheduleItem::SortMode ( void )
inlinestatic

Definition at line 1589 of file menu.c.

References sortMode.

Referenced by cMenuSchedule::Set(), and SetSortMode().

◆ Update()

bool cMenuScheduleItem::Update ( const cTimers * Timers,
bool Force = false )

Member Data Documentation

◆ channel

const cChannel* cMenuScheduleItem::channel

Definition at line 1581 of file menu.c.

Referenced by cMenuScheduleItem(), cMenuWhatsOn::ProcessKey(), SetMenuItem(), and Update().

◆ event

◆ sortMode

cMenuScheduleItem::eScheduleSortMode cMenuScheduleItem::sortMode = ssmAllThis
staticprivate

Definition at line 1578 of file menu.c.

Referenced by Compare(), IncSortMode(), SetSortMode(), and SortMode().

◆ timer

const cTimer* cMenuScheduleItem::timer

Definition at line 1582 of file menu.c.

Referenced by cMenuScheduleItem(), SetMenuItem(), and Update().

◆ timerActive

bool cMenuScheduleItem::timerActive

Definition at line 1585 of file menu.c.

Referenced by cMenuScheduleItem(), and Update().

◆ timerMatch

eTimerMatch cMenuScheduleItem::timerMatch

◆ withDate

bool cMenuScheduleItem::withDate

Definition at line 1583 of file menu.c.

Referenced by cMenuScheduleItem(), SetMenuItem(), and Update().


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