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_P_H
5#define QJSVALUEITERATOR_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qjsvalue.h"
19#include "private/qv4objectiterator_p.h"
20
21QT_BEGIN_NAMESPACE
22
23class QJSValueIteratorPrivate
24{
25public:
26 QJSValueIteratorPrivate(const QJSValue &v);
27
28 void init(const QJSValue &v);
29 bool isValid() const;
30
31 void next();
32
33 QV4::ExecutionEngine *engine = nullptr;
34 QV4::PersistentValue object;
35 QScopedPointer<QV4::OwnPropertyKeyIterator> iterator;
36 QV4::PersistentValue currentKey;
37 QV4::PersistentValue nextKey;
38};
39
40
41QT_END_NAMESPACE
42
43#endif // QJSVALUEITERATOR_P_H
44

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