Qt 4.8
|
#include <qfsfileengine_iterator_p.h>
Public Functions | |
QFileInfo | currentFileInfo () const |
The virtual function returns a QFileInfo for the current directory entry. More... | |
QString | currentFileName () const |
This pure virtual function returns the name of the current directory entry, excluding the path. More... | |
bool | hasNext () const |
This pure virtual function returns true if there is at least one more entry in the current directory (i. More... | |
QString | next () |
This pure virtual function advances the iterator to the next directory entry, and returns the file path to the current entry. More... | |
QFSFileEngineIterator (QDir::Filters filters, const QStringList &filterNames) | |
~QFSFileEngineIterator () | |
Public Functions inherited from QAbstractFileEngineIterator | |
QString | currentFilePath () const |
Returns the path to the current directory entry. More... | |
QDir::Filters | filters () const |
Returns the entry filters for this iterator. More... | |
QStringList | nameFilters () const |
Returns the name filters for this iterator. More... | |
QString | path () const |
Returns the path for this iterator. More... | |
QAbstractFileEngineIterator (QDir::Filters filters, const QStringList &nameFilters) | |
Constructs a QAbstractFileEngineIterator, using the entry filters filters, and wildcard name filters nameFilters. More... | |
virtual | ~QAbstractFileEngineIterator () |
Destroys the QAbstractFileEngineIterator. More... | |
Private Functions | |
void | advance () const |
Properties | |
QFileInfo | currentInfo |
bool | done |
QScopedPointer< QFileSystemIterator > | nativeIterator |
QFileInfo | nextInfo |
Additional Inherited Members | |
Protected Types inherited from QAbstractFileEngineIterator | |
enum | EntryInfoType |
This enum describes the different types of information that can be requested through the QAbstractFileEngineIterator::entryInfo() function. More... | |
Protected Functions inherited from QAbstractFileEngineIterator | |
virtual QVariant | entryInfo (EntryInfoType type) const |
Returns the entry info type for this iterator's current directory entry as a QVariant. More... | |
Definition at line 68 of file qfsfileengine_iterator_p.h.
QFSFileEngineIterator::QFSFileEngineIterator | ( | QDir::Filters | filters, |
const QStringList & | filterNames | ||
) |
Definition at line 51 of file qfsfileengine_iterator.cpp.
QFSFileEngineIterator::~QFSFileEngineIterator | ( | ) |
Definition at line 57 of file qfsfileengine_iterator.cpp.
|
private |
Definition at line 81 of file qfsfileengine_iterator.cpp.
Referenced by hasNext(), and next().
|
virtual |
The virtual function returns a QFileInfo for the current directory entry.
This function is provided for convenience. It can also be slightly faster than creating a QFileInfo object yourself, as the object returned by this function might contain cached information that QFileInfo otherwise would have to access through the file engine.
Reimplemented from QAbstractFileEngineIterator.
Definition at line 100 of file qfsfileengine_iterator.cpp.
|
virtual |
This pure virtual function returns the name of the current directory entry, excluding the path.
Implements QAbstractFileEngineIterator.
Definition at line 95 of file qfsfileengine_iterator.cpp.
|
virtual |
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 qfsfileengine_iterator.cpp.
Referenced by next().
|
virtual |
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 72 of file qfsfileengine_iterator.cpp.
|
mutableprivate |
Definition at line 83 of file qfsfileengine_iterator_p.h.
Referenced by advance(), currentFileInfo(), and currentFileName().
|
mutableprivate |
Definition at line 85 of file qfsfileengine_iterator_p.h.
|
mutableprivate |
Definition at line 82 of file qfsfileengine_iterator_p.h.
|
mutableprivate |
Definition at line 84 of file qfsfileengine_iterator_p.h.
Referenced by advance().