Go to the documentation of this file.
25 virtual int FreeMB(
int *UsedMB = NULL);
29 virtual bool Register(
const char *FileName);
40 virtual bool Rename(
const char *OldName,
const char *NewName);
47 virtual bool Move(
const char *FromName,
const char *ToName);
58 virtual void Cleanup(
const char *IgnoreFiles[] = NULL);
73 static const char *
Name(
void);
78 static bool MoveVideoFile(
const char *FromName,
const char *ToName);
112 static int UsedPercent(
void) {
return usedPercent; }
115 static int FreeMB(
void) {
return freeMB; }
118 static int FreeMinutes(
void) {
return freeMinutes; }
125 #endif //__VIDEODIR_H
static void SetName(const char *Name)
static bool MoveVideoFile(const char *FromName, const char *ToName)
virtual bool Remove(const char *Name)
Removes the directory with the given Name and everything it contains.
static const char * Name(void)
static bool IsOnVideoDirectoryFileSystem(const char *FileName)
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...
static bool VideoFileSpaceAvailable(int SizeMB)
static bool RenameVideoFile(const char *OldName, const char *NewName)
virtual ~cVideoDirectory()
virtual int FreeMB(int *UsedMB=NULL)
Returns the total amount (in MB) of free disk space for recording.
virtual bool Move(const char *FromName, const char *ToName)
Moves the directory FromName to the location ToName.
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...
cUnbufferedFile is used for large files that are mainly written or read in a streaming manner,...
static cString String(void)
Returns a localized string of the form "Disk nn% - hh:mm free".
virtual bool Contains(const char *Name)
Checks whether the directory Name is on the same file system as the video directory.
static int VideoDiskSpace(int *FreeMB=NULL, int *UsedMB=NULL)
static bool RemoveVideoFile(const char *FileName)
static cUnbufferedFile * OpenVideoFile(const char *FileName, int Flags)
virtual bool Rename(const char *OldName, const char *NewName)
Renames the directory OldName to NewName.
virtual void Cleanup(const char *IgnoreFiles[]=NULL)
Recursively removes all empty directories under the video directory.
static void RemoveEmptyVideoDirectories(const char *IgnoreFiles[]=NULL)
static cVideoDirectory * current
static time_t lastChecked
static cVideoDirectory * Current(void)
static cString PrefixVideoFileName(const char *FileName, char Prefix)
static void Destroy(void)