QScxmlNullDataModel Class
The QScxmlNullDataModel class is the null data model for a Qt SCXML stateMachine More...
Header: | #include <QScxmlNullDataModel> |
qmake: | QT += scxml |
Since: | Qt 5.7 |
Inherits: | QScxmlDataModel |
Public Functions
QScxmlNullDataModel(QObject *parent = nullptr) |
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 QScxmlNullDataModel class is the null data model for a Qt SCXML stateMachine
This class implements the null data model as described in the SCXML Specification - B.1 The Null Data Model. Using the value "null"
for the datamodel attribute of the <scxml>
element means that there is no underlying data model.
See also QScxmlStateMachine and QScxmlDataModel.
Member Function Documentation
QScxmlNullDataModel::QScxmlNullDataModel(QObject *parent = nullptr)
Creates a new Qt SCXML data model, with the parent object parent.
[virtual]
bool QScxmlNullDataModel::hasScxmlProperty(const QString &name) const
Reimplemented from QScxmlDataModel::hasScxmlProperty().
Returns false
, because the null data model does not support properties.
[virtual]
QVariant QScxmlNullDataModel::scxmlProperty(const QString &name) const
Reimplemented from QScxmlDataModel::scxmlProperty().
Returns an invalid variant, because the null data model does not support properties.
See also setScxmlProperty().
[virtual]
void QScxmlNullDataModel::setScxmlEvent(const QScxmlEvent &event)
Reimplemented from QScxmlDataModel::setScxmlEvent().
[virtual]
bool QScxmlNullDataModel::setScxmlProperty(const QString &name, const QVariant &value, const QString &context)
Reimplemented from QScxmlDataModel::setScxmlProperty().
Returns false
, because the null data model does not support properties.
See also scxmlProperty().
[virtual]
bool QScxmlNullDataModel::setup(const QVariantMap &initialDataValues)
Reimplemented from QScxmlDataModel::setup().