vdr 2.6.3
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 (const cChannel *Channel)
 
virtual int Compare (const cListObject &ListObject) const
 
virtual void Set (void)
 
const cChannel * Channel (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 void Set (void)
 
virtual void SetMenuItem (cSkinDisplayMenu *DisplayMenu, int Index, bool Current, bool Selectable)
 
virtual eOSState ProcessKey (eKeys Key)
 
- Public Member Functions inherited from cListObject
 cListObject (void)
 
virtual ~cListObject ()
 
virtual int Compare (const cListObject &ListObject) const
 
void Append (cListObject *Object)
 
void Insert (cListObject *Object)
 
void Unlink (void)
 
int Index (void) const
 
cListObject * Prev (void) const
 
cListObject * Next (void) const
 

Static Public Member Functions

static void SetSortMode (eChannelSortMode SortMode)
 
static void IncSortMode (void)
 
static eChannelSortMode SortMode (void)
 

Private Attributes

const cChannel * channel
 

Static Private Attributes

static eChannelSortMode sortMode = csmNumber
 

Additional Inherited Members

- Protected Attributes inherited from cOsdItem
bool fresh
 

Detailed Description

Definition at line 287 of file menu.c.

Member Enumeration Documentation

◆ eChannelSortMode

Enumerator
csmNumber 
csmName 
csmProvider 

Definition at line 289 of file menu.c.

Constructor & Destructor Documentation

◆ cMenuChannelItem()

cMenuChannelItem::cMenuChannelItem ( const cChannel *  Channel)

Definition at line 306 of file menu.c.

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

Member Function Documentation

◆ Channel()

const cChannel * cMenuChannelItem::Channel ( void  )
inline

Definition at line 300 of file menu.c.

References channel.

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

◆ Compare()

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

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

◆ IncSortMode()

static void cMenuChannelItem::IncSortMode ( void  )
inlinestatic

Definition at line 296 of file menu.c.

References csmNumber, csmProvider, and sortMode.

Referenced by cMenuChannels::Number().

◆ Set()

void cMenuChannelItem::Set ( void  )
virtual

◆ SetMenuItem()

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

◆ SetSortMode()

static void cMenuChannelItem::SetSortMode ( eChannelSortMode  SortMode)
inlinestatic

Definition at line 295 of file menu.c.

References sortMode, and SortMode().

◆ SortMode()

static eChannelSortMode cMenuChannelItem::SortMode ( void  )
inlinestatic

Definition at line 297 of file menu.c.

References sortMode.

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

Member Data Documentation

◆ channel

const cChannel* cMenuChannelItem::channel
private

Definition at line 292 of file menu.c.

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

◆ sortMode

cMenuChannelItem::eChannelSortMode cMenuChannelItem::sortMode = csmNumber
staticprivate

Definition at line 291 of file menu.c.

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


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