The QScxmlInvokableServiceFactory class creates invokable service instances. More...
Header: | #include <QScxmlInvokableServiceFactory> |
qmake: | QT += scxml |
Since: | Qt 5.8 |
Inherits: | QObject |
Inherited By: |
QScxmlDynamicScxmlServiceFactory and QScxmlStaticScxmlServiceFactory |
QScxmlInvokableServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QVector<QScxmlExecutableContent::StringId> &names, const QVector<QScxmlExecutableContent::ParameterInfo> ¶meters, QObject *parent = nullptr) | |
virtual QScxmlInvokableService * | invoke(QScxmlStateMachine *parentStateMachine) = 0 |
const QScxmlExecutableContent::InvokeInfo & | invokeInfo() const |
const QVector<QScxmlExecutableContent::StringId> & | names() const |
const QVector<QScxmlExecutableContent::ParameterInfo> & | parameters() const |
QScxmlInvokableServiceFactory(QScxmlInvokableServiceFactoryPrivate &dd, QObject *parent) |
The QScxmlInvokableServiceFactory class creates invokable service instances.
Each service instance represents an <invoke>
element in the SCXML document. Each time the service is actually invoked, a new instance of QScxmlInvokableService
is created.
This property holds the QScxmlExecutableContent::InvokeInfo passed to the constructor.
Access functions:
const QScxmlExecutableContent::InvokeInfo & | invokeInfo() const |
This property holds the names passed to the constructor.
Access functions:
const QVector<QScxmlExecutableContent::StringId> & | names() const |
This property holds the parameters passed to the constructor.
Access functions:
const QVector<QScxmlExecutableContent::ParameterInfo> & | parameters() const |
Default constructs an instance of QScxmlInvokableServiceFactory.
[protected]
QScxmlInvokableServiceFactory::QScxmlInvokableServiceFactory(QScxmlInvokableServiceFactoryPrivate &dd, QObject *parent)Default constructs an instance of QScxmlInvokableServiceFactory.
[pure virtual]
QScxmlInvokableService *QScxmlInvokableServiceFactory::invoke(QScxmlStateMachine *parentStateMachine)Invokes the service with the parameters given in the constructor, passing parentStateMachine as the parent. Returns the new invokable service.