24 virtual int FreeMB(
int *UsedMB = NULL);
28 virtual bool Register(
const char *FileName);
39 virtual bool Rename(
const char *OldName,
const char *NewName);
46 virtual bool Move(
const char *FromName,
const char *ToName);
57 virtual void Cleanup(
const char *IgnoreFiles[] = NULL);
72 static const char *
Name(
void);
77 static bool MoveVideoFile(
const char *FromName,
const char *ToName);
94 static bool HasChanged(
int &State);
114 static int FreeMB(
void) {
return freeMB; }
124 #endif //__VIDEODIR_H static bool RenameVideoFile(const char *OldName, const char *NewName)
virtual ~cVideoDirectory()
static cVideoDirectory * current
virtual bool Move(const char *FromName, const char *ToName)
Moves the directory FromName to the location ToName.
virtual bool Contains(const char *Name)
Checks whether the directory Name is on the same file system as the video directory.
static bool VideoFileSpaceAvailable(int SizeMB)
cUnbufferedFile is used for large files that are mainly written or read in a streaming manner...
virtual bool Remove(const char *Name)
Removes the directory with the given Name and everything it contains.
static cUnbufferedFile * OpenVideoFile(const char *FileName, int Flags)
static cString PrefixVideoFileName(const char *FileName, char Prefix)
virtual bool Register(const char *FileName)
By default VDR assumes that the video directory consists of one large volume, on which it can store i...
static const char * Name(void)
static void Destroy(void)
static void RemoveEmptyVideoDirectories(const char *IgnoreFiles[]=NULL)
virtual bool Rename(const char *OldName, const char *NewName)
Renames the directory OldName to NewName.
static void SetName(const char *Name)
virtual int FreeMB(int *UsedMB=NULL)
Returns the total amount (in MB) of free disk space for recording.
static cVideoDirectory * Current(void)
static int VideoDiskSpace(int *FreeMB=NULL, int *UsedMB=NULL)
static bool RemoveVideoFile(const char *FileName)
static bool MoveVideoFile(const char *FromName, const char *ToName)
static bool IsOnVideoDirectoryFileSystem(const char *FileName)
virtual void Cleanup(const char *IgnoreFiles[]=NULL)
Recursively removes all empty directories under the video directory.
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.