En esta página

QScxmlInvokableServiceFactory Class

La clase QScxmlInvokableServiceFactory crea instancias de servicios invocables. Más...

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

QScxmlDynamicScxmlServiceFactory y QScxmlStaticScxmlServiceFactory

Propiedades

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

Funciones públicas

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

Descripción detallada

Cada instancia de servicio representa un elemento <invoke> en el documento SCXML. Cada vez que se invoca el servicio, se crea una nueva instancia de QScxmlInvokableService.

Documentación de propiedades

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

Esta propiedad contiene el QScxmlExecutableContent::InvokeInfo pasado al constructor.

Funciones de acceso:

const QScxmlExecutableContent::InvokeInfo &invokeInfo() const

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

Esta propiedad contiene los nombres pasados al constructor.

Funciones de acceso:

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

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

Esta propiedad contiene los parámetros pasados al constructor.

Funciones de acceso:

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

Documentación de las funciones miembro

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

Invoca el servicio con los parámetros dados en el constructor, pasando parentStateMachine como padre. Devuelve el nuevo servicio 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.