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

#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 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 ( 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().

cPictureEntry::~cPictureEntry ( )
virtual

Definition at line 19 of file entry.c.

References entries, and name.

Member Function Documentation

int cPictureEntry::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 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().

bool cPictureEntry::IsDirectory ( void  ) const
inline
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().

void cPictureEntry::Load ( void  ) const
private
const char* cPictureEntry::Name ( void  ) const
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
const cPictureEntry* cPictureEntry::Parent ( void  ) const
inline
cString cPictureEntry::Path ( void  ) const
const cPictureEntry * cPictureEntry::PrevPicture ( const cPictureEntry This = NULL) const

Member Data Documentation

cList<cPictureEntry>* cPictureEntry::entries
mutableprivate
bool cPictureEntry::isDirectory
private

Definition at line 18 of file entry.h.

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

char* cPictureEntry::name
private

Definition at line 16 of file entry.h.

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

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: