vdr  2.2.0
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
cMenuChannelItem Class Reference

Public Types

enum  eChannelSortMode { csmNumber, csmName, csmProvider }
 

Public Member Functions

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

cChannelchannel
 

Static Private Attributes

static eChannelSortMode sortMode = csmNumber
 

Additional Inherited Members

- Protected Attributes inherited from cOsdItem
bool fresh
 

Detailed Description

Definition at line 277 of file menu.c.

Member Enumeration Documentation

Enumerator
csmNumber 
csmName 
csmProvider 

Definition at line 279 of file menu.c.

Constructor & Destructor Documentation

cMenuChannelItem::cMenuChannelItem ( cChannel Channel)

Definition at line 296 of file menu.c.

References cMenuEditChannel::channel, and cChannel::GroupSep().

Member Function Documentation

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

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

static void cMenuChannelItem::IncSortMode ( void  )
inlinestatic

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

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

static void cMenuChannelItem::SetSortMode ( eChannelSortMode  SortMode)
inlinestatic

Definition at line 285 of file menu.c.

static eChannelSortMode cMenuChannelItem::SortMode ( void  )
inlinestatic

Definition at line 287 of file menu.c.

Referenced by cMenuChannels::Setup().

Member Data Documentation

cChannel* cMenuChannelItem::channel
private

Definition at line 282 of file menu.c.

Referenced by Compare().

cMenuChannelItem::eChannelSortMode cMenuChannelItem::sortMode = csmNumber
staticprivate

Definition at line 281 of file menu.c.

Referenced by Channel().


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