QScxmlInvokableService Class
La clase `QScxmlInvokableService` es la clase base para los servicios a los que se accede desde máquinas de estados. Más información...
| Encabezado: | #include <QScxmlInvokableService> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Scxml) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
| qmake: | QT += scxml |
| Heredado de: | QObject |
Propiedades
- id : const QString
- name : const QString
- parentStateMachine : QScxmlStateMachine* const
Funciones públicas
| virtual QString | id() const = 0 |
| virtual QString | name() const = 0 |
| QScxmlStateMachine * | parentStateMachine() const |
| virtual void | postEvent(QScxmlEvent *event) = 0 |
| virtual bool | start() = 0 |
Descripción detallada
Los servicios se invocan desde máquinas de estados mediante el mecanismo descrito en la especificación SCXML, apartado 6.4 <invoke>. Esta clase representa una instancia real de un servicio invocado.
Documentación de propiedades
[read-only] id : const QString
Esta propiedad contiene el ID del servicio invocable.
El ID se especifica mediante el atributo « id » del elemento « <invoke> ».
Funciones de acceso:
| virtual QString | id() const = 0 |
[read-only] name : const QString
Esta propiedad contiene el nombre del servicio al que se está llamando.
Funciones de acceso:
| virtual QString | name() const = 0 |
[read-only] parentStateMachine : QScxmlStateMachine* const
Esta propiedad contiene la máquina de estados SCXML que invocó el servicio.
Funciones de acceso:
| QScxmlStateMachine * | parentStateMachine() const |
Documentación de las funciones de miembro
[pure virtual] void QScxmlInvokableService::postEvent(QScxmlEvent *event)
Envía un « event » al servicio.
[pure virtual] bool QScxmlInvokableService::start()
Inicia el servicio invocable. Devuelve « true » si se realiza correctamente, o « false » si la invocación falla.
© 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.