The FileStatus class. More...
#include <file.hxx>
Public Types | |
| enum | Type { Directory = osl_File_Type_Directory, Volume = osl_File_Type_Volume, Regular = osl_File_Type_Regular, Fifo = osl_File_Type_Fifo, Socket = osl_File_Type_Socket, Link = osl_File_Type_Link, Special = osl_File_Type_Special, Unknown = osl_File_Type_Unknown } |
Public Member Functions | |
| FileStatus (sal_uInt32 nMask) | |
| Constructor. | |
| ~FileStatus () | |
| Destructor. | |
| sal_Bool | isValid (sal_uInt32 nMask) const |
| Check if specified fields are valid. | |
| Type | getFileType () const |
| Get the file type. | |
| sal_Bool | isDirectory () const |
| Is it a directory? This method returns True for both directories, and volumes. | |
| sal_Bool | isRegular () const |
| Is it a regular file? | |
| sal_Bool | isLink () const |
| Is it a link? | |
| sal_uInt64 | getAttributes () const |
| Get the file attributes. | |
| TimeValue | getCreationTime () const |
| Get the creation time of this file. | |
| TimeValue | getAccessTime () const |
| Get the file access time. | |
| TimeValue | getModifyTime () const |
| Get the file modification time. | |
| sal_uInt64 | getFileSize () const |
| Get the size of the file. | |
| inline::rtl::OUString | getFileName () const |
| Get the file name. | |
| inline::rtl::OUString | getFileURL () const |
| Get the URL of the file. | |
| inline::rtl::OUString | getLinkTargetURL () const |
| Get the link target URL. | |
Friends | |
| class | DirectoryItem |
The FileStatus class.
| osl::FileStatus::FileStatus | ( | sal_uInt32 | nMask | ) | [inline] |
Constructor.
| nMask | Set of flags decribing the demanded information. |
| osl::FileStatus::~FileStatus | ( | ) | [inline] |
Destructor.
| TimeValue osl::FileStatus::getAccessTime | ( | ) | const [inline] |
Get the file access time.
| sal_uInt64 osl::FileStatus::getAttributes | ( | ) | const [inline] |
Get the file attributes.
| TimeValue osl::FileStatus::getCreationTime | ( | ) | const [inline] |
Get the creation time of this file.
| inline ::rtl::OUString osl::FileStatus::getFileName | ( | ) | const [inline] |
Get the file name.
| sal_uInt64 osl::FileStatus::getFileSize | ( | ) | const [inline] |
Get the size of the file.
| Type osl::FileStatus::getFileType | ( | ) | const [inline] |
Get the file type.
| inline ::rtl::OUString osl::FileStatus::getFileURL | ( | ) | const [inline] |
Get the URL of the file.
| inline ::rtl::OUString osl::FileStatus::getLinkTargetURL | ( | ) | const [inline] |
Get the link target URL.
| TimeValue osl::FileStatus::getModifyTime | ( | ) | const [inline] |
Get the file modification time.
| sal_Bool osl::FileStatus::isDirectory | ( | ) | const [inline] |
Is it a directory? This method returns True for both directories, and volumes.
| sal_Bool osl::FileStatus::isLink | ( | ) | const [inline] |
Is it a link?
| sal_Bool osl::FileStatus::isRegular | ( | ) | const [inline] |
Is it a regular file?
| sal_Bool osl::FileStatus::isValid | ( | sal_uInt32 | nMask | ) | const [inline] |
Check if specified fields are valid.
| nMask | Set of flags for the fields to check. |
friend class DirectoryItem [friend] |
1.6.1