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

Public Types

enum  eChannelSortMode { csmNumber, csmName, csmProvider }
 

Public Member Functions

 cMenuChannelItem (const cChannel *Channel)
 
virtual int Compare (const cListObject &ListObject) const
 
virtual void Set (void)
 
const cChannelChannel (void)
 
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 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 (eChannelSortMode SortMode)
 
static void IncSortMode (void)
 
static eChannelSortMode SortMode (void)
 

Private Attributes

const cChannelchannel
 

Static Private Attributes

static eChannelSortMode sortMode = csmNumber
 

Additional Inherited Members

- Protected Attributes inherited from cOsdItem
bool fresh
 

Detailed Description

Definition at line 288 of file menu.c.

Member Enumeration Documentation

Enumerator
csmNumber 
csmName 
csmProvider 

Definition at line 290 of file menu.c.

Constructor & Destructor Documentation

cMenuChannelItem::cMenuChannelItem ( const cChannel Channel)

Member Function Documentation

const cChannel* cMenuChannelItem::Channel ( void  )
inline
int cMenuChannelItem::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 315 of file menu.c.

References cMenuEditChannel::channel, channel, cChannel::Name(), cChannel::Number(), and cChannel::Provider().

static void cMenuChannelItem::IncSortMode ( void  )
inlinestatic

Definition at line 297 of file menu.c.

Referenced by cMenuChannels::Number().

void cMenuChannelItem::Set ( void  )
virtual
void cMenuChannelItem::SetMenuItem ( cSkinDisplayMenu DisplayMenu,
int  Index,
bool  Current,
bool  Selectable 
)
virtual

Reimplemented from cOsdItem.

Definition at line 352 of file menu.c.

References cMenuEditChannel::channel, cSkinDisplayMenu::SetItem(), and cSkinDisplayMenu::SetItemChannel().

static void cMenuChannelItem::SetSortMode ( eChannelSortMode  SortMode)
inlinestatic

Definition at line 296 of file menu.c.

static eChannelSortMode cMenuChannelItem::SortMode ( void  )
inlinestatic

Definition at line 298 of file menu.c.

Referenced by cMenuChannels::Set().

Member Data Documentation

const cChannel* cMenuChannelItem::channel
private

Definition at line 293 of file menu.c.

Referenced by Compare().

cMenuChannelItem::eChannelSortMode cMenuChannelItem::sortMode = csmNumber
staticprivate

Definition at line 292 of file menu.c.

Referenced by Channel().


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