diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-06-13 20:26:51 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-06-13 20:26:51 +0200 |
commit | 5ed57fa1c5c2e33c218e60d906dc8e8163f50c16 (patch) | |
tree | ffbc38cfa37e76b14523d1001fe15dac6fe08923 /recording.h | |
parent | 1369239b53ee23fa1f790c67649facb4f8e547ff (diff) | |
download | vdr-5ed57fa1c5c2e33c218e60d906dc8e8163f50c16.tar.gz vdr-5ed57fa1c5c2e33c218e60d906dc8e8163f50c16.tar.bz2 |
The list of recordings is now kept statically in memory
Diffstat (limited to 'recording.h')
-rw-r--r-- | recording.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/recording.h b/recording.h index 01a25ab4..04a1885b 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.29 2004/05/07 14:24:22 kls Exp $ + * $Id: recording.h 1.30 2004/06/13 15:37:42 kls Exp $ */ #ifndef __RECORDING_H @@ -69,11 +69,22 @@ public: }; class cRecordings : public cList<cRecording> { +private: + bool deleted; + time_t lastUpdate; + bool ScanVideoDir(const char *DirName); public: - bool Load(bool Deleted = false); + cRecordings(bool Deleted = false); + bool Load(void); + void TriggerUpdate(void) { lastUpdate = 0; } + bool NeedsUpdate(void); cRecording *GetByName(const char *FileName); + void AddByName(const char *FileName); + void DelByName(const char *FileName); }; +extern cRecordings Recordings; + class cMark : public cListObject { private: static char *buffer; |