|
vdr 2.6.1
|
#include <config.h>
Public Member Functions | |
| cNestedItemList (void) | |
| virtual | ~cNestedItemList () |
| void | Clear (void) |
| bool | Load (const char *FileName) |
| bool | Save (void) |
Public Member Functions inherited from cList< cNestedItem > | |
| cList (const char *NeedsLocking=NULL) | |
| const cNestedItem * | Get (int Index) const |
| cNestedItem * | Get (int Index) |
| const cNestedItem * | First (void) const |
| cNestedItem * | First (void) |
| const cNestedItem * | Last (void) const |
| cNestedItem * | Last (void) |
| const cNestedItem * | Prev (const cNestedItem *Object) const |
| cNestedItem * | Prev (const cNestedItem *Object) |
| const cNestedItem * | Next (const cNestedItem *Object) const |
| cNestedItem * | Next (const cNestedItem *Object) |
Public Member Functions inherited from cListBase | |
| virtual | ~cListBase () |
| bool | Lock (cStateKey &StateKey, bool Write=false, int TimeoutMs=0) const |
| void | SetSyncStateKey (cStateKey &StateKey) |
| 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) |
| virtual void | Move (int From, int To) |
| void | Move (cListObject *From, cListObject *To) |
| virtual void | Clear (void) |
| bool | Contains (const cListObject *Object) const |
| const cListObject * | Get (int Index) const |
| cListObject * | Get (int Index) |
| int | Count (void) const |
| void | Sort (void) |
Private Member Functions | |
| bool | Parse (FILE *f, cList< cNestedItem > *List, int &Line) |
| bool | Write (FILE *f, cList< cNestedItem > *List, int Indent=0) |
Private Attributes | |
| char * | fileName |
Additional Inherited Members | |
Protected Member Functions inherited from cListBase | |
| cListBase (const char *NeedsLocking=NULL) | |
Protected Attributes inherited from cListBase | |
| cListObject * | objects |
| cListObject * | lastObject |
| int | count |
| cStateLock | stateLock |
| const char * | needsLocking |
| bool | useGarbageCollector |
| cNestedItemList::cNestedItemList | ( | void | ) |
|
virtual |
|
virtual |
Reimplemented from cListBase.
Definition at line 227 of file config.c.
References cListBase::Clear(), and fileName.
| bool cNestedItemList::Load | ( | const char * | FileName | ) |
Definition at line 234 of file config.c.
References cListBase::Clear(), fileName, isyslog, LOG_ERROR_STR, and Parse().
Referenced by main().
|
private |
Definition at line 184 of file config.c.
References isempty(), Parse(), cReadLine::Read(), skipspace(), stripspace(), and cNestedItem::SubItems().
| bool cNestedItemList::Save | ( | void | ) |
Definition at line 258 of file config.c.
References cSafeFile::Close(), fileName, cSafeFile::Open(), and Write().
Referenced by cMenuFolder::Delete(), and cMenuFolder::SetFolder().
|
private |
|
private |
Definition at line 213 of file config.h.
Referenced by Clear(), cNestedItemList(), Load(), Save(), and ~cNestedItemList().