okteta
pointerscriptclass.cpp
Go to the documentation of this file.
33 mIterableProperties.append(qMakePair(s_type, QScriptValue::PropertyFlags(QScriptValue::Undeletable)));
35 mIterableProperties.append(qMakePair(s_type, QScriptValue::PropertyFlags(QScriptValue::Undeletable)));
42 QScriptValue PointerScriptClass::additionalProperty(const DataInformation* data, const QScriptString& name,
57 bool PointerScriptClass::queryAdditionalProperty(const DataInformation* data, const QScriptString& name,
68 bool PointerScriptClass::setAdditionalProperty(DataInformation* data, const QScriptString& name, uint id,
73 DataInformation* newType = ScriptValueConverter::convert(value, QLatin1String("(pointer value)"),
84 DataInformation* newTarget = ScriptValueConverter::convert(value, QLatin1String("(pointer value)"),
Interface that must be implemented by all datatypes.
Definition: datainformation.h:67
virtual bool queryAdditionalProperty(const DataInformation *data, const QScriptString &name, QScriptClass::QueryFlags *flags, uint *id)
Definition: pointerscriptclass.cpp:57
void setPointerTarget(DataInformation *target)
Set a new pointer target.
Definition: pointerdatainformation.h:89
PointerDataInformation * asPointer()
PointerScriptClass(QScriptEngine *engine, ScriptHandlerInfo *handlerInfo)
Definition: pointerscriptclass.cpp:29
virtual QScriptValue additionalProperty(const DataInformation *data, const QScriptString &name, uint id)
Definition: primitivescriptclass.cpp:111
virtual PrimitiveDataType type() const =0
virtual QScriptValue additionalProperty(const DataInformation *data, const QScriptString &name, uint id)
Definition: pointerscriptclass.cpp:42
DataInformation * pointerTarget() const
Definition: pointerdatainformation.h:84
virtual ~PointerScriptClass()
Definition: pointerscriptclass.cpp:38
bool setPointerType(DataInformation *type)
Set a new pointer target.
Definition: pointerdatainformation.cpp:145
virtual QScriptValue toScriptValue(QScriptEngine *engine, ScriptHandlerInfo *handlerInfo)
This method is virtual since DummyDataInformation has to override it.
Definition: datainformation.cpp:275
Definition: primitivescriptclass.h:29
QString standardTypeName(PrimitiveDataType type)
Definition: primitivedatatype.cpp:76
PropertyInfoList mIterableProperties
Contains all properties of this class, classes inheriting should add their own properties to this lis...
Definition: defaultscriptclass.h:82
PrimitiveDataInformation * pointerType() const
Definition: pointerdatainformation.h:96
Definition: scripthandlerinfo.h:39
virtual bool queryAdditionalProperty(const DataInformation *data, const QScriptString &name, QScriptClass::QueryFlags *flags, uint *id)
Definition: primitivescriptclass.cpp:84
DataInformation * convert(const QScriptValue &value, const QString &name, ScriptLogger *logger, DataInformation *parent)
If the value is one element.
Definition: scriptvalueconverter.cpp:36
virtual bool setAdditionalProperty(DataInformation *data, const QScriptString &name, uint id, const QScriptValue &value)
Definition: pointerscriptclass.cpp:68
virtual bool setAdditionalProperty(DataInformation *data, const QScriptString &name, uint id, const QScriptValue &value)
Definition: primitivescriptclass.cpp:169
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 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:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.