- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- File List
- File Members

# qscriptclasspropertyiterator.h

Go to the documentation of this file.

    00001 /****************************************************************************
    00002 **
    00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
    00004 ** All rights reserved.
    00005 ** Contact: Nokia Corporation (qt-info@nokia.com)
    00006 **
    00007 ** This file is part of the QtScript module of the Qt Toolkit.
    00008 **
    00009 ** $QT_BEGIN_LICENSE:LGPL-ONLY$
    00010 ** GNU Lesser General Public License Usage
    00011 ** This file may be used under the terms of the GNU Lesser
    00012 ** General Public License version 2.1 as published by the Free Software
    00013 ** Foundation and appearing in the file LICENSE.LGPL included in the
    00014 ** packaging of this file.  Please review the following information to
    00015 ** ensure the GNU Lesser General Public License version 2.1 requirements
    00016 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    00017 **
    00018 ** If you have questions regarding the use of this file, please contact
    00019 ** Nokia at qt-info@nokia.com.
    00020 ** $QT_END_LICENSE$
    00021 **
    00022 ****************************************************************************/
    00023
    00024 #ifndef QSCRIPTCLASSPROPERTYITERATOR_H
    00025 #define QSCRIPTCLASSPROPERTYITERATOR_H
    00026
    00027 #include <QtCore/qstring.h>
    00028
    00029 #include <QtCore/qscopedpointer.h>
    00030 #include <QtScript/qscriptvalue.h>
    00031
    00032 QT_BEGIN_HEADER
    00033
    00034 QT_BEGIN_NAMESPACE
    00035
    00036 QT_MODULE(Script)
    00037
    00038 class QScriptClassPropertyIteratorPrivate;
    00039 class Q_SCRIPT_EXPORT QScriptClassPropertyIterator
    00040 {
    00041 protected:
    00042     QScriptClassPropertyIterator(const QScriptValue &object);
    00043
    00044 public:
    00045     virtual ~QScriptClassPropertyIterator();
    00046
    00047     QScriptValue object() const;
    00048
    00049     virtual bool hasNext() const = 0;
    00050     virtual void next() = 0;
    00051
    00052     virtual bool hasPrevious() const = 0;
    00053     virtual void previous() = 0;
    00054
    00055     virtual void toFront() = 0;
    00056     virtual void toBack() = 0;
    00057
    00058     virtual QScriptString name() const = 0;
    00059     virtual uint id() const;
    00060     virtual QScriptValue::PropertyFlags flags() const;
    00061
    00062 protected:
    00063     QScriptClassPropertyIterator(const QScriptValue &object, QScriptClassPropertyIteratorPrivate &dd);
    00064     QScopedPointer<QScriptClassPropertyIteratorPrivate> d_ptr;
    00065
    00066 private:
    00067     Q_DECLARE_PRIVATE(QScriptClassPropertyIterator)
    00068     Q_DISABLE_COPY(QScriptClassPropertyIterator)
    00069 };
    00070
    00071 QT_END_NAMESPACE
    00072
    00073 QT_END_HEADER
    00074
    00075 #endif