QScxmlInvokableService Class
Die Klasse „QScxmlInvokableService“ ist die Basisklasse für Dienste, die von Zustandsmaschinen aufgerufen werden. Mehr...
| Header: | #include <QScxmlInvokableService> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Scxml) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
| qmake: | QT += scxml |
| Erbt von: | QObject |
Eigenschaften
- id : const QString
- name : const QString
- parentStateMachine : QScxmlStateMachine* const
Öffentliche Funktionen
| virtual QString | id() const = 0 |
| virtual QString | name() const = 0 |
| QScxmlStateMachine * | parentStateMachine() const |
| virtual void | postEvent(QScxmlEvent *event) = 0 |
| virtual bool | start() = 0 |
Detaillierte Beschreibung
Die Dienste werden von Zustandsmaschinen über den in der SCXML-Spezifikation – 6.4 <invoke> – beschriebenen Mechanismus aufgerufen. Diese Klasse repräsentiert eine tatsächliche Instanz eines aufgerufenen Dienstes.
Eigenschaftsdokumentation
[read-only] id : const QString
Diese Eigenschaft enthält die ID des aufrufbaren Dienstes.
Die ID wird durch das Attribut „ id “ des Elements „ <invoke> “ angegeben.
Zugriffsfunktionen:
| virtual QString | id() const = 0 |
[read-only] name : const QString
Diese Eigenschaft enthält den Namen des aufgerufenen Dienstes.
Zugriffsfunktionen:
| virtual QString | name() const = 0 |
[read-only] parentStateMachine : QScxmlStateMachine* const
Diese Eigenschaft enthält die SCXML-Zustandsmaschine, die den Dienst aufgerufen hat.
Zugriffsfunktionen:
| QScxmlStateMachine * | parentStateMachine() const |
Dokumentation zu den Member-Funktionen
[pure virtual] void QScxmlInvokableService::postEvent(QScxmlEvent *event)
Sendet eine „ event “-Anfrage an den Dienst.
[pure virtual] bool QScxmlInvokableService::start()
Startet den aufrufbaren Dienst. Gibt bei Erfolg „ true “ zurück, andernfalls „ false “, falls der Aufruf fehlschlägt.
© 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.