Qt 4.8
|
#include <qfilesystementry_p.h>
Classes | |
struct | FromInternalPath |
struct | FromNativePath |
Public Types | |
typedef QString | NativePath |
Public Functions | |
QString | baseName () const |
void | clear () |
QString | completeBaseName () const |
QString | completeSuffix () const |
QString | fileName () const |
QString | filePath () const |
bool | isAbsolute () const |
bool | isClean () const |
bool | isDriveRoot () const |
bool | isEmpty () const |
bool | isRelative () const |
bool | isRoot () const |
NativePath | nativeFilePath () const |
QString | path () const |
QFileSystemEntry () | |
QFileSystemEntry (const QString &filePath) | |
Use this constructor when the path is supplied by user code, as it may contain a mix of '/' and the native separator. More... | |
QFileSystemEntry (const QString &filePath, FromInternalPath dummy) | |
Use this constructor when the path is guaranteed to be in internal format, i. More... | |
QFileSystemEntry (const NativePath &nativeFilePath, FromNativePath dummy) | |
QFileSystemEntry (const QString &filePath, const NativePath &nativeFilePath) | |
QString | suffix () const |
Private Functions | |
void | findFileNameSeparators () const |
void | findLastSeparator () const |
void | resolveFilePath () const |
void | resolveNativeFilePath () const |
Properties | |
QString | m_filePath |
qint16 | m_firstDotInFileName |
qint16 | m_lastDotInFileName |
qint16 | m_lastSeparator |
NativePath | m_nativeFilePath |
Definition at line 65 of file qfilesystementry_p.h.
typedef QString QFileSystemEntry::NativePath |
Definition at line 72 of file qfilesystementry_p.h.
QFileSystemEntry::QFileSystemEntry | ( | ) |
Definition at line 77 of file qfilesystementry.cpp.
Referenced by clear().
|
explicit |
Use this constructor when the path is supplied by user code, as it may contain a mix of '/' and the native separator.
Definition at line 92 of file qfilesystementry.cpp.
QFileSystemEntry::QFileSystemEntry | ( | const QString & | filePath, |
FromInternalPath | dummy | ||
) |
Use this constructor when the path is guaranteed to be in internal format, i.
Definition at line 108 of file qfilesystementry.cpp.
QFileSystemEntry::QFileSystemEntry | ( | const NativePath & | nativeFilePath, |
FromNativePath | dummy | ||
) |
Definition at line 120 of file qfilesystementry.cpp.
QFileSystemEntry::QFileSystemEntry | ( | const QString & | filePath, |
const NativePath & | nativeFilePath | ||
) |
Definition at line 128 of file qfilesystementry.cpp.
QString QFileSystemEntry::baseName | ( | ) | const |
Definition at line 211 of file qfilesystementry.cpp.
|
inline |
Definition at line 102 of file qfilesystementry_p.h.
QString QFileSystemEntry::completeBaseName | ( | ) | const |
Definition at line 227 of file qfilesystementry.cpp.
Referenced by QLibraryPrivate::load_sys().
QString QFileSystemEntry::completeSuffix | ( | ) | const |
Definition at line 253 of file qfilesystementry.cpp.
QString QFileSystemEntry::fileName | ( | ) | const |
Definition at line 182 of file qfilesystementry.cpp.
Referenced by QDirIteratorPrivate::advance(), QDir::dirName(), QFileSystemEngine::fillMetaData(), and QLibraryPrivate::load_sys().
QString QFileSystemEntry::filePath | ( | ) | const |
Definition at line 137 of file qfilesystementry.cpp.
Referenced by _q_resolveEntryAndCreateLegacyEngine_recursive(), QDir::absoluteFilePath(), QFileSystemEngine::absoluteName(), QDir::absolutePath(), QFileSystemEngine::bundleName(), QFileSystemEngine::canonicalName(), QDir::canonicalPath(), QDir::cd(), QAbstractFileEngine::create(), QFileSystemEngine::createDirectory(), QFSFileEngine::currentPath(), QDir::currentPath(), QDir::entryInfoList(), QDir::entryList(), QFSFileEngine::fileName(), QDir::filePath(), QFileSystemEngine::fillMetaData(), QFileSystemEngine::fillPermissions(), QFileInfoPrivate::getFileName(), QFileSystemEngine::getLinkTarget(), isDirPath(), QFSFileEnginePrivate::longFileName(), QDir::makeAbsolute(), QFileSystemEngine::nativeAbsoluteFilePath(), QFileInfo::operator==(), QDir::operator==(), QDirIterator::path(), QDir::path(), readLink(), QFileSystemEngine::removeDirectory(), QDirPrivate::resolveAbsoluteEntry(), resolveNativeFilePath(), and tryDriveUNCFallback().
|
private |
Definition at line 341 of file qfilesystementry.cpp.
Referenced by baseName(), clear(), completeBaseName(), completeSuffix(), and suffix().
|
private |
Definition at line 327 of file qfilesystementry.cpp.
Referenced by clear(), fileName(), and path().
bool QFileSystemEntry::isAbsolute | ( | ) | const |
Definition at line 270 of file qfilesystementry.cpp.
Referenced by QFileSystemEngine::absoluteName(), QLibraryPrivate::load_sys(), and QFileSystemEngine::nativeAbsoluteFilePath().
bool QFileSystemEntry::isClean | ( | ) | const |
Definition at line 389 of file qfilesystementry.cpp.
Referenced by QFileSystemEngine::absoluteName(), QFileSystemEngine::nativeAbsoluteFilePath(), and QDirPrivate::resolveAbsoluteEntry().
bool QFileSystemEntry::isDriveRoot | ( | ) | const |
Definition at line 294 of file qfilesystementry.cpp.
Referenced by QFileSystemEngine::fillMetaData(), isRoot(), tryDriveUNCFallback(), and tryFindFallback().
bool QFileSystemEntry::isEmpty | ( | ) | const |
Definition at line 319 of file qfilesystementry.cpp.
Referenced by QFileSystemEngine::canonicalName(), QFileSystemEngine::currentPath(), QFSFileEnginePrivate::doStat(), QFileSystemEngine::fillMetaData(), QFSFileEnginePrivate::longFileName(), openModeToFopenMode(), and QDirPrivate::resolveAbsoluteEntry().
bool QFileSystemEntry::isRelative | ( | ) | const |
Definition at line 263 of file qfilesystementry.cpp.
Referenced by isAbsolute(), QDir::isRelative(), QFileInfo::makeAbsolute(), QFileSystemEngine::nativeAbsoluteFilePath(), QDirPrivate::resolveAbsoluteEntry(), and resolveNativeFilePath().
bool QFileSystemEntry::isRoot | ( | ) | const |
Definition at line 303 of file qfilesystementry.cpp.
Referenced by QDir::absoluteFilePath(), QFileSystemEngine::canonicalName(), and QDir::isRoot().
QFileSystemEntry::NativePath QFileSystemEntry::nativeFilePath | ( | ) | const |
Definition at line 143 of file qfilesystementry.cpp.
Referenced by QFileSystemEngine::absoluteName(), QFileSystemEngine::canonicalName(), QFileSystemEngine::createLink(), QFileSystemEngine::fillMetaData(), QFileSystemEngine::fillPermissions(), QFileSystemEngine::getLinkTarget(), isDirPath(), QFSFileEnginePrivate::longFileName(), QFSFileEnginePrivate::map(), QFSFileEnginePrivate::nativeHandle(), QFSFileEnginePrivate::nativeOpen(), QTemporaryFileEngine::open(), QFileSystemEngine::owner(), readLink(), readSymLink(), QFileSystemEngine::removeFile(), QFileSystemEngine::renameFile(), QFileSystemEngine::setCurrentPath(), QFileSystemEngine::setPermissions(), tryDriveUNCFallback(), and tryFindFallback().
QString QFileSystemEntry::path | ( | ) | const |
Definition at line 192 of file qfilesystementry.cpp.
Referenced by QFSFileEngine::fileName(), QFileInfoPrivate::getFileName(), QLibraryPrivate::load_sys(), and QFSFileEnginePrivate::longFileName().
|
private |
Definition at line 149 of file qfilesystementry.cpp.
Referenced by clear(), filePath(), findFileNameSeparators(), findLastSeparator(), isAbsolute(), isClean(), isDriveRoot(), isRelative(), and isRoot().
|
private |
Definition at line 166 of file qfilesystementry.cpp.
Referenced by clear(), isEmpty(), and nativeFilePath().
QString QFileSystemEntry::suffix | ( | ) | const |
Definition at line 243 of file qfilesystementry.cpp.
Referenced by QLibraryPrivate::load_sys().
|
mutableprivate |
Definition at line 117 of file qfilesystementry_p.h.
Referenced by baseName(), completeBaseName(), completeSuffix(), fileName(), filePath(), findFileNameSeparators(), findLastSeparator(), isAbsolute(), isClean(), isDriveRoot(), isRelative(), isRoot(), path(), resolveFilePath(), resolveNativeFilePath(), and suffix().
|
mutableprivate |
Definition at line 121 of file qfilesystementry_p.h.
Referenced by baseName(), completeBaseName(), completeSuffix(), findFileNameSeparators(), and suffix().
|
mutableprivate |
Definition at line 122 of file qfilesystementry_p.h.
Referenced by completeBaseName(), findFileNameSeparators(), and suffix().
|
mutableprivate |
Definition at line 120 of file qfilesystementry_p.h.
Referenced by baseName(), completeBaseName(), completeSuffix(), fileName(), findFileNameSeparators(), findLastSeparator(), path(), and suffix().
|
mutableprivate |
Definition at line 118 of file qfilesystementry_p.h.
Referenced by isEmpty(), nativeFilePath(), resolveFilePath(), and resolveNativeFilePath().