vdr 2.7.5
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
cListObjectPrev (void) const
cListObjectNext (void) const

Static Public Member Functions

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

Public Attributes

const cEventevent
const cChannelchannel
const cTimertimer
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 1564 of file menu.c.

Member Enumeration Documentation

◆ eScheduleSortMode

Enumerator
ssmAllThis 
ssmThisThis 
ssmThisAll 
ssmAllAll 

Definition at line 1566 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 1587 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 1598 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 1578 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 1577 of file menu.c.

References SortMode(), and sortMode.

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

◆ SortMode()

eScheduleSortMode cMenuScheduleItem::SortMode ( void )
inlinestatic

Definition at line 1579 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 1571 of file menu.c.

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

◆ event

◆ sortMode

cMenuScheduleItem::eScheduleSortMode cMenuScheduleItem::sortMode = ssmAllThis
staticprivate

Definition at line 1568 of file menu.c.

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

◆ timer

const cTimer* cMenuScheduleItem::timer

Definition at line 1572 of file menu.c.

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

◆ timerActive

bool cMenuScheduleItem::timerActive

Definition at line 1575 of file menu.c.

Referenced by cMenuScheduleItem(), and Update().

◆ timerMatch

eTimerMatch cMenuScheduleItem::timerMatch

◆ withDate

bool cMenuScheduleItem::withDate

Definition at line 1573 of file menu.c.

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


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