webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Attributes | List of all members
rtc::FilesystemInterface Class Referenceabstract

#include <fileutils.h>

Inheritance diagram for rtc::FilesystemInterface:
rtc::UnixFilesystem rtc::UnixFilesystem rtc::Win32Filesystem rtc::Win32Filesystem

Public Member Functions

virtual ~FilesystemInterface ()
 
virtual DirectoryIteratorIterateDirectory ()
 
virtual FileStreamOpenFile (const Pathname &filename, const std::string &mode)=0
 
virtual bool DeleteFile (const Pathname &filename)=0
 
virtual bool DeleteEmptyFolder (const Pathname &folder)=0
 
virtual bool DeleteFolderContents (const Pathname &folder)
 
virtual bool DeleteFolderAndContents (const Pathname &folder)
 
virtual bool CreateFolder (const Pathname &pathname)=0
 
virtual bool MoveFile (const Pathname &old_path, const Pathname &new_path)=0
 
virtual bool CopyFile (const Pathname &old_path, const Pathname &new_path)=0
 
virtual bool IsFolder (const Pathname &pathname)=0
 
virtual bool IsFile (const Pathname &pathname)=0
 
virtual bool IsAbsent (const Pathname &pathname)=0
 
virtual bool IsTemporaryPath (const Pathname &pathname)=0
 
virtual bool GetTemporaryFolder (Pathname &path, bool create, const std::string *append)=0
 
virtual std::string TempFilename (const Pathname &dir, const std::string &prefix)=0
 
virtual bool GetFileSize (const Pathname &path, size_t *size)=0
 
virtual bool GetFileTime (const Pathname &path, FileTimeType which, time_t *time)=0
 
virtual bool GetAppTempFolder (Pathname *path)=0
 
void SetOrganizationName (const std::string &organization)
 
void GetOrganizationName (std::string *organization)
 
void SetApplicationName (const std::string &application)
 
void GetApplicationName (std::string *application)
 
virtual ~FilesystemInterface ()
 
virtual DirectoryIteratorIterateDirectory ()
 
virtual FileStreamOpenFile (const Pathname &filename, const std::string &mode)=0
 
virtual bool DeleteFile (const Pathname &filename)=0
 
virtual bool DeleteEmptyFolder (const Pathname &folder)=0
 
virtual bool DeleteFolderContents (const Pathname &folder)
 
virtual bool DeleteFolderAndContents (const Pathname &folder)
 
virtual bool CreateFolder (const Pathname &pathname)=0
 
virtual bool MoveFile (const Pathname &old_path, const Pathname &new_path)=0
 
virtual bool CopyFile (const Pathname &old_path, const Pathname &new_path)=0
 
virtual bool IsFolder (const Pathname &pathname)=0
 
virtual bool IsFile (const Pathname &pathname)=0
 
virtual bool IsAbsent (const Pathname &pathname)=0
 
virtual bool IsTemporaryPath (const Pathname &pathname)=0
 
virtual bool GetTemporaryFolder (Pathname &path, bool create, const std::string *append)=0
 
virtual std::string TempFilename (const Pathname &dir, const std::string &prefix)=0
 
virtual bool GetFileSize (const Pathname &path, size_t *size)=0
 
virtual bool GetFileTime (const Pathname &path, FileTimeType which, time_t *time)=0
 
virtual bool GetAppTempFolder (Pathname *path)=0
 
void SetOrganizationName (const std::string &organization)
 
void GetOrganizationName (std::string *organization)
 
void SetApplicationName (const std::string &application)
 
void GetApplicationName (std::string *application)
 

Protected Attributes

std::string organization_name_
 
std::string application_name_
 

Constructor & Destructor Documentation

◆ ~FilesystemInterface() [1/2]

virtual rtc::FilesystemInterface::~FilesystemInterface ( )
inlinevirtual

◆ ~FilesystemInterface() [2/2]

virtual rtc::FilesystemInterface::~FilesystemInterface ( )
inlinevirtual

Member Function Documentation

◆ CopyFile() [1/2]

virtual bool rtc::FilesystemInterface::CopyFile ( const Pathname old_path,
const Pathname new_path 
)
pure virtual

◆ CopyFile() [2/2]

virtual bool rtc::FilesystemInterface::CopyFile ( const Pathname old_path,
const Pathname new_path 
)
pure virtual

◆ CreateFolder() [1/2]

virtual bool rtc::FilesystemInterface::CreateFolder ( const Pathname pathname)
pure virtual

◆ CreateFolder() [2/2]

virtual bool rtc::FilesystemInterface::CreateFolder ( const Pathname pathname)
pure virtual

◆ DeleteEmptyFolder() [1/2]

virtual bool rtc::FilesystemInterface::DeleteEmptyFolder ( const Pathname folder)
pure virtual

◆ DeleteEmptyFolder() [2/2]

virtual bool rtc::FilesystemInterface::DeleteEmptyFolder ( const Pathname folder)
pure virtual

◆ DeleteFile() [1/2]

virtual bool rtc::FilesystemInterface::DeleteFile ( const Pathname filename)
pure virtual

◆ DeleteFile() [2/2]

virtual bool rtc::FilesystemInterface::DeleteFile ( const Pathname filename)
pure virtual

◆ DeleteFolderAndContents() [1/2]

bool rtc::FilesystemInterface::DeleteFolderAndContents ( const Pathname folder)
virtual

◆ DeleteFolderAndContents() [2/2]

