QScxmlInvokableService Class

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

頭: #include <QScxmlInvokableService>
qmake: QT += scxml
Since: Qt 5.8
繼承: QObject

該類在 Qt 5.8 引入。

特性

公共函數

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

詳細描述

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.

特性文檔編製

id : const QString

This property holds the ID of the invokable service.

The ID is specified by the id 屬性在 <invoke> 元素。

訪問函數:

virtual QString id () const = 0

name : const QString

This property holds the name of the service being invoked.

訪問函數:

virtual QString name () const = 0

parentStateMachine : QScxmlStateMachine * const

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

訪問函數:

QScxmlStateMachine * parentStateMachine () const

成員函數文檔編製

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

Sends an event to the service.

[pure virtual] bool QScxmlInvokableService:: start ()

Starts the invokable service. Returns true 當成功時,或 false if the invocation fails.