vdr 2.7.6
cPictureEntry Class Reference

#include <entry.h>

Public Member Functions

 cPictureEntry (const char *Name, const cPictureEntry *Parent, bool IsDirectory)
 
virtual ~cPictureEntry () override
 
virtual int Compare (const cListObject &ListObject) const override
 
const char * Name (void) const
 
const cPictureEntryParent (void) const
 
bool IsDirectory (void) const
 
cString Path (void) const
 
const cList< cPictureEntry > * Entries (void) const
 
const cPictureEntryFirstPicture (void) const
 
const cPictureEntryLastPicture (void) const
 
const cPictureEntryPrevPicture (const cPictureEntry *This=NULL) const
 
const cPictureEntryNextPicture (const cPictureEntry *This=NULL) const
 
- 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 Member Functions

void Load (void) const
 

Private Attributes

char * name
 
const cPictureEntryparent
 
bool isDirectory
 
cList< cPictureEntry > * entries
 

Detailed Description

Definition at line 14 of file entry.h.

Constructor & Destructor Documentation

◆ cPictureEntry()

cPictureEntry::cPictureEntry ( const char * Name,
const cPictureEntry * Parent,
bool IsDirectory )

◆ ~cPictureEntry()

cPictureEntry::~cPictureEntry ( )
overridevirtual

Definition at line 19 of file entry.c.

References entries, and name.

Member Function Documentation

◆ Compare()

int cPictureEntry::Compare ( const cListObject & ListObject) const
overridevirtual

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 cListObject::cListObject(), cPictureEntry(), IsDirectory(), and name.

◆ Entries()

const cList< cPictureEntry > * cPictureEntry::Entries ( void ) const

Definition at line 66 of file entry.c.

References entries, and Load().

Referenced by cPictureControl::NextDirectory().

◆ FirstPicture()

const cPictureEntry * cPictureEntry::FirstPicture ( void ) const

Definition at line 72 of file entry.c.

References cPictureEntry(), entries, and Load().

Referenced by NextPicture().

◆ IsDirectory()

bool cPictureEntry::IsDirectory ( void ) const
inline

Definition at line 27 of file entry.h.

References isDirectory.

Referenced by Compare(), cPictureEntry(), NextPicture(), PrevPicture(), and cPictureMenu::SelectItem().

◆ LastPicture()

const cPictureEntry * cPictureEntry::LastPicture ( void ) const

Definition at line 89 of file entry.c.

References cPictureEntry(), entries, and Load().

Referenced by PrevPicture().

◆ Load()

void cPictureEntry::Load ( void ) const
private

◆ Name()

const char * cPictureEntry::Name ( void ) const
inline

Definition at line 25 of file entry.h.

References name.

Referenced by cPictureEntry().

◆ NextPicture()

const cPictureEntry * cPictureEntry::NextPicture ( const cPictureEntry * This = NULL) const

Definition at line 125 of file entry.c.

References cPictureEntry(), entries, FirstPicture(), IsDirectory(), NextPicture(), and parent.

Referenced by NextPicture().

◆ Parent()

const cPictureEntry * cPictureEntry::Parent ( void ) const
inline

Definition at line 26 of file entry.h.

References cPictureEntry(), and parent.

Referenced by cPictureEntry(), and cPictureControl::NextDirectory().

◆ Path()

cString cPictureEntry::Path ( void ) const

Definition at line 38 of file entry.c.

References AddDirectory(), name, and parent.

Referenced by Load().

◆ PrevPicture()

const cPictureEntry * cPictureEntry::PrevPicture ( const cPictureEntry * This = NULL) const

Definition at line 106 of file entry.c.

References cPictureEntry(), entries, IsDirectory(), LastPicture(), parent, and PrevPicture().

Referenced by PrevPicture().

Member Data Documentation

◆ entries

cList<cPictureEntry>* cPictureEntry::entries
mutableprivate

◆ isDirectory

bool cPictureEntry::isDirectory
private

Definition at line 18 of file entry.h.

Referenced by cPictureEntry(), IsDirectory(), and Load().

◆ name

char* cPictureEntry::name
private

Definition at line 16 of file entry.h.

Referenced by Compare(), cPictureEntry(), Name(), Path(), and ~cPictureEntry().

◆ parent

const cPictureEntry* cPictureEntry::parent
private

Definition at line 17 of file entry.h.

Referenced by cPictureEntry(), NextPicture(), Parent(), Path(), and PrevPicture().


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