![]() |
Qt 6.x
The Qt SDK
|
#include <qdir_p.h>
Inheritance diagram for QDirPrivate:
Collaboration diagram for QDirPrivate:Classes | |
| struct | FileCache |
Public Types | |
| enum | PathNormalization { DefaultNormalization = 0x00 , AllowUncPaths = 0x01 , RemotePath = 0x02 } |
| enum | MetaDataClearing { KeepMetaData , IncludingMetaData } |
Public Member Functions | |
| QDirPrivate (const QString &path, const QStringList &nameFilters_=QStringList(), QDir::SortFlags sort_=QDir::SortFlags(QDir::Name|QDir::IgnoreCase), QDir::Filters filters_=QDir::AllEntries) | |
| QDirPrivate (const QDirPrivate ©) | |
| bool | exists () const |
| void | initFileLists (const QDir &dir) const |
| void | setPath (const QString &path) |
| void | clearCache (MetaDataClearing mode) |
| QString | resolveAbsoluteEntry () const |
Public Member Functions inherited from QSharedData | |
| QSharedData () noexcept | |
| Constructs a QSharedData object with a reference count of 0. | |
| QSharedData (const QSharedData &) noexcept | |
| Constructs a QSharedData object with reference count 0. | |
| QSharedData & | operator= (const QSharedData &)=delete |
| ~QSharedData ()=default | |
Static Public Member Functions | |
| static void | sortFileList (QDir::SortFlags, const QFileInfoList &, QStringList *, QFileInfoList *) |
| static QChar | getFilterSepChar (const QString &nameFilter) |
| static QStringList | splitFilters (const QString &nameFilter, QChar sep={}) |
Public Attributes | |
| QStringList | nameFilters |
| QDir::SortFlags | sort |
| QDir::Filters | filters |
| std::unique_ptr< QAbstractFileEngine > | fileEngine |
| QFileSystemEntry | dirEntry |
| FileCache | fileCache |
Public Attributes inherited from QSharedData | |
| QAtomicInt | ref |
|
explicit |
Definition at line 82 of file qdir.cpp.
References e, QString::fromLatin1(), nameFilters, and setPath().
Here is the call graph for this function:
|
explicit |
Definition at line 94 of file qdir.cpp.
References QDirPrivate::FileCache::absoluteDirEntry, copy(), fileCache, QDirPrivate::FileCache::fileInfos, QDirPrivate::FileCache::fileListsInitialized, QDirPrivate::FileCache::files, and QDirPrivate::FileCache::metaData.
Here is the call graph for this function:
|
inline |
Definition at line 358 of file qdir.cpp.
References QFileSystemMetaData::clear(), QList< T >::clear(), dirEntry, fileCache, fileEngine, QDirPrivate::FileCache::fileInfos, QDirPrivate::FileCache::fileListsInitialized, QDirPrivate::FileCache::files, IncludingMetaData, QDirPrivate::FileCache::metaData, QDirPrivate::FileCache::mutex, and QFileSystemEngine::resolveEntryAndCreateLegacyEngine().
Referenced by setPath().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QDirPrivate::exists | ( | ) | const |
Definition at line 111 of file qdir.cpp.
References QAbstractFileEngine::DirectoryType, QFileSystemMetaData::DirectoryType, dirEntry, QFileSystemMetaData::exists(), QFileSystemMetaData::ExistsAttribute, QAbstractFileEngine::ExistsFlag, fileCache, fileEngine, QFileSystemEngine::fillMetaData(), info, QFileSystemMetaData::isDirectory(), QDirPrivate::FileCache::metaData, QDirPrivate::FileCache::mutex, and QAbstractFileEngine::Refresh.
Referenced by QDir::exists(), and QDir::removeRecursively().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 131 of file qdir.cpp.
References i, QString::indexOf(), and sep.
Referenced by splitFilters().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 344 of file qdir.cpp.
References QList< T >::append(), dir, fileCache, QDirPrivate::FileCache::fileInfos, QDirPrivate::FileCache::fileListsInitialized, QDirPrivate::FileCache::files, it, QDirPrivate::FileCache::mutex, sort, and sortFileList().
Here is the call graph for this function:
|
inline |
Definition at line 167 of file qdir.cpp.
References QDirPrivate::FileCache::absoluteDirEntry, QAbstractFileEngine::AbsoluteName, QFileSystemEngine::absoluteName(), QDir::cleanPath(), dirEntry, fileCache, fileEngine, QFileSystemEntry::filePath(), QFileSystemEntry::isClean(), QFileSystemEntry::isEmpty(), QFileSystemEntry::isRelative(), and QDirPrivate::FileCache::mutex.
Here is the call graph for this function:Definition at line 151 of file qdir.cpp.
References QDirPrivate::FileCache::absoluteDirEntry, clearCache(), dirEntry, fileCache, QDir::fromNativeSeparators(), and IncludingMetaData.
Referenced by QDirPrivate(), and QDir::setPath().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 296 of file qdir.cpp.
References QList< T >::append(), QList< T >::at(), QScopedPointer< T, Cleanup >::data(), fi, QFileInfo::fileName(), i, QList< T >::isEmpty(), QScopedPointer< T, Cleanup >::isNull(), QDir::LocaleAware, Q_ASSERT, QList< T >::size(), sort, QDir::SortByMask, and QDir::Unsorted.
Referenced by initFileLists().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 141 of file qdir.cpp.
References e, getFilterSepChar(), QChar::isNull(), qTokenize(), ret, and sep.
Referenced by QDir::nameFiltersFromString().
Here is the call graph for this function:
Here is the caller graph for this function:| QFileSystemEntry QDirPrivate::dirEntry |
Definition at line 67 of file qdir_p.h.
Referenced by clearCache(), exists(), QDir::isRelative(), QDir::isRoot(), resolveAbsoluteEntry(), and setPath().
|
mutable |
Definition at line 78 of file qdir_p.h.
Referenced by QDirPrivate(), clearCache(), exists(), initFileLists(), resolveAbsoluteEntry(), and setPath().
| std::unique_ptr<QAbstractFileEngine> QDirPrivate::fileEngine |
Definition at line 65 of file qdir_p.h.
Referenced by clearCache(), QDir::dirName(), exists(), QDir::isRelative(), QDir::isRoot(), and resolveAbsoluteEntry().
| QStringList QDirPrivate::nameFilters |
Definition at line 61 of file qdir_p.h.
Referenced by QDirPrivate().
| QDir::SortFlags QDirPrivate::sort |
Definition at line 62 of file qdir_p.h.
Referenced by initFileLists(), and sortFileList().