QScxmlInvokableService 类
The QScxmlInvokableService class is the base class for services called from state machines. More...
| 头文件 | #include <QScxmlInvokableService> |
| CMake | find_package(Qt6 REQUIRED COMPONENTS Scxml) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
| qmake | QT += scxml |
| 继承了 | QObject |
属性
- id : const QString
- name : const QString
- parentStateMachine : QScxmlStateMachine* const
公共函数
| 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.
属性文档
[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.
访问函数
| virtual QString | id() const = 0 |
[read-only] name : const QString
This property holds the name of the service being invoked.
访问函数
| virtual QString | name() const = 0 |
[read-only] 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.
[纯虚函数] bool QScxmlInvokableService::start()
启动可调用服务。如果成功返回 true,如果调用失败则返回 false。
© 2024 Qt公司版权所有。此处包含的文档贡献为各自所有者的版权。此处提供的文档根据自由软件基金会发布的GNU自由文档许可证第1.3版的条款获得许可。Qt及其相关标志是芬兰及其在全球的Qt公司的商标。所有其他商标均属于其各自所有者。