qfsfileengine_iterator.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qfsfileengine_iterator.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6QFSFileEngineIterator::QFSFileEngineIterator(QDir::Filters filters, const QStringList &filterNames)-
7 : QAbstractFileEngineIterator(filters, filterNames)-
8 , done(false)-
9{-
10}
never executed: end of block
0
11-
12QFSFileEngineIterator::~QFSFileEngineIterator()-
13{-
14}-
15-
16bool QFSFileEngineIterator::hasNext() const-
17{-
18 if (!done
!doneDescription
TRUEnever evaluated
FALSEnever evaluated
&& !nativeIterator
!nativeIteratorDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
19 nativeIterator.reset(new QFileSystemIterator(QFileSystemEntry(path()),-
20 filters(), nameFilters()));-
21 advance();-
22 }
never executed: end of block
0
23-
24 return
never executed: return !done;
!done;
never executed: return !done;
0
25}-
26-
27QString QFSFileEngineIterator::next()-
28{-
29 if (!hasNext()
!hasNext()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
30 return
never executed: return QString();
QString();
never executed: return QString();
0
31-
32 advance();-
33 return
never executed: return currentFilePath();
currentFilePath();
never executed: return currentFilePath();
0
34}-
35-
36void QFSFileEngineIterator::advance() const-
37{-
38 currentInfo = nextInfo;-
39-
40 QFileSystemEntry entry;-
41 QFileSystemMetaData data;-
42 if (nativeIterator->advance(entry, data)
nativeIterator...e(entry, data)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
43 nextInfo = QFileInfo(new QFileInfoPrivate(entry, data));-
44 }
never executed: end of block
else {
0
45 done = true;-
46 nativeIterator.reset();-
47 }
never executed: end of block
0
48}-
49-
50QString QFSFileEngineIterator::currentFileName() const-
51{-
52 return
never executed: return currentInfo.fileName();
currentInfo.fileName();
never executed: return currentInfo.fileName();
0
53}-
54-
55QFileInfo QFSFileEngineIterator::currentFileInfo() const-
56{-
57 return
never executed: return currentInfo;
currentInfo;
never executed: return currentInfo;
0
58}-
59-
60-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9