diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-01-20 14:05:28 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-01-20 14:05:28 +0100 |
commit | fd839aae7b0a443db6f0eab59fcc93f03aafd0ba (patch) | |
tree | c4930ee8c1ae7e29937ed396f6778153bb47474c /recording.h | |
parent | e1ab9c1dacad9f2b3ba3a083b2b8b388289c4b72 (diff) | |
download | vdr-fd839aae7b0a443db6f0eab59fcc93f03aafd0ba.tar.gz vdr-fd839aae7b0a443db6f0eab59fcc93f03aafd0ba.tar.bz2 |
The 'Recordings' menu now displays a hierarchical structure
Diffstat (limited to 'recording.h')
-rw-r--r-- | recording.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/recording.h b/recording.h index aead97e3..c098271a 100644 --- a/recording.h +++ b/recording.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.h 1.18 2001/10/07 10:38:56 kls Exp $ + * $Id: recording.h 1.19 2002/01/20 11:35:32 kls Exp $ */ #ifndef __RECORDING_H @@ -31,6 +31,7 @@ public: class cRecording : public cListObject { friend class cRecordings; private: + int resume; char *titleBuffer; char *sortBuffer; char *fileName; @@ -38,6 +39,7 @@ private: char *summary; char *StripEpisodeName(char *s); char *SortName(void); + int GetResume(void); public: time_t start; int priority; @@ -46,10 +48,13 @@ public: cRecording(const char *FileName); ~cRecording(); virtual bool operator< (const cListObject &ListObject); + const char *Name(void) { return name; } const char *FileName(void); - const char *Title(char Delimiter = ' ', bool NewIndicator = false); + const char *Title(char Delimiter = ' ', bool NewIndicator = false, int Level = -1); const char *Summary(void) { return summary; } const char *PrefixFileName(char Prefix); + int HierarchyLevels(void); + bool IsNew(void) { return GetResume() <= 0; } bool WriteSummary(void); bool Delete(void); // Changes the file name so that it will no longer be visible in the "Recordings" menu @@ -62,6 +67,7 @@ public: class cRecordings : public cList<cRecording> { public: bool Load(bool Deleted = false); + cRecording *GetByName(const char *FileName); }; class cMark : public cListObject { |