QScxmlInvokableServiceFactory Class | Qt SCXML 5.9

Qt 5.9 | Qt SCXML | C++ Classes | QScxmlInvokableServiceFactory

Qt 5.9.4 Reference Documentation

# QScxmlInvokableServiceFactory Class

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

- List of all members, including inherited members

## Properties

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

- 1 property inherited from QObject

## Public Functions

| 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 public functions inherited from QObject

## Protected Functions

| QScxmlInvokableServiceFactory(QScxmlInvokableServiceFactoryPrivate &dd, QObject *parent)

- 9 protected functions inherited from QObject

### Additional Inherited Members

- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 2 protected variables inherited from QObject

## Detailed Description

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.

## Property Documentation

### invokeInfo : const QScxmlExecutableContent::InvokeInfo

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

Access functions:

const QScxmlExecutableContent::InvokeInfo & | invokeInfo() const

### names : const QVector<QScxmlExecutableContent::StringId>

This property holds the names passed to the constructor.

Access functions:

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

### parameters : const QVector<QScxmlExecutableContent::ParameterInfo>

This property holds the parameters passed to the constructor.

Access functions:

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

## Member Function Documentation

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