When estimating the remaining disk space (in hours), the average data rate of all existing recordings is now taken into account

This commit is contained in:
Klaus Schmidinger
2012-03-13 13:22:06 +01:00
parent 845d6f36c1
commit 71f02e4f80
4 changed files with 54 additions and 12 deletions

View File

@@ -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;