diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-13 13:22:06 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-13 13:22:06 +0100 |
commit | 71f02e4f80b2ad6cd265e68c4b2253ae5e1b3663 (patch) | |
tree | a27cd27a5264ee5a849607b956ad54c974e3e61c /recording.h | |
parent | 845d6f36c16f2409eff161f8005d9dd2a0a4bf50 (diff) | |
download | vdr-71f02e4f80b2ad6cd265e68c4b2253ae5e1b3663.tar.gz vdr-71f02e4f80b2ad6cd265e68c4b2253ae5e1b3663.tar.bz2 |
When estimating the remaining disk space (in hours), the average data rate of all existing recordings is now taken into account
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; |