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 | |
4 | #ifndef QJSVALUEITERATOR_H |
5 | #define QJSVALUEITERATOR_H |
6 | |
7 | #include <QtQml/qjsvalue.h> |
8 | #include <QtQml/qtqmlglobal.h> |
9 | #include <QtCore/qscopedpointer.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | |
14 | class QString; |
15 | |
16 | class QJSValueIteratorPrivate; |
17 | class Q_QML_EXPORT QJSValueIterator |
18 | { |
19 | public: |
20 | QJSValueIterator(const QJSValue &value); |
21 | ~QJSValueIterator(); |
22 | |
23 | bool hasNext() const; |
24 | bool next(); |
25 | |
26 | QString name() const; |
27 | |
28 | QJSValue value() const; |
29 | QJSValueIterator& operator=(QJSValue &value); |
30 | |
31 | private: |
32 | QScopedPointer<QJSValueIteratorPrivate> d_ptr; |
33 | |
34 | Q_DECLARE_PRIVATE(QJSValueIterator) |
35 | Q_DISABLE_COPY(QJSValueIterator) |
36 | }; |
37 | |
38 | QT_END_NAMESPACE |
39 | |
40 | #endif // QJSVALUEITERATOR_H |
41 | |