vdr  2.2.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Attributes | List of all members
cMenuScheduleItem Class Reference
Collaboration diagram for cMenuScheduleItem:
[legend]

Public Types

enum  eScheduleSortMode { ssmAllThis, ssmThisThis, ssmThisAll, ssmAllAll }
 

Public Member Functions

 cMenuScheduleItem (const cEvent *Event, cChannel *Channel=NULL, bool WithDate=false)
 
virtual int Compare (const cListObject &ListObject) const
 
bool Update (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 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
 
bool withDate
 
eTimerMatch timerMatch
 

Static Private Attributes

static eScheduleSortMode sortMode = ssmAllThis
 

Additional Inherited Members

- Protected Attributes inherited from cOsdItem
bool fresh
 

Detailed Description

Definition at line 1351 of file menu.c.

Member Enumeration Documentation

◆ eScheduleSortMode

Enumerator
ssmAllThis 
ssmThisThis 
ssmThisAll 
ssmAllAll 

Definition at line 1353 of file menu.c.

Constructor & Destructor Documentation

◆ cMenuScheduleItem()

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

Definition at line 1372 of file menu.c.

References channel, 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 1381 of file menu.c.

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

◆ IncSortMode()

static void cMenuScheduleItem::IncSortMode ( void  )
inlinestatic

Definition at line 1363 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 1362 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 1364 of file menu.c.

References sortMode.

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

◆ Update()

bool cMenuScheduleItem::Update ( bool  Force = false)

Member Data Documentation

◆ channel

const cChannel* cMenuScheduleItem::channel

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

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

◆ timerMatch

eTimerMatch cMenuScheduleItem::timerMatch

◆ withDate

bool cMenuScheduleItem::withDate

Definition at line 1359 of file menu.c.

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


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