QScxmlInvokableService Class
The QScxmlInvokableService class is the base class for services called from state machines. 更多...
头文件: | #include <QScxmlInvokableService> |
qmake: | QT += scxml |
开始支持版本: | Qt 5.8 |
基类: | QObject |
属性
- id : const QString
- name : const QString
- parentStateMachine : QScxmlStateMachine * const
- 1 个属性继承自 QObject
公有函数
QScxmlInvokableService(QScxmlStateMachine *parentStateMachine, QScxmlInvokableServiceFactory *parent) | |
virtual QString | id() const = 0 |
virtual QString | name() const = 0 |
QScxmlStateMachine * | parentStateMachine() const |
virtual void | postEvent(QScxmlEvent *event) = 0 |
virtual bool | start() = 0 |
- 32 个公有函数继承自 QObject
其他继承的成员
- 1 个公有槽函数继承自 QObject
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
The QScxmlInvokableService class is the base class for services called from state machines.
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
attribute of the <invoke>
element.
访问函数:
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 |
成员函数
QScxmlInvokableService::QScxmlInvokableService(QScxmlStateMachine *parentStateMachine, QScxmlInvokableServiceFactory *parent)
Default constructs an instance of QScxmlInvokableService.
[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.