QScxmlInvokableServiceFactory Class

The QScxmlInvokableServiceFactory class creates invokable service instances. 更多...

头文件: #include <QScxmlInvokableServiceFactory>
qmake: QT += scxml
开始支持版本: Qt 5.8
基类: QObject
派生类:

QScxmlDynamicScxmlServiceFactory and QScxmlStaticScxmlServiceFactory

属性

  • invokeInfo : const QScxmlExecutableContent::InvokeInfo
  • names : const QVector<QScxmlExecutableContent::StringId>
  • parameters : const QVector<QScxmlExecutableContent::ParameterInfo>

公有函数

QScxmlInvokableServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QVector<QScxmlExecutableContent::StringId> &names, const QVector<QScxmlExecutableContent::ParameterInfo> &parameters, 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
  • 32 个公有函数继承自 QObject

受保护的函数

QScxmlInvokableServiceFactory(QScxmlInvokableServiceFactoryPrivate &dd, QObject *parent)
  • 9 个受保护的函数继承自 QObject

其他继承的成员

  • 1 个公有槽函数继承自 QObject
  • 2 个信号继承自 QObject
  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

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.

属性

invokeInfo : const QScxmlExecutableContent::InvokeInfo

This property holds the QScxmlExecutableContent::InvokeInfo passed to the constructor.

访问函数:

const QScxmlExecutableContent::InvokeInfo &invokeInfo() const

names : const QVector<QScxmlExecutableContent::StringId>

This property holds the names passed to the constructor.

访问函数:

const QVector<QScxmlExecutableContent::StringId> &names() const

parameters : const QVector<QScxmlExecutableContent::ParameterInfo>

This property holds the parameters passed to the constructor.

访问函数:

const QVector<QScxmlExecutableContent::ParameterInfo> &parameters() const

成员函数

QScxmlInvokableServiceFactory::QScxmlInvokableServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QVector<QScxmlExecutableContent::StringId> &names, const QVector<QScxmlExecutableContent::ParameterInfo> &parameters, QObject *parent = nullptr)

Default constructs an instance of QScxmlInvokableServiceFactory.

[protected] QScxmlInvokableServiceFactory::QScxmlInvokableServiceFactory(QScxmlInvokableServiceFactoryPrivate &dd, QObject *parent)

Copy constructor.

[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.