vdr  2.0.6
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 1294 of file menu.c.

Member Enumeration Documentation

Enumerator
ssmAllThis 
ssmThisThis 
ssmThisAll 
ssmAllAll 

Definition at line 1296 of file menu.c.

Constructor & Destructor Documentation

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

Definition at line 1315 of file menu.c.

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

Member Function Documentation

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

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

static void cMenuScheduleItem::IncSortMode ( void  )
inlinestatic

Definition at line 1306 of file menu.c.

References ssmAllAll, and ssmAllThis.

Referenced by cMenuSchedule::Number().

void cMenuScheduleItem::SetMenuItem ( cSkinDisplayMenu DisplayMenu,
int  Index,
bool  Current,
bool  Selectable 
)
virtual
static void cMenuScheduleItem::SetSortMode ( eScheduleSortMode  SortMode)
inlinestatic

Definition at line 1305 of file menu.c.

References SortMode().

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

static eScheduleSortMode cMenuScheduleItem::SortMode ( void  )
inlinestatic

Definition at line 1307 of file menu.c.

References sortMode.

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

bool cMenuScheduleItem::Update ( bool  Force = false)

Member Data Documentation

const cChannel* cMenuScheduleItem::channel

Definition at line 1301 of file menu.c.

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

const cEvent* cMenuScheduleItem::event
cMenuScheduleItem::eScheduleSortMode cMenuScheduleItem::sortMode = ssmAllThis
staticprivate

Definition at line 1298 of file menu.c.

Referenced by Compare(), and SortMode().

eTimerMatch cMenuScheduleItem::timerMatch
bool cMenuScheduleItem::withDate

Definition at line 1302 of file menu.c.

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


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