![]() |
Qt 6.x
The Qt SDK
|
[2] More...
Public Member Functions | |
CustomIterator (const QStringList &nameFilters, QDir::Filters filters) | |
bool | hasNext () const override |
This pure virtual function returns true if there is at least one more entry in the current directory (i.e., the iterator path is valid and accessible, and the iterator has not reached the end of the entry list). | |
QString | next () override |
This pure virtual function advances the iterator to the next directory entry, and returns the file path to the current entry. | |
QString | currentFileName () override |
![]() | |
QAbstractFileEngineIterator (QDir::Filters filters, const QStringList &nameFilters) | |
Constructs a QAbstractFileEngineIterator, using the entry filters filters, and wildcard name filters nameFilters. | |
virtual | ~QAbstractFileEngineIterator () |
Destroys the QAbstractFileEngineIterator. | |
virtual QString | next ()=0 |
This pure virtual function advances the iterator to the next directory entry, and returns the file path to the current entry. | |
virtual bool | hasNext () const =0 |
This pure virtual function returns true if there is at least one more entry in the current directory (i.e., the iterator path is valid and accessible, and the iterator has not reached the end of the entry list). | |
QString | path () const |
Returns the path for this iterator. | |
QStringList | nameFilters () const |
Returns the name filters for this iterator. | |
QDir::Filters | filters () const |
Returns the entry filters for this iterator. | |
virtual QString | currentFileName () const =0 |
This pure virtual function returns the name of the current directory entry, excluding the path. | |
virtual QFileInfo | currentFileInfo () const |
The virtual function returns a QFileInfo for the current directory entry. | |
virtual QString | currentFilePath () const |
Returns the path to the current directory entry. | |
Additional Inherited Members | |
![]() | |
enum | EntryInfoType |
![]() | |
virtual QVariant | entryInfo (EntryInfoType type) const |
|
inline |
Definition at line 53 of file src_corelib_io_qabstractfileengine.cpp.
|
inlineoverride |
Definition at line 74 of file src_corelib_io_qabstractfileengine.cpp.
|
inlineoverridevirtual |
This pure virtual function returns true
if there is at least one more entry in the current directory (i.e., the iterator path is valid and accessible, and the iterator has not reached the end of the entry list).
Implements QAbstractFileEngineIterator.
Definition at line 61 of file src_corelib_io_qabstractfileengine.cpp.
Referenced by next().
|
inlineoverridevirtual |
This pure virtual function advances the iterator to the next directory entry, and returns the file path to the current entry.
This function can optionally make use of nameFilters() and filters() to optimize its performance.
Reimplement this function in a subclass to advance the iterator.
Implements QAbstractFileEngineIterator.
Definition at line 66 of file src_corelib_io_qabstractfileengine.cpp.
References QAbstractFileEngineIterator::currentFilePath(), and hasNext().