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
11QT_BEGIN_NAMESPACE
12
13
14class QString;
15
16class QJSValueIteratorPrivate;
17class Q_QML_EXPORT QJSValueIterator
18{
19public:
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
31private:
32 QScopedPointer<QJSValueIteratorPrivate> d_ptr;
33
34 Q_DECLARE_PRIVATE(QJSValueIterator)
35 Q_DISABLE_COPY(QJSValueIterator)
36};
37
38QT_END_NAMESPACE
39
40#endif // QJSVALUEITERATOR_H
41

source code of qtdeclarative/src/qml/jsapi/qjsvalueiterator.h