QScxmlEcmaScriptDataModel Class
The QScxmlEcmaScriptDataModel class is the ECMAScript data model for a Qt SCXML state machine. More...
Header: | #include <QScxmlEcmaScriptDataModel> |
qmake: | QT += scxml |
Since: | Qt 5.7 |
Inherits: | QScxmlDataModel |
Public Functions
QScxmlEcmaScriptDataModel(QObject *parent = nullptr) | |
QJSEngine * | engine() const |
void | setEngine(QJSEngine *engine) |
Reimplemented Public Functions
virtual bool | hasScxmlProperty(const QString &name) const |
virtual QVariant | scxmlProperty(const QString &name) const |
virtual void | setScxmlEvent(const QScxmlEvent &event) |
virtual bool | setScxmlProperty(const QString &name, const QVariant &value, const QString &context) |
virtual bool | setup(const QVariantMap &initialDataValues) |
- 7 public functions inherited from QScxmlDataModel
- 31 public functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QScxmlDataModel
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 signal inherited from QScxmlDataModel
- 2 signals inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 9 protected functions inherited from QObject
- 2 protected variables inherited from QObject
Detailed Description
The QScxmlEcmaScriptDataModel class is the ECMAScript data model for a Qt SCXML state machine.
This class implements the ECMAScript data model as described in SCXML Specification - B.2 The ECMAScript Data Model. It can be subclassed to perform custom initialization.
See also QScxmlStateMachine and QScxmlDataModel.
Member Function Documentation
QScxmlEcmaScriptDataModel::QScxmlEcmaScriptDataModel(QObject *parent = nullptr)
Creates a new ECMAScript data model, with the parent object parent.
QJSEngine *QScxmlEcmaScriptDataModel::engine() const
Returns the JavaScript engine used by this data model.
See also setEngine().
[virtual]
bool QScxmlEcmaScriptDataModel::hasScxmlProperty(const QString &name) const
Reimplemented from QScxmlDataModel::hasScxmlProperty().
[virtual]
QVariant QScxmlEcmaScriptDataModel::scxmlProperty(const QString &name) const
Reimplemented from QScxmlDataModel::scxmlProperty().
See also setScxmlProperty().
void QScxmlEcmaScriptDataModel::setEngine(QJSEngine *engine)
Sets the JavaScript engine used by this data model to engine.
See also engine().
[virtual]
void QScxmlEcmaScriptDataModel::setScxmlEvent(const QScxmlEvent &event)
Reimplemented from QScxmlDataModel::setScxmlEvent().
[virtual]
bool QScxmlEcmaScriptDataModel::setScxmlProperty(const QString &name, const QVariant &value, const QString &context)
Reimplemented from QScxmlDataModel::setScxmlProperty().
See also scxmlProperty().
[virtual]
bool QScxmlEcmaScriptDataModel::setup(const QVariantMap &initialDataValues)
Reimplemented from QScxmlDataModel::setup().