IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QScxmlInvokableService Class

The QScxmlInvokableService class is the base class for services called from state machines.

This class was introduced in Qt 5.8.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QScxmlInvokableService Class

  • Header: QScxmlInvokableService

  • Since: Qt 5.8

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Scxml)

    target_link_libraries(mytarget PRIVATE Qt6::Scxml)

  • qmake: QT += scxml

  • Inherits: QObject

  • Inherited By:

Detailed Description

The services are called from state machines via the mechanism described in SCXML Specification - 6.4 <invoke>. This class represents an actual instance of an invoked service.

Property Documentation

 

[read-only] id : const QString

This property holds the ID of the invokable service.

The ID is specified by the id attribute of the <invoke> element.

Access functions:

  • virtual id() const = 0

[read-only] name : const QString

This property holds the name of the service being invoked.

Access functions:

  • virtual name() const = 0

[read-only] parentStateMachine : QScxmlStateMachine* const

This property holds the SCXML state machine that invoked the service.

Access functions:

  • *parentStateMachine() const

Member Function Documentation

 

[pure virtual] void QScxmlInvokableService::postEvent(QScxmlEvent *event)

Sends an event to the service.

[pure virtual] bool QScxmlInvokableService::start()

Starts the invokable service. Returns true on success, or false if the invocation fails.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+