HDK
|
#include <FS_Info.h>
Public Member Functions | |
FS_InfoHelper () | |
virtual | ~FS_InfoHelper () |
virtual bool | canHandle (const char *source)=0 |
Determine whether this helper can process the filename. More... | |
virtual bool | hasAccess (const char *source, int mode)=0 |
virtual bool | getIsDirectory (const char *source)=0 |
Return whether the filename is a directory. More... | |
virtual time_t | getModTime (const char *source)=0 |
Get the modification timestamp (returns time_t) More... | |
virtual int64 | getSize (const char *source)=0 |
Get the file size in bytes. More... | |
virtual bool | getContents (const char *source, UT_StringArray &contents, UT_StringArray *dirs)=0 |
virtual UT_String | getExtension (const char *source) |
virtual char | getNextSepChar (const char *) |
Next separator character. More... | |
virtual char | getPrevSepChar (const char *) |
Previous separator character. More... | |
virtual bool | customNavigatePath (UT_String &path, const char *file) |
virtual bool | getPathOnDisk (UT_String &path, const char *file) |
This class provides a plug-in method for adding a custom "file system".
|
pure virtual |
Determine whether this helper can process the filename.
Implemented in HDK_Sample::FS_HomeInfoHelper, OP_DataBlockInfoHelper, and FS_IconInfoHelper.
|
inlinevirtual |
Constructs a new path and returns true, if navigating a file path requires something else than appending getNextSepChar() and concatenating file. But if concatenating sep char and file is sufficient, does nothing and returns false.
|
pure virtual |
Read the contents of a directory
source | - The directory to read |
contents | - The list of files in the directory |
dirs | - The list of directories in the directory If dirs is NULL, then all directories should be included in the contents . |
Implemented in HDK_Sample::FS_HomeInfoHelper, OP_DataBlockInfoHelper, and FS_IconInfoHelper.
Reimplemented in HDK_Sample::FS_HomeInfoHelper.
|
pure virtual |
Return whether the filename is a directory.
Implemented in HDK_Sample::FS_HomeInfoHelper, OP_DataBlockInfoHelper, and FS_IconInfoHelper.
|
pure virtual |
Get the modification timestamp (returns time_t)
Implemented in HDK_Sample::FS_HomeInfoHelper, OP_DataBlockInfoHelper, and FS_IconInfoHelper.
|
inlinevirtual |
Next separator character.
Reimplemented in FS_IconInfoHelper.
|
inlinevirtual |
Previous separator character.
Reimplemented in FS_IconInfoHelper.
Get the file size in bytes.
Implemented in HDK_Sample::FS_HomeInfoHelper, OP_DataBlockInfoHelper, and FS_IconInfoHelper.
source | Filename for access check |
mode | The read/write/execute status |
Implemented in HDK_Sample::FS_HomeInfoHelper, OP_DataBlockInfoHelper, and FS_IconInfoHelper.