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
qfsfileengine_iterator_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QFSFILEENGINE_ITERATOR_P_H
6#define QFSFILEENGINE_ITERATOR_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include "private/qabstractfileengine_p.h"
21#include "qdir.h"
22
23#include <memory>
24
25#ifndef QT_NO_FILESYSTEMITERATOR
26
28
30{
31public:
32 QFSFileEngineIterator(const QString &path, QDir::Filters filters, const QStringList &filterNames);
33 QFSFileEngineIterator(const QString &path, QDirListing::IteratorFlags filters,
34 const QStringList &filterNames);
36
37 bool advance() override;
38
39 QString currentFileName() const override;
40 QFileInfo currentFileInfo() const override;
41
42private:
43 mutable std::unique_ptr<QFileSystemIterator> nativeIterator;
44};
45
46QT_END_NAMESPACE
47
48#endif // QT_NO_FILESYSTEMITERATOR
49
50#endif // QFSFILEENGINE_ITERATOR_P_H
QString currentFileName() const override
This pure virtual function returns the name of the current directory entry, excluding the path.
QFileInfo currentFileInfo() const override
The virtual function returns a QFileInfo for the current directory entry.
QFSFileEngineIterator(const QString &path, QDir::Filters filters, const QStringList &filterNames)
bool advance() override
This pure virtual function advances the iterator to the next directory entry; if the operation was su...
size_t UnsignedIOType
ssize_t SignedIOType
ProcessOpenModeResult processOpenModeFlags(QIODevice::OpenMode openMode)