okteta
bitfieldscriptclass.cpp
Go to the documentation of this file.
31 mIterableProperties.append(qMakePair(s_width, QScriptValue::PropertyFlags(QScriptValue::Undeletable)));
38 QScriptValue BitfieldScriptClass::additionalProperty(const DataInformation* data, const QScriptString& name, uint id)
52 bool BitfieldScriptClass::queryAdditionalProperty(const DataInformation* data, const QScriptString& name, QScriptClass::QueryFlags* flags, uint* id)
62 bool BitfieldScriptClass::setAdditionalProperty(DataInformation* data, const QScriptString& name, uint id, const QScriptValue& value)
68 engine()->currentContext()->throwError(QScriptContext::TypeError, QLatin1String("bitfield.width must be an integer!"));
Interface that must be implemented by all datatypes.
Definition: datainformation.h:67
virtual bool setAdditionalProperty(DataInformation *data, const QScriptString &name, uint id, const QScriptValue &value)
Definition: bitfieldscriptclass.cpp:62
BitCount32 width() const
Definition: abstractbitfielddatainformation.h:86
virtual bool queryAdditionalProperty(const DataInformation *data, const QScriptString &name, QScriptClass::QueryFlags *flags, uint *id)
Definition: bitfieldscriptclass.cpp:52
AbstractBitfieldDataInformation * asBitfield()
virtual QScriptValue additionalProperty(const DataInformation *data, const QScriptString &name, uint id)
Definition: primitivescriptclass.cpp:111
virtual ~BitfieldScriptClass()
Definition: bitfieldscriptclass.cpp:34
virtual QScriptValue additionalProperty(const DataInformation *data, const QScriptString &name, uint id)
Definition: bitfieldscriptclass.cpp:38
Definition: primitivescriptclass.h:29
PropertyInfoList mIterableProperties
Contains all properties of this class, classes inheriting should add their own properties to this lis...
Definition: defaultscriptclass.h:82
Definition: scripthandlerinfo.h:39
virtual bool queryAdditionalProperty(const DataInformation *data, const QScriptString &name, QScriptClass::QueryFlags *flags, uint *id)
Definition: primitivescriptclass.cpp:84
BitfieldScriptClass(QScriptEngine *engine, ScriptHandlerInfo *handlerInfo)
Definition: bitfieldscriptclass.cpp:27
virtual bool setAdditionalProperty(DataInformation *data, const QScriptString &name, uint id, const QScriptValue &value)
Definition: primitivescriptclass.cpp:169
void setWidth(BitCount32 newWidth)
Definition: abstractbitfielddatainformation.h:91
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.