QScxmlInvokableService Class
La classe `QScxmlInvokableService` est la classe de base des services appelés à partir de machines à états. En savoir plus...
| En-tête : | #include <QScxmlInvokableService> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Scxml) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
| qmake : | QT += scxml |
| Hérite de : | QObject |
Propriétés
- id : const QString
- name : const QString
- parentStateMachine : QScxmlStateMachine* const
Fonctions publiques
| virtual QString | id() const = 0 |
| virtual QString | name() const = 0 |
| QScxmlStateMachine * | parentStateMachine() const |
| virtual void | postEvent(QScxmlEvent *event) = 0 |
| virtual bool | start() = 0 |
Description détaillée
Les services sont appelés à partir de machines à états via le mécanisme décrit dans la spécification SCXML - 6.4 <invoke>. Cette classe représente une instance réelle d'un service invoqué.
Documentation des propriétés
[read-only] id : const QString
Cette propriété contient l'identifiant du service invoquable.
Cet identifiant est spécifié par l'attribut « id » de l'élément « <invoke> ».
Fonctions d'accès :
| virtual QString | id() const = 0 |
[read-only] name : const QString
Cette propriété contient le nom du service appelé.
Fonctions d'accès :
| virtual QString | name() const = 0 |
[read-only] parentStateMachine : QScxmlStateMachine* const
Cette propriété contient la machine à états SCXML qui a appelé le service.
Fonctions d'accès :
| QScxmlStateMachine * | parentStateMachine() const |
Documentation des fonctions membres
[pure virtual] void QScxmlInvokableService::postEvent(QScxmlEvent *event)
Envoie une requête « event » au service.
[pure virtual] bool QScxmlInvokableService::start()
Lance le service invoquable. Renvoie « true » en cas de réussite, ou « false » si l'invocation échoue.
© 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.