Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtCore More...
#include <qdirlisting.h>
Public Member Functions | |
Q_CORE_EXPORT QString | fileName () const |
Q_CORE_EXPORT QString | baseName () const |
Q_CORE_EXPORT QString | completeBaseName () const |
Q_CORE_EXPORT QString | suffix () const |
Q_CORE_EXPORT QString | bundleName () const |
Q_CORE_EXPORT QString | completeSuffix () const |
Q_CORE_EXPORT QString | filePath () const |
Q_CORE_EXPORT bool | isDir () const |
Q_CORE_EXPORT bool | isFile () const |
Q_CORE_EXPORT bool | isSymLink () const |
Q_CORE_EXPORT bool | exists () const |
Q_CORE_EXPORT bool | isHidden () const |
Q_CORE_EXPORT bool | isReadable () const |
Q_CORE_EXPORT bool | isWritable () const |
Q_CORE_EXPORT bool | isExecutable () const |
Q_CORE_EXPORT QFileInfo | fileInfo () const |
Q_CORE_EXPORT QString | canonicalFilePath () const |
Q_CORE_EXPORT QString | absoluteFilePath () const |
Q_CORE_EXPORT QString | absolutePath () const |
Q_CORE_EXPORT qint64 | size () const |
QDateTime | birthTime (const QTimeZone &tz) const |
QDateTime | metadataChangeTime (const QTimeZone &tz) const |
QDateTime | lastModified (const QTimeZone &tz) const |
QDateTime | lastRead (const QTimeZone &tz) const |
See the QFileInfo methods with the same names. | |
Q_CORE_EXPORT QDateTime | fileTime (QFileDevice::FileTime type, const QTimeZone &tz) const |
Friends | |
class | QDirListing |
\inmodule QtCore
Dereferencing a valid QDirListing::const_iterator returns a DirEntry object.
DirEntry offers a subset of QFileInfo's API (for example, fileName(), filePath(), exists()). Internally, DirEntry only constructs a QFileInfo object if needed, that is, if the info hasn't been already fetched by other system functions. You can use DirEntry::fileInfo() to get a QFileInfo. For example:
Definition at line 60 of file qdirlisting.h.
QString QDirListing::DirEntry::absoluteFilePath | ( | ) | const |
Definition at line 905 of file qdirlisting.cpp.
QString QDirListing::DirEntry::absolutePath | ( | ) | const |
Definition at line 910 of file qdirlisting.cpp.
QString QDirListing::DirEntry::baseName | ( | ) | const |
Definition at line 870 of file qdirlisting.cpp.
Definition at line 86 of file qdirlisting.h.
QString QDirListing::DirEntry::bundleName | ( | ) | const |
Definition at line 885 of file qdirlisting.cpp.
QString QDirListing::DirEntry::canonicalFilePath | ( | ) | const |
Definition at line 900 of file qdirlisting.cpp.
QString QDirListing::DirEntry::completeBaseName | ( | ) | const |
Definition at line 875 of file qdirlisting.cpp.
QString QDirListing::DirEntry::completeSuffix | ( | ) | const |
Definition at line 890 of file qdirlisting.cpp.
bool QDirListing::DirEntry::exists | ( | ) | const |
Definition at line 930 of file qdirlisting.cpp.
QFileInfo QDirListing::DirEntry::fileInfo | ( | ) | const |
Definition at line 860 of file qdirlisting.cpp.
QString QDirListing::DirEntry::fileName | ( | ) | const |
Definition at line 865 of file qdirlisting.cpp.
QString QDirListing::DirEntry::filePath | ( | ) | const |
Definition at line 895 of file qdirlisting.cpp.
QDateTime QDirListing::DirEntry::fileTime | ( | QFileDevice::FileTime | type, |
const QTimeZone & | tz ) const |
Definition at line 960 of file qdirlisting.cpp.
bool QDirListing::DirEntry::isDir | ( | ) | const |
Definition at line 915 of file qdirlisting.cpp.
bool QDirListing::DirEntry::isExecutable | ( | ) | const |
Definition at line 950 of file qdirlisting.cpp.
bool QDirListing::DirEntry::isFile | ( | ) | const |
Definition at line 920 of file qdirlisting.cpp.
bool QDirListing::DirEntry::isHidden | ( | ) | const |
Definition at line 935 of file qdirlisting.cpp.
bool QDirListing::DirEntry::isReadable | ( | ) | const |
Definition at line 940 of file qdirlisting.cpp.
bool QDirListing::DirEntry::isSymLink | ( | ) | const |
Definition at line 925 of file qdirlisting.cpp.
bool QDirListing::DirEntry::isWritable | ( | ) | const |
Definition at line 945 of file qdirlisting.cpp.
Definition at line 90 of file qdirlisting.h.
See the QFileInfo methods with the same names.
Definition at line 92 of file qdirlisting.h.
Definition at line 88 of file qdirlisting.h.
qint64 QDirListing::DirEntry::size | ( | ) | const |
Definition at line 955 of file qdirlisting.cpp.
QString QDirListing::DirEntry::suffix | ( | ) | const |
Definition at line 880 of file qdirlisting.cpp.
|
friend |
Definition at line 62 of file qdirlisting.h.