diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-01-13 11:44:38 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-01-13 11:44:38 +0100 |
commit | d607265f695510e357c67d78e43d0c8138f8c588 (patch) | |
tree | 3ebc47cbd0c765cb85441dcefb73a13ade798932 /PLUGINS/src/pictures/entry.h | |
parent | 0ec2063b5ad4a6b9574efa6365ac4bf026211e9d (diff) | |
download | vdr-d607265f695510e357c67d78e43d0c8138f8c588.tar.gz vdr-d607265f695510e357c67d78e43d0c8138f8c588.tar.bz2 |
Added the 'pictures' plugin
Diffstat (limited to 'PLUGINS/src/pictures/entry.h')
-rw-r--r-- | PLUGINS/src/pictures/entry.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PLUGINS/src/pictures/entry.h b/PLUGINS/src/pictures/entry.h new file mode 100644 index 00000000..adb84f38 --- /dev/null +++ b/PLUGINS/src/pictures/entry.h @@ -0,0 +1,36 @@ +/* + * entry.h: Data structure to handle still pictures + * + * See the README file for copyright information and how to reach the author. + * + * $Id: entry.h 1.1 2008/01/13 11:29:27 kls Exp $ + */ + +#ifndef _ENTRY_H +#define _ENTRY_H + +#include <vdr/tools.h> + +class cPictureEntry : public cListObject { +private: + char *name; + const cPictureEntry *parent; + bool isDirectory; + mutable cList<cPictureEntry> *entries; + void Load(void) const; +public: + cPictureEntry(const char *Name, const cPictureEntry *Parent, bool IsDirectory); + virtual ~cPictureEntry(); + virtual int Compare(const cListObject &ListObject) const; + const char *Name(void) const { return name; } + const cPictureEntry *Parent(void) const { return parent; } + bool IsDirectory(void) const { return isDirectory; } + 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; + }; + +#endif //_ENTRY_H |