Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
AndroidContentFileEngineIterator Class Reference

#include <androidcontentfileengine.h>

+ Inheritance diagram for AndroidContentFileEngineIterator:
+ Collaboration diagram for AndroidContentFileEngineIterator:

Public Member Functions

 AndroidContentFileEngineIterator (const QString &path, QDir::Filters filters, const QStringList &filterNames)
 
 ~AndroidContentFileEngineIterator ()
 
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 () const override
 This pure virtual function returns the name of the current directory entry, excluding the path.
 
QString currentFilePath () const override
 Returns the path to the current directory entry.
 
- 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.
 
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 QFileInfo currentFileInfo () const
 The virtual function returns a QFileInfo for the current directory entry.
 

Additional Inherited Members

- Protected Attributes inherited from QAbstractFileEngineIterator
QFileInfo m_fileInfo
 

Detailed Description

Definition at line 53 of file androidcontentfileengine.h.

Constructor & Destructor Documentation

◆ AndroidContentFileEngineIterator()

AndroidContentFileEngineIterator::AndroidContentFileEngineIterator ( const QString & path,
QDir::Filters filters,
const QStringList & filterNames )

Definition at line 271 of file androidcontentfileengine.cpp.

◆ ~AndroidContentFileEngineIterator()

AndroidContentFileEngineIterator::~AndroidContentFileEngineIterator ( )

Definition at line 277 of file androidcontentfileengine.cpp.

Member Function Documentation

◆ advance()

bool AndroidContentFileEngineIterator::advance ( )
overridevirtual

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 281 of file androidcontentfileengine.cpp.

References QList< T >::append(), QList< T >::isEmpty(), DocumentFile::parseFromAnyUri(), QAbstractFileEngineIterator::path(), and QList< T >::size().

+ Here is the call graph for this function:

◆ currentFileName()

QString AndroidContentFileEngineIterator::currentFileName ( ) const
overridevirtual

This pure virtual function returns the name of the current directory entry, excluding the path.

See also
currentFilePath()

Implements QAbstractFileEngineIterator.

Definition at line 306 of file androidcontentfileengine.cpp.

References QList< T >::at(), and QList< T >::size().

+ Here is the call graph for this function:

◆ currentFilePath()

QString AndroidContentFileEngineIterator::currentFilePath ( ) const
overridevirtual

Returns the path to the current directory entry.

It's the same as prepending path() to the return value of currentFileName().

See also
currentFileName()

Reimplemented from QAbstractFileEngineIterator.

Definition at line 313 of file androidcontentfileengine.cpp.

References QList< T >::at(), and QList< T >::size().

+ Here is the call graph for this function:

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