En esta página

QScxmlInvokableService Class

La clase QScxmlInvokableService es la clase base para los servicios llamados desde máquinas de estado. Más...

Cabecera: #include <QScxmlInvokableService>
CMake: find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmake: QT += scxml
Hereda: QObject

Propiedades

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 estado mediante el mecanismo descrito en Especificación SCXML - 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 que se está invocando.

Funciones de acceso:

virtual QString name() const = 0

[read-only] parentStateMachine : QScxmlStateMachine* const

Esta propiedad contiene la máquina de estado SCXML que invocó el servicio.

Funciones de acceso:

QScxmlStateMachine *parentStateMachine() const

Documentación de funciones 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 en caso de éxito, 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.