In questa pagina

QScxmlInvokableService Class

La classe QScxmlInvokableService è la classe base per i servizi richiamati dalle macchine a stati. Per saperne di più...

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

Proprietà

Funzioni pubbliche

virtual QString id() const = 0
virtual QString name() const = 0
QScxmlStateMachine *parentStateMachine() const
virtual void postEvent(QScxmlEvent *event) = 0
virtual bool start() = 0

Descrizione dettagliata

I servizi vengono richiamati dalle macchine a stati tramite il meccanismo descritto nella Specifica SCXML - 6.4 <invoke>. Questa classe rappresenta un'istanza effettiva di un servizio richiamato.

Documentazione delle proprietà

[read-only] id : const QString

Questa proprietà contiene l'ID del servizio invocabile.

L'ID è specificato dall'attributo ` id ` dell'elemento ` <invoke> `.

Funzioni di accesso:

virtual QString id() const = 0

[read-only] name : const QString

Questa proprietà contiene il nome del servizio che viene richiamato.

Funzioni di accesso:

virtual QString name() const = 0

[read-only] parentStateMachine : QScxmlStateMachine* const

Questa proprietà contiene la macchina a stati SCXML che ha richiamato il servizio.

Funzioni di accesso:

QScxmlStateMachine *parentStateMachine() const

Documentazione delle funzioni membro

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

Invia un’ event e al servizio.

[pure virtual] bool QScxmlInvokableService::start()

Avvia il servizio invocabile. Restituisce ` true ` in caso di esito positivo, oppure ` false ` se l'invocazione fallisce.

© 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.