vdr  2.4.1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
cMenuChannels Class Reference

Public Member Functions

 cMenuChannels (void)
 
 ~cMenuChannels ()
 
virtual eOSState ProcessKey (eKeys Key)
 
- Public Member Functions inherited from cOsdMenu
 cOsdMenu (const char *Title, int c0=0, int c1=0, int c2=0, int c3=0, int c4=0)
 
virtual ~cOsdMenu ()
 
virtual bool NeedsFastResponse (void)
 
void SetMenuCategory (eMenuCategory MenuCategory)
 
void SetMenuSortMode (eMenuSortMode MenuSortMode)
 
int Current (void) const
 
void Add (cOsdItem *Item, bool Current=false, cOsdItem *After=NULL)
 
void Ins (cOsdItem *Item, bool Current=false, cOsdItem *Before=NULL)
 
virtual void Display (void)
 
- Public Member Functions inherited from cOsdObject
 cOsdObject (bool FastResponse=false)
 
virtual ~cOsdObject ()
 
bool IsMenu (void) const
 
virtual void Show (void)
 
- Public Member Functions inherited from cList< cOsdItem >
const cOsdItemPrev (const cOsdItem *Object) const
 
const cOsdItemNext (const cOsdItem *Object) const
 
- Public Member Functions inherited from cListBase
virtual ~cListBase ()
 
bool Lock (cStateKey &StateKey, bool Write=false, int TimeoutMs=0) const
 
void SetUseGarbageCollector (void)
 
void SetExplicitModify (void)
 
void SetModified (void)
 
void Add (cListObject *Object, cListObject *After=NULL)
 
void Ins (cListObject *Object, cListObject *Before=NULL)
 
void Del (cListObject *Object, bool DeleteObject=true)
 
void Move (cListObject *From, cListObject *To)
 
bool Contains (const cListObject *Object) const
 
const cListObjectGet (int Index) const
 
cListObjectGet (int Index)
 
int Count (void) const
 
void Sort (void)
 

Protected Member Functions

eOSState Number (eKeys Key)
 
eOSState Switch (void)
 
eOSState Edit (void)
 
eOSState New (void)
 
eOSState Delete (void)
 
virtual void Move (int From, int To)
 
- Protected Member Functions inherited from cOsdMenu
void SetDisplayMenu (void)
 
cSkinDisplayMenuDisplayMenu (void)
 
const char * hk (const char *s)
 
void SetCols (int c0, int c1=0, int c2=0, int c3=0, int c4=0)
 
void SetHasHotkeys (bool HasHotkeys=true)
 
virtual void Clear (void)
 
const char * Title (void)
 
bool SelectableItem (int idx)
 
void SetCurrent (cOsdItem *Item)
 
void RefreshCurrent (void)
 
void DisplayCurrent (bool Current)
 
void DisplayItem (cOsdItem *Item)
 
void CursorUp (void)
 
void CursorDown (void)
 
void PageUp (void)
 
void PageDown (void)
 
void Mark (void)
 
eOSState HotKey (eKeys Key)
 
eOSState AddSubMenu (cOsdMenu *SubMenu)
 
eOSState CloseSubMenu (bool ReDisplay=true)
 
bool HasSubMenu (void)
 
cOsdMenuSubMenu (void)
 
void SetStatus (const char *s)
 
void SetTitle (const char *Title)
 
void SetHelp (const char *Red, const char *Green=NULL, const char *Yellow=NULL, const char *Blue=NULL)
 
virtual void Del (int Index)
 
- Protected Member Functions inherited from cOsdObject
void SetNeedsFastResponse (bool NeedsFastResponse)
 
- Protected Member Functions inherited from cListBase
 cListBase (const char *NeedsLocking=NULL)
 

Private Member Functions

void Set (bool Force=false)
 
cChannelGetChannel (int Index)
 
void Propagate (cChannels *Channels)
 

Private Attributes

cStateKey channelsStateKey
 
int number
 
cTimeMs numberTimer
 

Additional Inherited Members

- Protected Attributes inherited from cListBase
cListObjectobjects
 
cListObjectlastObject
 
int count
 
cStateLock stateLock
 
const char * needsLocking
 
bool useGarbageCollector
 

Detailed Description

Definition at line 353 of file menu.c.

Constructor & Destructor Documentation

◆ cMenuChannels()

cMenuChannels::cMenuChannels ( void  )

Definition at line 374 of file menu.c.

References mcChannel, number, Set(), and cOsdMenu::SetMenuCategory().

◆ ~cMenuChannels()

cMenuChannels::~cMenuChannels ( )

Definition at line 382 of file menu.c.

Member Function Documentation

◆ Delete()

eOSState cMenuChannels::Delete ( void  )
protected

◆ Edit()

eOSState cMenuChannels::Edit ( void  )
protected

◆ GetChannel()

cChannel * cMenuChannels::GetChannel ( int  Index)
private

Definition at line 416 of file menu.c.

References cMenuChannelItem::Channel(), and cListBase::Get().

Referenced by Delete(), Edit(), Move(), New(), Set(), and Switch().

◆ Move()

void cMenuChannels::Move ( int  From,
int  To 
)
protectedvirtual

◆ New()

eOSState cMenuChannels::New ( void  )
protected

◆ Number()

eOSState cMenuChannels::Number ( eKeys  Key)
protected

◆ ProcessKey()

eOSState cMenuChannels::ProcessKey ( eKeys  Key)
virtual

◆ Propagate()

void cMenuChannels::Propagate ( cChannels Channels)
private

Definition at line 422 of file menu.c.

References cOsdMenu::Display(), cListObject::Next(), cChannels::ReNumber(), and cChannels::SetModifiedByUser().

Referenced by Delete(), and Move().

◆ Set()

void cMenuChannels::Set ( bool  Force = false)
private

◆ Switch()

eOSState cMenuChannels::Switch ( void  )
protected

Definition at line 456 of file menu.c.

References cOsdMenu::Current(), GetChannel(), cOsdMenu::HasSubMenu(), LOCK_CHANNELS_READ, osContinue, and osEnd.

Referenced by ProcessKey().

Member Data Documentation

◆ channelsStateKey

cStateKey cMenuChannels::channelsStateKey
private

Definition at line 355 of file menu.c.

Referenced by Delete(), Edit(), Move(), New(), and Set().

◆ number

int cMenuChannels::number
private

Definition at line 356 of file menu.c.

Referenced by cMenuChannels(), and Number().

◆ numberTimer

cTimeMs cMenuChannels::numberTimer
private

Definition at line 357 of file menu.c.

Referenced by Number().


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