From 579719a7f24079bc36939c6b7757030b7299ba29 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 18 Dec 2005 10:41:26 +0100 Subject: When displaying the amount of free disk space, the space consumed by "deleted" recordings is now taken into account --- recording.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'recording.h') 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: -- cgit v1.2.3