Implementation of CGUIDirectory for *NIX systems.
More...
#include <GUIDirectoryPOSIX.h>
|
enum | Filter_t {
DIRECTORIES = 0x001
, FILES = 0x002
, NOSYMLINK = 0x004
, READABLE = 0x008
,
WRITABLE = 0x010
, EXECUTABLE = 0x020
, HIDDEN = 0x040
, SYSTEM = 0x080
,
SYMLINK = 0x100
, ALL = 0x200
} |
|
enum | SortFlag_t { NAME = 0x00
, TIME = 0x01
, SIZE = 0x02
, TYPE = 0x04
} |
|
typedef eC_TListDoubleLinked< eC_String > | StringList_t |
| A list of strings.
|
|
eC_Bool | m_bListNeedRecreation |
|
eC_Bool | m_bListSpecialFile |
|
eC_Bool | m_bSortCaseInsensitive |
|
eC_Bool | m_bSortDirsFirst |
|
SortFlag_t | m_eSortFlag |
|
eC_String | m_kCurrentWorkingDir |
|
CGUIDirInfo::DirInfoPtrList_t | m_kDirectoriesList |
|
CGUIDirInfo::DirInfoPtrList_t | m_kDirInfoList |
|
eC_String | m_kDirPath |
|
CGUIDirInfo::DirInfoPtrList_t | m_kFilesList |
|
StringList_t | m_kNameFilters |
|
eC_UInt | m_uiFilter |
|
Implementation of CGUIDirectory for *NIX systems.
◆ ~CGUIDirectoryPOSIX()
CGUIDirectoryPOSIX::~CGUIDirectoryPOSIX |
( |
| ) |
|
|
inline |
◆ CheckExist()
virtual eC_Bool CGUIDirectoryPOSIX::CheckExist |
( |
| ) |
const |
|
virtual |
Check whether this directory does exist in the file system.
- Returns
- True if the directory exists; otherwise False.
Implements CGUIDirectory.
◆ CreateSubDir()
virtual eC_Bool CGUIDirectoryPOSIX::CreateSubDir |
( |
const eC_String & |
kDirName | ) |
|
|
virtual |
Creates a sub-directory in this directory.
- Parameters
-
kDirName | The given directory name. |
- Returns
- True on success; otherwise False.
Implements CGUIDirectory.
◆ IsReadable()
virtual eC_Bool CGUIDirectoryPOSIX::IsReadable |
( |
| ) |
const |
|
virtual |
Check whether the given directory is readable or not.
- Returns
- True if the directory is readable; otherwise False.
Implements CGUIDirectory.
◆ IsRoot()
virtual eC_Bool CGUIDirectoryPOSIX::IsRoot |
( |
| ) |
const |
|
virtual |
Check whether the given directory is a root directory or not.
- Returns
- True if the directory is the root directory; otherwise False.
Implements CGUIDirectory.
◆ ListFiles()
virtual void CGUIDirectoryPOSIX::ListFiles |
( |
| ) |
|
|
protectedvirtual |
◆ RemoveFile()
virtual eC_Bool CGUIDirectoryPOSIX::RemoveFile |
( |
const eC_String & |
kFileName | ) |
|
|
virtual |
Removes the file with the given name. The list of the dir info must be regenerated.
- Parameters
-
kFileName | The given file name that is to be removed. |
- Returns
- True if the file is removed successfully; otherwise False.
Implements CGUIDirectory.
◆ RemoveSubDir()
virtual eC_Bool CGUIDirectoryPOSIX::RemoveSubDir |
( |
const eC_String & |
kDirName, |
|
|
eC_Bool |
bRecursive = false |
|
) |
| |
|
virtual |
Removes the sub directory specified by the given directory name.
- Parameters
-
kDirName | Name of the directory to be deleted. |
bRecursive | If true, all sub directories and files are also deleted. If false, the directory must be empty for this method to succeed. |
- Returns
- True if successful, otherwise False.
Implements CGUIDirectory.
◆ RenameFile()
virtual eC_Bool CGUIDirectoryPOSIX::RenameFile |
( |
const eC_String & |
kOldName, |
|
|
const eC_String & |
kNewName |
|
) |
| |
|
virtual |
Renames a file or directory. The list of the dir info must be regenerated.
- Parameters
-
kOldName | Name of the file that is to be renamed. |
kNewName | The new file name. |
- Returns
- True if successful; otherwise False.
Implements CGUIDirectory.
The documentation for this class was generated from the following file: