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
Collaboration diagram for cMenuChannelItem:
[legend]

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

Member Enumeration Documentation

Enumerator
csmNumber 
csmName 
csmProvider 

Definition at line 280 of file menu.c.

Constructor & Destructor Documentation

cMenuChannelItem::cMenuChannelItem ( cChannel Channel)

Definition at line 297 of file menu.c.

References channel, Channel(), cChannel::GroupSep(), Set(), and cOsdItem::SetSelectable().

Member Function Documentation

cChannel* cMenuChannelItem::Channel ( void  )
inline

Definition at line 291 of file menu.c.

References channel.

Referenced by cMenuChannelItem(), and cMenuChannels::GetChannel().

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

References channel, csmName, csmNumber, csmProvider, cChannel::Name(), cChannel::Number(), cChannel::Provider(), and sortMode.

static void cMenuChannelItem::IncSortMode ( void  )
inlinestatic

Definition at line 287 of file menu.c.

References csmNumber, and csmProvider.

Referenced by cMenuChannels::Number().

void cMenuChannelItem::Set ( void  )
virtual
void cMenuChannelItem::SetMenuItem ( cSkinDisplayMenu DisplayMenu,
int  Index,
bool  Current,
bool  Selectable 
)
virtual
static void cMenuChannelItem::SetSortMode ( eChannelSortMode  SortMode)
inlinestatic

Definition at line 286 of file menu.c.

References SortMode().

static eChannelSortMode cMenuChannelItem::SortMode ( void  )
inlinestatic

Definition at line 288 of file menu.c.

References sortMode.

Referenced by SetSortMode(), and cMenuChannels::Setup().

Member Data Documentation

cChannel* cMenuChannelItem::channel
private

Definition at line 283 of file menu.c.

Referenced by Channel(), cMenuChannelItem(), Compare(), Set(), and SetMenuItem().

cMenuChannelItem::eChannelSortMode cMenuChannelItem::sortMode = csmNumber
staticprivate

Definition at line 282 of file menu.c.

Referenced by Compare(), Set(), SetMenuItem(), and SortMode().


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