diff options
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 80c2817a..5f94ee23 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 2.29 2012/03/12 11:44:06 kls Exp $ + * $Id: recording.h 2.30 2012/03/13 12:41:05 kls Exp $ */ #ifndef __RECORDING_H @@ -129,6 +129,9 @@ public: ///< If the number of frames is unknown, -1 will be returned. int LengthInSeconds(void) const; ///< Returns the length (in seconds) of this recording, or -1 in case of error. + int FileSizeMB(void) const; + ///< Returns the total file size of this recording (in MB), or -1 if the file + ///< size is unknown. bool IsNew(void) const { return GetResume() <= 0; } bool IsEdited(void) const; bool IsPesRecording(void) const { return isPesRecording; } @@ -190,7 +193,10 @@ public: void AddByName(const char *FileName, bool TriggerUpdate = true); void DelByName(const char *FileName); void UpdateByName(const char *FileName); - int TotalFileSizeMB(void); ///< Only for deleted recordings! + int TotalFileSizeMB(void); + double MBperMinute(void); + ///< Returns the average data rate (in MB/min) of all recordings, or -1 if + ///< this value is unknown. }; extern cRecordings Recordings; |