Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CustomIterator Class Reference

[2] More...

Inheritance diagram for CustomIterator:
Collaboration diagram for CustomIterator:

Public Member Functions

 CustomIterator (const QString &path, const QStringList &nameFilters, QDir::Filters filters)
bool advance () override
 This pure virtual function advances the iterator to the next directory entry; if the operation was successful this method returns true, otherwise it returs false.
QString currentFileName () override
 CustomIterator (const QString &path, const QStringList &nameFilters, QDir::Filters filters)
bool advance () override
 This pure virtual function advances the iterator to the next directory entry; if the operation was successful this method returns true, otherwise it returs false.
QString currentFileName () override
Public Member Functions inherited from QAbstractFileEngineIterator
 QAbstractFileEngineIterator (const QString &path, QDir::Filters filters, const QStringList &nameFilters)
 Constructs a QAbstractFileEngineIterator, using the entry filters filters, and wildcard name filters nameFilters.
 QAbstractFileEngineIterator (const QString &path, QDirListing::IteratorFlags filters, const QStringList &nameFilters)
virtual ~QAbstractFileEngineIterator ()
 Destroys the QAbstractFileEngineIterator.
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

Protected Attributes inherited from QAbstractFileEngineIterator
QFileInfo m_fileInfo

Detailed Description

[2]

[3]

Definition at line 57 of file src_corelib_io_qabstractfileengine.cpp.

Constructor & Destructor Documentation

◆ CustomIterator() [1/2]

CustomIterator::CustomIterator ( const QString & path,
const QStringList & nameFilters,
QDir::Filters filters )
inline

Definition at line 60 of file src_corelib_io_qabstractfileengine.cpp.

References CustomIterator().

Referenced by CustomIterator().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CustomIterator() [2/2]

CustomIterator::CustomIterator ( const QString & path,
const QStringList & nameFilters,
QDir::Filters filters )
inline

Definition at line 60 of file src_corelib_io_qabstractfileengine.cpp.

Member Function Documentation

◆ advance() [1/2]

bool CustomIterator::advance ( )
inlineoverridevirtual

This pure virtual function advances the iterator to the next directory entry; if the operation was successful this method returns true, otherwise it returs false.

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 68 of file src_corelib_io_qabstractfileengine.cpp.

◆ advance() [2/2]

bool CustomIterator::advance ( )
inlineoverridevirtual

This pure virtual function advances the iterator to the next directory entry; if the operation was successful this method returns true, otherwise it returs false.

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 68 of file src_corelib_io_qabstractfileengine.cpp.

◆ currentFileName() [1/2]

QString CustomIterator::currentFileName ( )
inlineoverride

Definition at line 79 of file src_corelib_io_qabstractfileengine.cpp.

◆ currentFileName() [2/2]

QString CustomIterator::currentFileName ( )
inlineoverride

Definition at line 79 of file src_corelib_io_qabstractfileengine.cpp.


The documentation for this class was generated from the following file: