vdr  2.2.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cMenuCommands Class Reference

#include <menu.h>

Public Member Functions

 cMenuCommands (const char *Title, cList< cNestedItem > *Commands, const char *Parameters=NULL)
 
virtual ~cMenuCommands ()
 
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 >
cOsdItemGet (int Index) const
 
cOsdItemFirst (void) const
 
cOsdItemLast (void) const
 
cOsdItemPrev (const cOsdItem *object) const
 
cOsdItemNext (const cOsdItem *object) const
 
- Public Member Functions inherited from cListBase
virtual ~cListBase ()
 
void Add (cListObject *Object, cListObject *After=NULL)
 
void Ins (cListObject *Object, cListObject *Before=NULL)
 
void Del (cListObject *Object, bool DeleteObject=true)
 
virtual void Move (int From, int To)
 
void Move (cListObject *From, cListObject *To)
 
cListObjectGet (int Index) const
 
int Count (void) const
 
void Sort (void)
 

Private Member Functions

bool Parse (const char *s)
 
eOSState Execute (void)
 

Private Attributes

cList< cNestedItem > * commands
 
cString parameters
 
cString title
 
cString command
 
bool confirm
 
char * result
 

Additional Inherited Members

- 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 (void)
 
- Protected Attributes inherited from cListBase
cListObjectobjects
 
cListObjectlastObject
 
int count
 

Detailed Description

Definition at line 57 of file menu.h.

Constructor & Destructor Documentation

cMenuCommands::cMenuCommands ( const char *  Title,
cList< cNestedItem > *  Commands,
const char *  Parameters = NULL 
)
cMenuCommands::~cMenuCommands ( )
virtual

Definition at line 2085 of file menu.c.

References result.

Member Function Documentation

eOSState cMenuCommands::Execute ( void  )
private
bool cMenuCommands::Parse ( const char *  s)
private

Definition at line 2090 of file menu.c.

References command, confirm, skipspace(), stripspace(), strn0cpy(), and title.

Referenced by cMenuCommands(), and Execute().

eOSState cMenuCommands::ProcessKey ( eKeys  Key)
virtual

Reimplemented from cOsdMenu.

Definition at line 2160 of file menu.c.

References Execute(), kBlue, kGreen, kOk, kRed, kYellow, osContinue, osUnknown, and cOsdMenu::ProcessKey().

Referenced by cMenuRecordings::Commands(), and cMenuTimers::Commands().

Member Data Documentation

cString cMenuCommands::command
private

Definition at line 62 of file menu.h.

Referenced by Execute(), and Parse().

cList<cNestedItem>* cMenuCommands::commands
private

Definition at line 59 of file menu.h.

Referenced by cMenuCommands(), and Execute().

bool cMenuCommands::confirm
private

Definition at line 63 of file menu.h.

Referenced by Execute(), and Parse().

cString cMenuCommands::parameters
private

Definition at line 60 of file menu.h.

Referenced by cMenuCommands(), and Execute().

char* cMenuCommands::result
private

Definition at line 64 of file menu.h.

Referenced by cMenuCommands(), Execute(), and ~cMenuCommands().

cString cMenuCommands::title
private

Definition at line 61 of file menu.h.

Referenced by cMenuCommands(), Execute(), and Parse().


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