diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-12-18 10:41:26 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-12-18 10:41:26 +0100 |
commit | 579719a7f24079bc36939c6b7757030b7299ba29 (patch) | |
tree | 4c9ba173f8e58d16e96c993f3b561fb14a898c03 /recording.h | |
parent | db35165e25974df8719d253cde398831877c526d (diff) | |
download | vdr-579719a7f24079bc36939c6b7757030b7299ba29.tar.gz vdr-579719a7f24079bc36939c6b7757030b7299ba29.tar.bz2 |
When displaying the amount of free disk space, the space consumed by "deleted" recordings is now taken into account
Diffstat (limited to 'recording.h')
-rw-r--r-- | recording.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/recording.h b/recording.h index 28a1cd25..80ee8112 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.46 2005/10/31 12:27:12 kls Exp $ + * $Id: recording.h 1.47 2005/12/17 13:30:50 kls Exp $ */ #ifndef __RECORDING_H @@ -55,12 +55,14 @@ public: }; class cRecording : public cListObject { + friend class cRecordings; private: mutable int resume; mutable char *titleBuffer; mutable char *sortBuffer; mutable char *fileName; mutable char *name; + mutable int fileSizeMB; cRecordingInfo *info; static char *StripEpisodeName(char *s); char *SortName(void) const; @@ -126,9 +128,11 @@ public: cRecording *GetByName(const char *FileName); void AddByName(const char *FileName); void DelByName(const char *FileName); + int TotalFileSizeMB(void); ///< Only for deleted recordings! }; extern cRecordings Recordings; +extern cRecordings DeletedRecordings; class cMark : public cListObject { public: |