vdr  1.7.27
entry.h
Go to the documentation of this file.
00001 /*
00002  * entry.h: Data structure to handle still pictures
00003  *
00004  * See the README file for copyright information and how to reach the author.
00005  *
00006  * $Id: entry.h 2.0 2008/01/06 12:30:50 kls Exp $
00007  */
00008 
00009 #ifndef _ENTRY_H
00010 #define _ENTRY_H
00011 
00012 #include <vdr/tools.h>
00013 
00014 class cPictureEntry : public cListObject {
00015 private:
00016   char *name;
00017   const cPictureEntry *parent;
00018   bool isDirectory;
00019   mutable cList<cPictureEntry> *entries;
00020   void Load(void) const;
00021 public:
00022   cPictureEntry(const char *Name, const cPictureEntry *Parent, bool IsDirectory);
00023   virtual ~cPictureEntry();
00024   virtual int Compare(const cListObject &ListObject) const;
00025   const char *Name(void) const { return name; }
00026   const cPictureEntry *Parent(void) const { return parent; }
00027   bool IsDirectory(void) const { return isDirectory; }
00028   cString Path(void) const;
00029   const cList<cPictureEntry> *Entries(void) const;
00030   const cPictureEntry *FirstPicture(void) const;
00031   const cPictureEntry *LastPicture(void) const;
00032   const cPictureEntry *PrevPicture(const cPictureEntry *This = NULL) const;
00033   const cPictureEntry *NextPicture(const cPictureEntry *This = NULL) const;
00034   };
00035 
00036 #endif //_ENTRY_H