9#include <QtCore/qtdeprecationmarkers.h>
10#include <QtCore/qfiledevice.h>
11#include <QtCore/qflags.h>
12#include <QtCore/qtmetamacros.h>
13#include <QtCore/qtclasshelpermacros.h>
14#include <QtCore/qtcoreexports.h>
15#include <QtCore/qdatetime.h>
22class QDirListingPrivate;
30 Q_GADGET_EXPORT(Q_CORE_EXPORT)
36#if QT_DEPRECATED_SINCE(6
, 14
)
51 Q_DECLARE_FLAGS(IteratorFlags, IteratorFlag)
60 : d{
std::exchange(other.d,
nullptr)} {}
76 Q_CORE_EXPORT QString
fileName()
const;
83 Q_CORE_EXPORT
bool isDir()
const;
84 Q_CORE_EXPORT
bool isFile()
const;
86 Q_CORE_EXPORT
bool exists()
const;
91 Q_CORE_EXPORT QFileInfo
fileInfo()
const;
95 Q_CORE_EXPORT qint64
size()
const;
98 {
return fileTime(QFileDevice::FileBirthTime, tz); }
100 {
return fileTime(QFileDevice::FileMetadataChangeTime, tz); }
102 {
return fileTime(QFileDevice::FileModificationTime, tz); }
104 {
return fileTime(QFileDevice::FileAccessTime, tz); }
136 bool atEnd()
const noexcept {
return dirEntry.dirListPtr ==
nullptr; }
138#ifndef __cpp_impl_three_way_comparison
165Q_DECLARE_OPERATORS_FOR_FLAGS(
QDirListing::IteratorFlags)
~QAbstractFileEngineHandlerList()
\inmodule QtCore\reentrant
QDateTime birthTime(const QTimeZone &tz) const
QDateTime metadataChangeTime(const QTimeZone &tz) const
Q_CORE_EXPORT bool isReadable() const
Q_CORE_EXPORT bool isHidden() const
Q_CORE_EXPORT bool isWritable() const
Q_CORE_EXPORT bool isExecutable() const
Q_CORE_EXPORT bool isFile() const
Q_CORE_EXPORT bool exists() const
Q_CORE_EXPORT bool isSymLink() const
Q_CORE_EXPORT bool isDir() const
QDateTime lastRead(const QTimeZone &tz) const
See the QFileInfo methods with the same names.
QDateTime lastModified(const QTimeZone &tz) const
const_iterator(const_iterator &&) noexcept=default
reference operator*() const
Returns a {const QDirListing::DirEntry &} of the directory entry this iterator points to.
const value_type * pointer
std::input_iterator_tag iterator_category
const value_type & reference
friend bool operator==(sentinel, const const_iterator &rhs) noexcept
const_iterator & operator=(const_iterator &&) noexcept=default
pointer operator->() const
Returns a {const QDirListing::DirEntry *} to the directory entry this iterator points to.
friend bool operator!=(sentinel, const const_iterator &rhs) noexcept
friend bool operator!=(const const_iterator &lhs, sentinel) noexcept
const_iterator & operator++()
Pre-increment operator.
friend bool operator==(const const_iterator &lhs, sentinel) noexcept
\typealias QDirListing::const_iterator::reference
friend constexpr bool operator==(sentinel, sentinel) noexcept
friend constexpr bool operator!=(sentinel, sentinel) noexcept
const_iterator cbegin() const
QDirListing(QDirListing &&other) noexcept
const_iterator constBegin() const
sentinel constEnd() const
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
T qvariant_cast_qmetatype_converted(const QVariant &v, QMetaType targetType)
static QString appendSlashIfNeeded(const QString &path)
T qvariant_cast(QVariant &&v)
T qvariant_cast(const QVariant &)
void swap(QVariant &value1, QVariant &value2) noexcept