Sur cette page

QScxmlInvokableServiceFactory Class

La classe QScxmlInvokableServiceFactory crée des instances de services invocables. Plus d'informations...

En-tête : #include <QScxmlInvokableServiceFactory>
CMake : find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmake : QT += scxml
Hérite : QObject
Héritée par :

QScxmlDynamicScxmlServiceFactory et QScxmlStaticScxmlServiceFactory

Propriétés

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

Fonctions publiques

virtual QScxmlInvokableService *invoke(QScxmlStateMachine *parentStateMachine) = 0
const QScxmlExecutableContent::InvokeInfo &invokeInfo() const
const QList<QScxmlExecutableContent::StringId> &names() const
const QList<QScxmlExecutableContent::ParameterInfo> &parameters() const

Description détaillée

Chaque instance de service représente un élément <invoke> dans le document SCXML. Chaque fois que le service est invoqué, une nouvelle instance de QScxmlInvokableService est créée.

Documentation sur les propriétés

[read-only] invokeInfo : const QScxmlExecutableContent::InvokeInfo

Cette propriété contient l'adresse QScxmlExecutableContent::InvokeInfo transmise au constructeur.

Fonctions d'accès :

const QScxmlExecutableContent::InvokeInfo &invokeInfo() const

[read-only] names : const QList<QScxmlExecutableContent::StringId>

Cette propriété contient les noms transmis au constructeur.

Fonctions d'accès :

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

[read-only] parameters : const QList<QScxmlExecutableContent::ParameterInfo>

Cette propriété contient les paramètres passés au constructeur.

Fonctions d'accès :

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

Documentation des fonctions membres

[pure virtual] QScxmlInvokableService *QScxmlInvokableServiceFactory::invoke(QScxmlStateMachine *parentStateMachine)

Invoque le service avec les paramètres donnés dans le constructeur, en passant parentStateMachine comme parent. Retourne le nouveau service invocable.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.