vdr 2.6.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Attributes | List of all members
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
 
bool Update (const cTimers *Timers, bool Force=false)
 
virtual void SetMenuItem (cSkinDisplayMenu *DisplayMenu, int Index, bool Current, bool Selectable)
 
- Public Member Functions inherited from cOsdItem
 cOsdItem (eOSState State=osUnknown)
 
 cOsdItem (const char *Text, eOSState State=osUnknown, bool Selectable=true)
 
virtual ~cOsdItem ()
 
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 void SetMenuItem (cSkinDisplayMenu *DisplayMenu, int Index, bool Current, bool Selectable)
 
virtual eOSState ProcessKey (eKeys Key)
 
 cOsdItem (eOSState State=osUnknown)
 
 cOsdItem (const char *Text, eOSState State=osUnknown, bool Selectable=true)
 
virtual ~cOsdItem ()
 
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 void SetMenuItem (cSkinDisplayMenu *DisplayMenu, int Index, bool Current, bool Selectable)
 
virtual eOSState ProcessKey (eKeys Key)
 
- Public Member Functions inherited from cListObject
 cListObject (void)
 
virtual ~cListObject ()
 
virtual int Compare (const cListObject &ListObject) const
 
void Append (cListObject *Object)
 
void Insert (cListObject *Object)
 
void Unlink (void)
 
int Index (void) const
 
cListObject * Prev (void) const
 
cListObject * Next (void) const
 
 cListObject (void)
 
virtual ~cListObject ()
 
virtual int Compare (const cListObject &ListObject) const
 
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
 
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 1555 of file menu.c.

Member Enumeration Documentation

◆ eScheduleSortMode

Enumerator
ssmAllThis 
ssmThisThis 
ssmThisAll 
ssmAllAll 

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

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

Member Function Documentation

◆ Compare()

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

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 1587 of file menu.c.

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

◆ IncSortMode()

static void cMenuScheduleItem::IncSortMode ( void  )
inlinestatic

Definition at line 1568 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 
)
virtual

◆ SetSortMode()

static void cMenuScheduleItem::SetSortMode ( eScheduleSortMode  SortMode)
inlinestatic

Definition at line 1567 of file menu.c.

References sortMode, and SortMode().

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

◆ SortMode()

static eScheduleSortMode cMenuScheduleItem::SortMode ( void  )
inlinestatic

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

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

◆ event

const cEvent* cMenuScheduleItem::event

◆ sortMode

cMenuScheduleItem::eScheduleSortMode cMenuScheduleItem::sortMode = ssmAllThis
staticprivate

Definition at line 1559 of file menu.c.

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

◆ timerActive

bool cMenuScheduleItem::timerActive

Definition at line 1565 of file menu.c.

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

◆ timerMatch

eTimerMatch cMenuScheduleItem::timerMatch

◆ withDate

bool cMenuScheduleItem::withDate

Definition at line 1563 of file menu.c.

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


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