QScxmlInvokableServiceFactory Class

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

頭: #include <QScxmlInvokableServiceFactory>
qmake: QT += scxml
Since: Qt 5.8
繼承: QObject
繼承者:

QScxmlDynamicScxmlServiceFactory and QScxmlStaticScxmlServiceFactory

該類在 Qt 5.8 引入。

特性

  • invokeInfo : const QScxmlExecutableContent::InvokeInfo
  • 名稱 : const QVector<QScxmlExecutableContent::StringId>
  • 參數 : const QVector<QScxmlExecutableContent::ParameterInfo>

公共函數

virtual QScxmlInvokableService * invoke (QScxmlStateMachine * parentStateMachine ) = 0
const QScxmlExecutableContent::InvokeInfo & invokeInfo () const
const QVector<QScxmlExecutableContent::StringId> & 名稱 () const
const QVector<QScxmlExecutableContent::ParameterInfo> & 參數 () const

詳細描述

Each service instance represents an <invoke> element in the SCXML document. Each time the service is actually invoked, a new instance of QScxmlInvokableService 被創建。

特性文檔編製

invokeInfo : const QScxmlExecutableContent::InvokeInfo

此特性保持 QScxmlExecutableContent::InvokeInfo passed to the constructor.

訪問函數:

const QScxmlExecutableContent::InvokeInfo & invokeInfo () const

名稱 : const QVector < QScxmlExecutableContent::StringId >

This property holds the names passed to the constructor.

訪問函數:

const QVector<QScxmlExecutableContent::StringId> & 名稱 () const

參數 : const QVector < QScxmlExecutableContent::ParameterInfo >

This property holds the parameters passed to the constructor.

訪問函數:

const QVector<QScxmlExecutableContent::ParameterInfo> & 參數 () const

成員函數文檔編製

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