cString NewVideoFileName(const char *FileName, const char *NewDirName)
bool RemoveVideoFile(const char *FileName)
static cString String(void)
Returns a localized string of the form "Disk nn% - hh:mm free".
void SetVideoDirectory(const char *Directory)
bool VideoFileSpaceAvailable(int SizeMB)
const char * VideoDirectory
cUnbufferedFile * OpenVideoFile(const char *FileName, int Flags)
void RemoveEmptyVideoDirectories(const char *IgnoreFiles[])
cUnbufferedFile is used for large files that are mainly written or read in a streaming manner...
static bool HasChanged(int &State)
Returns true if the usage of the video disk space has changed since the last call to this function wi...
int VideoDiskSpace(int *FreeMB, int *UsedMB)
cString PrefixVideoFileName(const char *FileName, char Prefix)
bool IsOnVideoDirectoryFileSystem(const char *FileName)
int CloseVideoFile(cUnbufferedFile *File)
static int FreeMinutes(void)
Returns the number of minutes that can still be recorded on the video disk.
bool RenameVideoFile(const char *OldName, const char *NewName)
static void ForceCheck(void)
To avoid unnecessary load, the video disk usage is only actually checked every DISKSPACECHEK seconds...
static time_t lastChecked
static int FreeMB(void)
Returns the amount of free space on the video disk in MB.
static int UsedPercent(void)
Returns the used space of the video disk in percent.