Remove "All rights reserved" line from license headers.
[profile/ivi/qtdeclarative.git] / src / declarative / qml / v8 / qjsvalueiterator_p.h
1 /****************************************************************************
2 **
3 ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/
5 **
6 ** This file is part of the QtDeclarative module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL-ONLY$
9 ** GNU Lesser General Public License Usage
10 ** This file may be used under the terms of the GNU Lesser
11 ** General Public License version 2.1 as published by the Free Software
12 ** Foundation and appearing in the file LICENSE.LGPL included in the
13 ** packaging of this file.  Please review the following information to
14 ** ensure the GNU Lesser General Public License version 2.1 requirements
15 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
16 **
17 ** If you have questions regarding the use of this file, please contact
18 ** us via http://www.qt-project.org/.
19 **
20 ** $QT_END_LICENSE$
21 **
22 ****************************************************************************/
23
24 #ifndef QJSVALUEITERATOR_P_H
25 #define QJSVALUEITERATOR_P_H
26
27 #include <private/qintrusivelist_p.h>
28 #include "qjsvalue_p.h"
29
30 #include <private/qv8_p.h>
31
32 QT_BEGIN_NAMESPACE
33
34 class QV8Engine;
35
36 class QJSValueIteratorPrivate
37 {
38 public:
39     inline QJSValueIteratorPrivate(const QJSValuePrivate* value);
40     inline ~QJSValueIteratorPrivate();
41
42     inline bool hasNext() const;
43     inline bool next();
44
45     inline QString name() const;
46
47     inline QScriptPassPointer<QJSValuePrivate> value() const;
48
49     inline bool isValid() const;
50     inline QV8Engine* engine() const;
51
52     inline void invalidate();
53 private:
54     Q_DISABLE_COPY(QJSValueIteratorPrivate)
55
56     QIntrusiveListNode m_node;
57     QScriptSharedDataPointer<QJSValuePrivate> m_object;
58     v8::Persistent<v8::Array> m_names;
59     uint32_t m_index;
60     uint32_t m_count;
61
62     friend class QV8Engine;
63 };
64
65
66 QT_END_NAMESPACE
67
68 #endif // QJSVALUEITERATOR_P_H