vdr 2.7.7
cMenuChannelItem Class Reference

Public Types

enum  eChannelSortMode { csmNumber , csmName , csmProvider }

Public Member Functions

 cMenuChannelItem (const cChannel *Channel)
virtual int Compare (const cListObject &ListObject) const override
virtual void Set (void) override
const cChannel * Channel (void)
virtual void SetMenuItem (cSkinDisplayMenu *DisplayMenu, int Index, bool Current, bool Selectable) override
Public Member Functions inherited from cOsdItem
 cOsdItem (eOSState State=osUnknown)
 cOsdItem (const char *Text, eOSState State=osUnknown, bool Selectable=true)
virtual ~cOsdItem () override
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
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, Set(), and cOsdItem::SetSelectable().

Referenced by Compare().

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
overridevirtual

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, cListObject::cListObject(), cMenuChannelItem(), csmName, csmNumber, csmProvider, cChannel::Name(), cChannel::Number(), cChannel::Provider(), and sortMode.

◆ IncSortMode()

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 )
overridevirtual

Reimplemented from cOsdItem.

Definition at line 327 of file menu.c.

References CA_ENCRYPTED_MIN, channel, csmProvider, cOsdItem::SetText(), sortMode, and cString::sprintf().

Referenced by cMenuChannelItem().

◆ SetMenuItem()

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

◆ SetSortMode()

void cMenuChannelItem::SetSortMode ( eChannelSortMode SortMode)
inlinestatic

Definition at line 295 of file menu.c.

References SortMode(), and sortMode.

◆ SortMode()

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: