okteta
arrayscriptclass.cpp
Go to the documentation of this file.
36 mIterableProperties.append(qMakePair(s_length, QScriptValue::PropertyFlags(QScriptValue::Undeletable)));
40 mIterableProperties.append(qMakePair(s_type, QScriptValue::PropertyFlags(QScriptValue::Undeletable)));
43 mArrayPrototype.setProperty(QLatin1String("toString"), engine->newFunction(Array_proto_toString));
50 bool ArrayScriptClass::queryAdditionalProperty(const DataInformation* data, const QScriptString& name, QScriptClass::QueryFlags* flags, uint* id)
72 bool ArrayScriptClass::additionalPropertyFlags(const DataInformation* data, const QScriptString& name, uint id, QScriptValue::PropertyFlags* flags)
87 QScriptValue ArrayScriptClass::additionalProperty(const DataInformation* data, const QScriptString& name, uint id)
112 aData->logWarn() << "Using property 'childType' is deprecated, use the new name 'type' instead";
118 bool ArrayScriptClass::setAdditionalProperty(DataInformation* data, const QScriptString& name, uint, const QScriptValue& value)
145 aData->logWarn() << "Using property 'childType' is deprecated, use the new name 'type' instead";
Interface that must be implemented by all datatypes.
Definition: datainformation.h:67
QScriptValue childType() const
Definition: arraydatainformation.cpp:116
bool setArrayLength(uint newLength)
Definition: arraydatainformation.cpp:68
static QScriptValue Array_proto_toString(QScriptContext *ctx, QScriptEngine *eng)
Definition: arrayscriptclass.cpp:164
virtual unsigned int childCount() const =0
Definition: datainformation.h:278
ArrayScriptClass(QScriptEngine *engine, ScriptHandlerInfo *handlerInfo)
Definition: arrayscriptclass.cpp:32
Holds a number that was converted either from a QScriptValue or a QString.
Definition: parserutils.h:84
ArrayDataInformation * asArray()
void setLengthFunction(QScriptValue newFunc)
Definition: arraydatainformation.h:178
Definition: arraydatainformation.h:36
void setArrayType(DataInformation *newChildtype)
Sets the new array type.
Definition: arraydatainformation.cpp:83
ParsedNumber< uint > uintFromScriptValue(const QScriptValue &val)
Definition: parserutils.cpp:103
static DataInformation * toDataInformation(const QScriptValue &val)
Convert a QScriptValue to DataInformation than qscriptvalue_cast, since we know exactly what to expec...
Definition: defaultscriptclass.cpp:75
virtual QScriptValue additionalProperty(const DataInformation *data, const QScriptString &name, uint id)
Definition: arrayscriptclass.cpp:87
virtual bool setAdditionalProperty(DataInformation *data, const QScriptString &name, uint id, const QScriptValue &value)
Definition: arrayscriptclass.cpp:118
PropertyInfoList mIterableProperties
Contains all properties of this class, classes inheriting should add their own properties to this lis...
Definition: defaultscriptclass.h:82
virtual QScriptValue prototype() const
Definition: arrayscriptclass.cpp:159
Definition: scripthandlerinfo.h:39
DataInformation * convert(const QScriptValue &value, const QString &name, ScriptLogger *logger, DataInformation *parent)
If the value is one element.
Definition: scriptvalueconverter.cpp:36
virtual bool queryAdditionalProperty(const DataInformation *data, const QScriptString &name, QScriptClass::QueryFlags *flags, uint *id)
Definition: arrayscriptclass.cpp:50
Definition: defaultscriptclass.h:36
virtual bool additionalPropertyFlags(const DataInformation *data, const QScriptString &name, uint, QScriptValue::PropertyFlags *flags)
Definition: arrayscriptclass.cpp:72
QScriptValue childToScriptValue(uint index, QScriptEngine *engine, ScriptHandlerInfo *handlerInfo) const
Definition: arraydatainformation.cpp:198
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.