// qscriptvalue.sip generated by MetaSIP on Fri Sep 28 17:07:47 2007 // // This file is part of the QtScript Python extension module. // // Copyright (c) 2007 // Phil Thompson // // This file is part of PyQt. // // This copy of PyQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License version 2 as published by // the Free Software Foundation and appearing in the file LICENSE included in the // packaging of this file. // // PyQt is supplied in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // PyQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %If (Qt_4_3_0 -) %ModuleCode #include %End %End %If (Qt_4_3_0 -) typedef QList QScriptValueList; %End %If (Qt_4_3_0 -) typedef double qsreal; %End %If (Qt_4_3_0 -) class QScriptValue { %TypeHeaderCode #include %End public: enum ResolveFlag { ResolveLocal, ResolvePrototype, ResolveScope, ResolveFull, }; typedef QFlags ResolveFlags; enum PropertyFlag { ReadOnly, Undeletable, SkipInEnumeration, PropertyGetter, PropertySetter, QObjectMember, KeepExistingFlags, UserRange, }; typedef QFlags PropertyFlags; enum SpecialValue { NullValue, UndefinedValue, }; QScriptValue(); QScriptValue(const QScriptValue &other); QScriptValue(QScriptEngine *engine, QScriptValue::SpecialValue val); QScriptValue(QScriptEngine *engine, bool val /Constrained/); QScriptValue(QScriptEngine *engine, int val /Constrained/); QScriptValue(QScriptEngine *engine, qsreal val /Constrained/); QScriptValue(QScriptEngine *engine, const QString &val); ~QScriptValue(); QScriptEngine *engine() const; bool isValid() const; bool isBoolean() const; bool isNumber() const; bool isFunction() const; bool isNull() const; bool isString() const; bool isUndefined() const; bool isVariant() const; bool isQObject() const; bool isQMetaObject() const; bool isObject() const; bool isDate() const; bool isRegExp() const; bool isArray() const; bool isError() const; QString toString() const; qsreal toNumber() const; bool toBoolean() const; qsreal toInteger() const; qint32 toInt32() const; quint32 toUInt32() const; quint16 toUInt16() const; QVariant toVariant() const; QObject *toQObject() const; const QMetaObject *toQMetaObject() const; QScriptValue toObject() const; QDateTime toDateTime() const; QRegExp toRegExp() const; bool instanceOf(const QScriptValue &ctor) const; bool lessThan(const QScriptValue &other) const; bool equals(const QScriptValue &other) const; bool strictlyEquals(const QScriptValue &other) const; QScriptValue prototype() const; void setPrototype(const QScriptValue &prototype); QScriptValue property(const QString &name, const QFlags &mode = QScriptValue::ResolvePrototype) const; void setProperty(const QString &name, const QScriptValue &value, const QFlags &flags = QScriptValue::KeepExistingFlags); QScriptValue property(quint32 arrayIndex, const QFlags &mode = QScriptValue::ResolvePrototype) const; void setProperty(quint32 arrayIndex, const QScriptValue &value, const QFlags &flags = QScriptValue::KeepExistingFlags); QFlags propertyFlags(const QString &name, const QFlags &mode = QScriptValue::ResolvePrototype) const; QScriptValue call(const QScriptValue &thisObject = QScriptValue(), const QScriptValueList &args = QScriptValueList()); QScriptValue call(const QScriptValue &thisObject, const QScriptValue &arguments); QScriptValue construct(const QScriptValueList &args = QScriptValueList()); QScriptValue construct(const QScriptValue &arguments); }; %End %If (Qt_4_3_0 -) QFlags operator|(QScriptValue::ResolveFlag f1, QFlags f2); %End %If (Qt_4_3_0 -) QFlags operator|(QScriptValue::ResolveFlag f1, QScriptValue::ResolveFlag f2); %End %If (Qt_4_3_0 -) QFlags operator|(QScriptValue::PropertyFlag f1, QFlags f2); %End %If (Qt_4_3_0 -) QFlags operator|(QScriptValue::PropertyFlag f1, QScriptValue::PropertyFlag f2); %End