Qt 4.8
|
#include <qfilesystemmetadata_p.h>
Public Types | |
enum | MetaDataFlag { OtherReadPermission = 0x00000004, OtherWritePermission = 0x00000002, OtherExecutePermission = 0x00000001, GroupReadPermission = 0x00000040, GroupWritePermission = 0x00000020, GroupExecutePermission = 0x00000010, UserReadPermission = 0x00000400, UserWritePermission = 0x00000200, UserExecutePermission = 0x00000100, OwnerReadPermission = 0x00004000, OwnerWritePermission = 0x00002000, OwnerExecutePermission = 0x00001000, OtherPermissions = OtherReadPermission | OtherWritePermission | OtherExecutePermission, GroupPermissions = GroupReadPermission | GroupWritePermission | GroupExecutePermission, UserPermissions = UserReadPermission | UserWritePermission | UserExecutePermission, OwnerPermissions = OwnerReadPermission | OwnerWritePermission | OwnerExecutePermission, ReadPermissions = OtherReadPermission | GroupReadPermission | UserReadPermission | OwnerReadPermission, WritePermissions = OtherWritePermission | GroupWritePermission | UserWritePermission | OwnerWritePermission, ExecutePermissions = OtherExecutePermission | GroupExecutePermission | UserExecutePermission | OwnerExecutePermission, Permissions = OtherPermissions | GroupPermissions | UserPermissions | OwnerPermissions, LinkType = 0x00010000, FileType = 0x00020000, DirectoryType = 0x00040000, BundleType = 0x00080000, AliasType = 0x08000000, WinLnkType = 0x08000000, SequentialType = 0x00800000, LegacyLinkType = LinkType | AliasType | WinLnkType, Type = LinkType | FileType | DirectoryType | BundleType | SequentialType | AliasType, HiddenAttribute = 0x00100000, SizeAttribute = 0x00200000, ExistsAttribute = 0x00400000, Attributes = HiddenAttribute | SizeAttribute | ExistsAttribute, CreationTime = 0x01000000, ModificationTime = 0x02000000, AccessTime = 0x04000000, Times = CreationTime | ModificationTime | AccessTime, UserId = 0x10000000, GroupId = 0x20000000, OwnerIds = UserId | GroupId, PosixStatFlags, SymbianTEntryFlags, WinStatFlags, AllMetaDataFlags = 0xFFFFFFFF } |
Public Functions | |
QDateTime | accessTime () const |
void | clear () |
void | clearFlags (MetaDataFlags flags=AllMetaDataFlags) |
QDateTime | creationTime () const |
bool | exists () const |
QDateTime | fileTime (QAbstractFileEngine::FileTime time) const |
void | fillFromDirEnt (const QT_DIRENT &statBuffer) |
void | fillFromFileAttribute (DWORD fileAttribute, bool isDriveRoot=false) |
void | fillFromFindData (WIN32_FIND_DATA &findData, bool setLinkType=false, bool isDriveRoot=false) |
void | fillFromFindInfo (BY_HANDLE_FILE_INFORMATION &fileInfo) |
void | fillFromStatBuf (const QT_STATBUF &statBuffer) |
uint | groupId () const |
bool | hasFlags (MetaDataFlags flags) const |
bool | isAlias () const |
bool | isBundle () const |
bool | isDirectory () const |
bool | isFile () const |
bool | isHidden () const |
bool | isLegacyLink () const |
bool | isLink () const |
bool | isLnkFile () const |
bool | isSequential () const |
MetaDataFlags | missingFlags (MetaDataFlags flags) |
QDateTime | modificationTime () const |
uint | ownerId (QAbstractFileEngine::FileOwner owner) const |
QFile::Permissions | permissions () const |
QFileSystemMetaData () | |
qint64 | size () const |
uint | userId () const |
Properties | |
FILETIME | creationTime_ |
MetaDataFlags | entryFlags |
DWORD | fileAttribute_ |
MetaDataFlags | knownFlagsMask |
FILETIME | lastAccessTime_ |
FILETIME | lastWriteTime_ |
qint64 | size_ |
Friends | |
class | QFileSystemEngine |
Definition at line 75 of file qfilesystemmetadata_p.h.
Definition at line 83 of file qfilesystemmetadata_p.h.
|
inline |
Definition at line 78 of file qfilesystemmetadata_p.h.
|
inline |
Definition at line 1249 of file qfilesystemengine_win.cpp.
Referenced by fileTime(), ownerId(), and permissions().
|
inline |
Definition at line 187 of file qfilesystemmetadata_p.h.
Referenced by _q_checkEntry(), QFileInfoPrivate::clear(), QDir::refresh(), QFileSystemEngine::resolveEntryAndCreateLegacyEngine(), and QDirPrivate::setPath().
|
inline |
Definition at line 192 of file qfilesystemmetadata_p.h.
Referenced by QFSFileEnginePrivate::longFileName(), and openModeToFopenMode().
|
inline |
Definition at line 1241 of file qfilesystemengine_win.cpp.
Referenced by fileTime(), ownerId(), and permissions().
|
inline |
Definition at line 197 of file qfilesystemmetadata_p.h.
Referenced by _q_checkEntry(), QFileSystemEngine::clearWinStatData(), QFSFileEnginePrivate::doStat(), QDirPrivate::exists(), isDirPath(), and QFSFileEnginePrivate::longFileName().
|
inline |
Definition at line 278 of file qfilesystemmetadata_p.h.
Referenced by ownerId(), and permissions().
void QFileSystemMetaData::fillFromDirEnt | ( | const QT_DIRENT & | statBuffer | ) |
Definition at line 309 of file qfilesystemengine.cpp.
Referenced by QFileSystemIterator::advance(), and permissions().
|
inline |
Definition at line 342 of file qfilesystemmetadata_p.h.
Referenced by fillFromFindData(), fillFromFindInfo(), permissions(), and tryDriveUNCFallback().
|
inline |
Definition at line 353 of file qfilesystemmetadata_p.h.
Referenced by QFileSystemEngine::fillMetaData(), permissions(), and tryFindFallback().
|
inline |
Definition at line 380 of file qfilesystemmetadata_p.h.
Referenced by QFileSystemEngine::fillMetaData(), and permissions().
void QFileSystemMetaData::fillFromStatBuf | ( | const QT_STATBUF & | statBuffer | ) |
Definition at line 254 of file qfilesystemengine.cpp.
Referenced by QFileSystemEngine::fillMetaData(), and permissions().
|
inline |
Definition at line 301 of file qfilesystemmetadata_p.h.
Referenced by ownerId(), permissions(), and QFileSystemEngine::resolveGroupName().
|
inline |
Definition at line 177 of file qfilesystemmetadata_p.h.
Referenced by QFSFileEnginePrivate::doStat(), QFileSystemEngine::fillMetaData(), QFileSystemEngine::fillPermissions(), QFileSystemEngine::getLinkTarget(), QDir::isReadable(), QFSFileEnginePrivate::isSymlink(), QFSFileEnginePrivate::longFileName(), QFileSystemEngine::resolveGroupName(), and QFileSystemEngine::resolveUserName().
|
inline |
|
inline |
|
inline |
Definition at line 201 of file qfilesystemmetadata_p.h.
Referenced by QDirPrivate::exists(), QFileSystemEngine::fillMetaData(), QFileSystemEngine::fillPermissions(), QFileSystemEngine::getLinkTarget(), isDirPath(), and QFSFileEnginePrivate::nativeOpen().
|
inline |
|
inline |
Definition at line 206 of file qfilesystemmetadata_p.h.
Referenced by QFileSystemEngine::fillMetaData().
|
inline |
Definition at line 204 of file qfilesystemmetadata_p.h.
|
inline |
Definition at line 199 of file qfilesystemmetadata_p.h.
Referenced by QFileSystemEngine::clearWinStatData(), and QFSFileEnginePrivate::isSymlink().
|
inline |
Definition at line 208 of file qfilesystemmetadata_p.h.
Referenced by QFileSystemEngine::clearWinStatData().
|
inline |
Definition at line 205 of file qfilesystemmetadata_p.h.
|
inline |
Definition at line 182 of file qfilesystemmetadata_p.h.
Referenced by QFileSystemEngine::clearWinStatData(), QFSFileEnginePrivate::doStat(), QFileSystemEngine::fillMetaData(), and QFSFileEnginePrivate::longFileName().
|
inline |
Definition at line 1245 of file qfilesystemengine_win.cpp.
Referenced by fileTime(), ownerId(), and permissions().
|
inline |
|
inline |
|
inline |
Definition at line 213 of file qfilesystemmetadata_p.h.
Referenced by QFSFileEnginePrivate::longFileName(), and QFSFileEnginePrivate::map().
|
inline |
Definition at line 300 of file qfilesystemmetadata_p.h.
Referenced by ownerId(), permissions(), and QFileSystemEngine::resolveUserName().
|
friend |
Definition at line 241 of file qfilesystemmetadata_p.h.
|
private |
Definition at line 251 of file qfilesystemmetadata_p.h.
Referenced by QFileSystemEngine::clearWinStatData(), fileTime(), fillFromFindData(), fillFromFindInfo(), and QFileSystemEngine::fillMetaData().
|
private |
Definition at line 244 of file qfilesystemmetadata_p.h.
Referenced by QFileSystemEngine::canonicalName(), exists(), fillFromFileAttribute(), fillFromFindData(), QFileSystemEngine::fillMetaData(), QFileSystemEngine::fillPermissions(), isAlias(), isBundle(), isDirectory(), isFile(), isHidden(), isLegacyLink(), isLink(), isLnkFile(), isSequential(), permissions(), and QFileSystemEngine::setPermissions().
|
private |
Definition at line 250 of file qfilesystemmetadata_p.h.
Referenced by QFileSystemEngine::clearWinStatData(), fillFromFileAttribute(), fillFromFindData(), fillFromFindInfo(), QFileSystemEngine::fillMetaData(), and QFileSystemEngine::fillPermissions().
|
private |
Definition at line 243 of file qfilesystemmetadata_p.h.
Referenced by QFileSystemEngine::canonicalName(), clear(), clearFlags(), fillFromFileAttribute(), fillFromFindData(), fillFromFindInfo(), QFileSystemEngine::fillMetaData(), QFileSystemEngine::fillPermissions(), hasFlags(), missingFlags(), and QFileSystemEngine::setPermissions().
|
private |
Definition at line 252 of file qfilesystemmetadata_p.h.
Referenced by QFileSystemEngine::clearWinStatData(), fillFromFindData(), and fillFromFindInfo().
|
private |
Definition at line 253 of file qfilesystemmetadata_p.h.
Referenced by QFileSystemEngine::clearWinStatData(), fillFromFindData(), and fillFromFindInfo().
|
private |
Definition at line 246 of file qfilesystemmetadata_p.h.
Referenced by QFileSystemEngine::clearWinStatData(), fillFromFindData(), fillFromFindInfo(), QFileSystemEngine::fillMetaData(), and size().