bool RemoveVideoFile(const char *FileName)
int VideoDiskSpace(int *FreeMB=NULL, int *UsedMB=NULL)
static cString String(void)
Returns a localized string of the form "Disk nn% - hh:mm free".
bool VideoFileSpaceAvailable(int SizeMB)
cUnbufferedFile is used for large files that are mainly written or read in a streaming manner...
cUnbufferedFile * OpenVideoFile(const char *FileName, int Flags)
const char * VideoDirectory
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...
bool IsOnVideoDirectoryFileSystem(const char *FileName)
cString PrefixVideoFileName(const char *FileName, char Prefix)
void SetVideoDirectory(const char *Directory)
int CloseVideoFile(cUnbufferedFile *File)
bool RenameVideoFile(const char *OldName, const char *NewName)
void RemoveEmptyVideoDirectories(const char *IgnoreFiles[]=NULL)
static int FreeMinutes(void)
Returns the number of minutes that can still be recorded on the video disk.
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.