Qt 4.8
qscriptclasspropertyiterator.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
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 
25 
26 #include "qscriptstring.h"
27 
29 
60 {
62 public:
65 
67 
69 };
70 
79 {
80  d_ptr->q_ptr = this;
81  d_ptr->object = object;
82 }
83 
89  : d_ptr(&dd)
90 {
91  d_ptr->q_ptr = this;
92  d_ptr->object = object;
93 }
94 
99 {
100 }
101 
106 {
108  return d->object;
109 }
110 
215 {
216  return 0;
217 }
218 
227 {
228  return object().propertyFlags(name());
229 }
230 
double d
Definition: qnumeric_p.h:62
virtual QScriptValue::PropertyFlags flags() const
Returns the flags of the last property that was jumped over using next() or previous().
#define QT_END_NAMESPACE
This macro expands to.
Definition: qglobal.h:90
#define Q_D(Class)
Definition: qglobal.h:2482
QScriptClassPropertyIterator(const QScriptValue &object)
Constructs an iterator for traversing object.
QScriptValue::PropertyFlags propertyFlags(const QString &name, const ResolveFlags &mode=ResolvePrototype) const
Returns the flags of the property with the given name, using the given mode to resolve the property...
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition: qglobal.h:89
The QScriptClassPropertyIterator class provides an iterator interface for custom Qt Script objects...
unsigned int uint
Definition: qglobal.h:996
QScriptValue object() const
Returns the Qt Script object this iterator is traversing.
virtual QScriptString name() const =0
Returns the name of the last property that was jumped over using next() or previous().
#define Q_DECLARE_PUBLIC(Class)
Definition: qglobal.h:2477
PropertyFlags
Definition: qmetaobject_p.h:61
The QScriptValue class acts as a container for the Qt Script data types.
Definition: qscriptvalue.h:57
QScopedPointer< QScriptClassPropertyIteratorPrivate > d_ptr
virtual ~QScriptClassPropertyIterator()
Destroys the iterator.
virtual uint id() const
Returns the id of the last property that was jumped over using next() or previous().