Remove "All rights reserved" line from license headers.
[profile/ivi/qtdeclarative.git] / src / declarative / qml / v8 / qjsvalueiterator.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 QtScript 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 QSCRIPTVALUEITERATOR_H
25 #define QSCRIPTVALUEITERATOR_H
26
27 #include <QtDeclarative/qjsvalue.h>
28 #include <QtCore/qscopedpointer.h>
29
30 QT_BEGIN_HEADER
31
32 QT_BEGIN_NAMESPACE
33
34
35 class QString;
36
37 class QJSValueIteratorPrivate;
38 class Q_DECLARATIVE_EXPORT QJSValueIterator
39 {
40 public:
41     QJSValueIterator(const QJSValue &value);
42     ~QJSValueIterator();
43
44     bool hasNext() const;
45     bool next();
46
47     QString name() const;
48
49     QJSValue value() const;
50     QJSValueIterator& operator=(QJSValue &value);
51
52 private:
53     QScopedPointer<QJSValueIteratorPrivate> d_ptr;
54
55     Q_DECLARE_PRIVATE(QJSValueIterator)
56     Q_DISABLE_COPY(QJSValueIterator)
57 };
58
59 QT_END_NAMESPACE
60
61 QT_END_HEADER
62
63 #endif // QSCRIPTVALUEITERATOR_H