![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qdir_p.h>
Classes | |
| struct | FileCache |
Public Types | |
| enum | PathNormalization { DefaultNormalization = 0x00 , UrlNormalizationMode = 0x01 , RemotePath = 0x02 } |
| enum | MetaDataClearing { KeepMetaData , IncludingMetaData } |
Public Member Functions | |
| QDirPrivate (const QString &pathpath, 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 &pathpath) |
| void | clearCache (MetaDataClearing modemode) |
| 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 QDirListing::IteratorFlags | toDirListingFlags (QDir::Filters filters) |
| static bool | checkNonDirListingFlags (const QDirListing::DirEntry &dirEntry, QDir::Filters filters) |
| 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 |
|
explicit |
Definition at line 106 of file qdir.cpp.
References QDirPrivate().
Referenced by QDirPrivate().
|
static |
Returns true if dirEntry matches the flags set in filters, otherwise returns false. Note that this method only checks the flags in filters that can't be represented by QDirListing::IteratorFlags, see toDirListingFlags().
|
inline |
Definition at line 163 of file qdir.cpp.
References clearCache(), and IncludingMetaData.
|
inlinestatic |
|
inlinestatic |
|
static |
Returns a set of QDirListing::IteratorFlags representing the flags in filters that can be represented by QDirListing::IteratorFlags.
Note that not all QDir::Filter values are supported, some flags have to be checked separately (see checkNonDirListingFlags()).
| QFileSystemEntry QDirPrivate::dirEntry |
| std::unique_ptr<QAbstractFileEngine> QDirPrivate::fileEngine |
| QStringList QDirPrivate::nameFilters |