vdr 2.6.8
cNestedItem Class Reference

#include <config.h>

Public Member Functions

 cNestedItem (const char *Text, bool WithSubItems=false)
 
virtual ~cNestedItem ()
 
virtual int Compare (const cListObject &ListObject) const
 
const char * Text (void) const
 
cList< cNestedItem > * SubItems (void)
 
void AddSubItem (cNestedItem *Item)
 
void SetText (const char *Text)
 
void SetSubItems (bool On)
 
- 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
 

Private Attributes

char * text
 
cList< cNestedItem > * subItems
 

Detailed Description

Definition at line 196 of file config.h.

Constructor & Destructor Documentation

◆ cNestedItem()

cNestedItem::cNestedItem ( const char * Text,
bool WithSubItems = false )

Definition at line 131 of file config.c.

References subItems, Text(), and text.

◆ ~cNestedItem()

cNestedItem::~cNestedItem ( )
virtual

Definition at line 137 of file config.c.

References subItems, and text.

Member Function Documentation

◆ AddSubItem()

void cNestedItem::AddSubItem ( cNestedItem * Item)

Definition at line 148 of file config.c.

References cListBase::Add(), and subItems.

◆ Compare()

int cNestedItem::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 143 of file config.c.

References text.

◆ SetSubItems()

void cNestedItem::SetSubItems ( bool On)

Definition at line 162 of file config.c.

References subItems.

Referenced by AddRecordingFolders(), and cMenuFolder::Select().

◆ SetText()

void cNestedItem::SetText ( const char * Text)

Definition at line 156 of file config.c.

References Text(), and text.

Referenced by cMenuEditFolder::Confirm().

◆ SubItems()

cList< cNestedItem > * cNestedItem::SubItems ( void )
inline

◆ Text()

Member Data Documentation

◆ subItems

cList<cNestedItem>* cNestedItem::subItems
private

Definition at line 199 of file config.h.

Referenced by AddSubItem(), cNestedItem(), SetSubItems(), SubItems(), and ~cNestedItem().

◆ text

char* cNestedItem::text
private

Definition at line 198 of file config.h.

Referenced by cNestedItem(), Compare(), SetText(), Text(), and ~cNestedItem().


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