vdr
2.2.0
|
#include <entry.h>
Public Member Functions | |
cPictureEntry (const char *Name, const cPictureEntry *Parent, bool IsDirectory) | |
virtual | ~cPictureEntry () |
virtual int | Compare (const cListObject &ListObject) const |
const char * | Name (void) const |
const cPictureEntry * | Parent (void) const |
bool | IsDirectory (void) const |
cString | Path (void) const |
const cList< cPictureEntry > * | Entries (void) const |
const cPictureEntry * | FirstPicture (void) const |
const cPictureEntry * | LastPicture (void) const |
const cPictureEntry * | PrevPicture (const cPictureEntry *This=NULL) const |
const cPictureEntry * | NextPicture (const cPictureEntry *This=NULL) const |
![]() | |
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 |
Private Member Functions | |
void | Load (void) const |
Private Attributes | |
char * | name |
const cPictureEntry * | parent |
bool | isDirectory |
cList< cPictureEntry > * | entries |
cPictureEntry::cPictureEntry | ( | const char * | Name, |
const cPictureEntry * | Parent, | ||
bool | IsDirectory | ||
) |
Definition at line 11 of file entry.c.
References entries, isDirectory, IsDirectory(), name, parent, and Parent().
Referenced by Load().
|
virtual |
|
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 25 of file entry.c.
References IsDirectory(), and name.
const cList< cPictureEntry > * cPictureEntry::Entries | ( | void | ) | const |
Definition at line 66 of file entry.c.
References entries, and Load().
Referenced by IsDirectory(), cPictureControl::NextDirectory(), cPictureMenu::SelectItem(), and cPictureMenu::Set().
const cPictureEntry * cPictureEntry::FirstPicture | ( | void | ) | const |
Definition at line 72 of file entry.c.
References entries, cList< T >::First(), FirstPicture(), Load(), and cList< T >::Next().
Referenced by FirstPicture(), IsDirectory(), and NextPicture().
|
inline |
Definition at line 27 of file entry.h.
References Entries(), FirstPicture(), isDirectory, LastPicture(), NextPicture(), Path(), and PrevPicture().
Referenced by Compare(), cPictureControl::cPictureControl(), cPictureEntry(), NextPicture(), PrevPicture(), and cPictureMenu::SelectItem().
const cPictureEntry * cPictureEntry::LastPicture | ( | void | ) | const |
Definition at line 89 of file entry.c.
References entries, cList< T >::Last(), LastPicture(), Load(), and cList< T >::Prev().
Referenced by IsDirectory(), LastPicture(), and PrevPicture().
|
private |
Definition at line 43 of file entry.c.
References cListBase::Add(), AddDirectory(), cPictureEntry(), entries, isDirectory, LOG_ERROR_STR, cReadDir::Next(), cReadDir::Ok(), Path(), and cListBase::Sort().
Referenced by Entries(), FirstPicture(), and LastPicture().
|
inline |
Definition at line 25 of file entry.h.
References name.
Referenced by cPictureMenu::cPictureMenu(), and cPictureControl::DisplayCaption().
const cPictureEntry * cPictureEntry::NextPicture | ( | const cPictureEntry * | This = NULL | ) | const |
Definition at line 125 of file entry.c.
References entries, FirstPicture(), IsDirectory(), cList< T >::Next(), NextPicture(), and parent.
Referenced by IsDirectory(), cPictureControl::NextDirectory(), NextPicture(), and cPictureControl::NextPicture().
|
inline |
Definition at line 26 of file entry.h.
References parent.
Referenced by cPictureEntry(), cPictureMenu::cPictureMenu(), cPictureControl::DisplayCaption(), cPictureControl::NextDirectory(), and cPictureMenu::~cPictureMenu().
cString cPictureEntry::Path | ( | void | ) | const |
Definition at line 38 of file entry.c.
References AddDirectory(), name, parent, and Path().
Referenced by cPictureControl::DisplayCaption(), IsDirectory(), Load(), cPictureControl::NextDirectory(), cPictureControl::NextPicture(), and Path().
const cPictureEntry * cPictureEntry::PrevPicture | ( | const cPictureEntry * | This = NULL | ) | const |
Definition at line 106 of file entry.c.
References entries, IsDirectory(), LastPicture(), parent, cList< T >::Prev(), and PrevPicture().
Referenced by IsDirectory(), cPictureControl::NextDirectory(), cPictureControl::NextPicture(), and PrevPicture().
|
mutableprivate |
Definition at line 19 of file entry.h.
Referenced by cPictureEntry(), Entries(), FirstPicture(), LastPicture(), Load(), NextPicture(), PrevPicture(), and ~cPictureEntry().
|
private |
Definition at line 18 of file entry.h.
Referenced by cPictureEntry(), IsDirectory(), and Load().
|
private |
Definition at line 16 of file entry.h.
Referenced by Compare(), cPictureEntry(), Name(), Path(), and ~cPictureEntry().
|
private |
Definition at line 17 of file entry.h.
Referenced by cPictureEntry(), NextPicture(), Parent(), Path(), and PrevPicture().