virtual bool rtc::FilesystemInterface::DeleteFolderAndContents ( const Pathname folder)
virtual

◆ DeleteFolderContents() [1/2]

bool rtc::FilesystemInterface::DeleteFolderContents ( const Pathname folder)
virtual

◆ DeleteFolderContents() [2/2]

virtual bool rtc::FilesystemInterface::DeleteFolderContents ( const Pathname folder)
virtual

◆ GetApplicationName() [1/2]

void rtc::FilesystemInterface::GetApplicationName ( std::string application)
inline

◆ GetApplicationName() [2/2]

void rtc::FilesystemInterface::GetApplicationName ( std::string application)
inline

◆ GetAppTempFolder() [1/2]

virtual bool rtc::FilesystemInterface::GetAppTempFolder ( Pathname path)
pure virtual

◆ GetAppTempFolder() [2/2]

virtual bool rtc::FilesystemInterface::GetAppTempFolder ( Pathname path)
pure virtual

◆ GetFileSize() [1/2]

virtual bool rtc::FilesystemInterface::GetFileSize ( const Pathname path,
size_t size 
)
pure virtual

◆ GetFileSize() [2/2]

virtual bool rtc::FilesystemInterface::GetFileSize ( const Pathname path,
size_t size 
)
pure virtual

◆ GetFileTime() [1/2]

virtual bool rtc::FilesystemInterface::GetFileTime ( const Pathname path,
FileTimeType  which,
time_t *  time 
)
pure virtual

◆ GetFileTime() [2/2]

virtual bool rtc::FilesystemInterface::GetFileTime ( const Pathname path,
FileTimeType  which,
time_t *  time 
)
pure virtual

◆ GetOrganizationName() [1/2]

void rtc::FilesystemInterface::GetOrganizationName ( std::string organization)
inline

◆ GetOrganizationName() [2/2]

void rtc::FilesystemInterface::GetOrganizationName ( std::string organization)
inline

◆ GetTemporaryFolder() [1/2]

virtual bool rtc::FilesystemInterface::GetTemporaryFolder ( Pathname path,
bool  create,
const std::string append 
)
pure virtual

◆ GetTemporaryFolder() [2/2]

virtual bool rtc::FilesystemInterface::GetTemporaryFolder ( Pathname path,
bool  create,
const std::string append 
)
pure virtual

◆ IsAbsent() [1/2]

virtual bool rtc::FilesystemInterface::IsAbsent ( const Pathname pathname)
pure virtual

◆ IsAbsent() [2/2]

virtual bool rtc::FilesystemInterface::IsAbsent ( const Pathname pathname)
pure virtual

◆ IsFile() [1/2]

virtual bool rtc::FilesystemInterface::IsFile ( const Pathname pathname)
pure virtual

◆ IsFile() [2/2]

virtual bool rtc::FilesystemInterface::IsFile ( const Pathname pathname)
pure virtual

◆ IsFolder() [1/2]

virtual bool rtc::FilesystemInterface::IsFolder ( const Pathname pathname)
pure virtual

◆ IsFolder() [2/2]

virtual bool rtc::FilesystemInterface::IsFolder ( const Pathname pathname)
pure virtual

◆ IsTemporaryPath() [1/2]

virtual bool rtc::FilesystemInterface::IsTemporaryPath ( const Pathname pathname)
pure virtual

◆ IsTemporaryPath() [2/2]

virtual bool rtc::FilesystemInterface::IsTemporaryPath ( const Pathname pathname)
pure virtual

◆ IterateDirectory() [1/2]

virtual DirectoryIterator* rtc::FilesystemInterface::IterateDirectory ( )
virtual

◆ IterateDirectory() [2/2]

DirectoryIterator * rtc::FilesystemInterface::IterateDirectory ( )
virtual

◆ MoveFile() [1/2]

virtual bool rtc::FilesystemInterface::MoveFile ( const Pathname old_path,
const Pathname new_path 
)
pure virtual

◆ MoveFile() [2/2]

virtual bool rtc::FilesystemInterface::MoveFile ( const Pathname old_path,
const Pathname new_path 
)
pure virtual

◆ OpenFile() [1/2]

virtual FileStream* rtc::FilesystemInterface::OpenFile ( const Pathname filename,
const std::string mode 
)
pure virtual

◆ OpenFile() [2/2]

virtual FileStream* rtc::FilesystemInterface::OpenFile ( const Pathname filename,
const std::string mode 
)
pure virtual

◆ SetApplicationName() [1/2]

void rtc::FilesystemInterface::SetApplicationName ( const std::string application)
inline

◆ SetApplicationName() [2/2]

void rtc::FilesystemInterface::SetApplicationName ( const std::string application)
inline

◆ SetOrganizationName() [1/2]

void rtc::FilesystemInterface::SetOrganizationName ( const std::string organization)
inline

◆ SetOrganizationName() [2/2]

void rtc::FilesystemInterface::SetOrganizationName ( const std::string organization)
inline

◆ TempFilename() [1/2]

virtual std::string rtc::FilesystemInterface::TempFilename ( const Pathname dir,
const std::string prefix 
)
pure virtual

◆ TempFilename() [2/2]

virtual std::string rtc::FilesystemInterface::TempFilename ( const Pathname dir,
const std::string prefix 
)
pure virtual

Member Data Documentation

◆ application_name_

std::string rtc::FilesystemInterface::application_name_
protected

◆ organization_name_

std::string rtc::FilesystemInterface::organization_name_
protected

The documentation for this class was generated from the following files: