安装节点服务 定义了在 AuboScope 中定义和添加安装节点及对应界面(用户界面基于 Qt)所需的 API。
更多...
#include <installation_node_service.h>
|
| virtual | ~InstallationNodeService ()=default |
| virtual std::string | getTitle ()=0 |
| virtual std::string | getIcon ()=0 |
| virtual void | configureContribution (InstallationContributionConfigurationPtr configuration)=0 |
| | 此方法在服务注册后调用一次。修改 configuration 参数来配置您的贡献。 配置对象将已经具有匹配大多数用例的默认属性值。
|
| virtual InstallationNodeViewPtr | createView (ViewApiProviderPtr api_provider)=0 |
| | 创建一个新的视图实例,实现安装节点画面的 UI。在加载或创建新安装时调用一次。
|
| virtual InstallationNodeContributionPtr | createInstallationNode (InstallationApiProviderPtr api_provider, InstallationNodeViewPtr view, DataModelPtr model, InstallationCreationContextPtr context)=0 |
安装节点服务 定义了在 AuboScope 中定义和添加安装节点及对应界面(用户界面基于 Qt)所需的 API。
在文件 installation_node_service.h 第 28 行定义.
◆ ~InstallationNodeService()
| virtual arcs::aubo_scope::InstallationNodeService::~InstallationNodeService |
( |
| ) |
|
|
virtualdefault |
◆ configureContribution()
| virtual void arcs::aubo_scope::InstallationNodeService::configureContribution |
( |
InstallationContributionConfigurationPtr | configuration | ) |
|
|
pure virtual |
此方法在服务注册后调用一次。修改 configuration 参数来配置您的贡献。 配置对象将已经具有匹配大多数用例的默认属性值。
ContributionConfiguration 对象的值将在方法调用后立即读取一次。 稍后更改值将不会产生任何效果,因此不要存储对配置对象的引用。
如果默认值合适,请将此方法留空。
- 参数
-
| configuration | 具有默认值的可修改贡献配置 |
◆ createInstallationNode()
| virtual InstallationNodeContributionPtr arcs::aubo_scope::InstallationNodeService::createInstallationNode |
( |
InstallationApiProviderPtr | api_provider, |
|
|
InstallationNodeViewPtr | view, |
|
|
DataModelPtr | model, |
|
|
InstallationCreationContextPtr | context ) |
|
pure virtual |
创建一个新的安装节点实例。
返回的节点必须使用提供的数据模型对象来检索和存储其中包含的数据。 加载现有安装时,将忽略安装节点构造函数对提供的数据模型所做的所有修改。 数据模型对象在同一 AuboCap 贡献的所有安装节点之间共享。
- 参数
-
| api_provider | 提供对 AuboScope 中与安装节点相关的功能和服务访问 |
| view | 由 createView 创建的视图 |
| model | 新安装节点实例的所有配置数据存储和检索的数据模型对象 |
| context | 创建此节点的上下文 |
- 返回
- 新构建的安装节点贡献实例
◆ createView()
| virtual InstallationNodeViewPtr arcs::aubo_scope::InstallationNodeService::createView |
( |
ViewApiProviderPtr | api_provider | ) |
|
|
pure virtual |
创建一个新的视图实例,实现安装节点画面的 UI。在加载或创建新安装时调用一次。
- 参数
-
| api_provider | 提供对 AuboScope 中与用户界面和终端用户交互相关的 功能和服务访问 |
- 返回
- 视图
◆ getIcon()
| virtual std::string arcs::aubo_scope::InstallationNodeService::getIcon |
( |
| ) |
|
|
pure virtual |
◆ getTitle()
| virtual std::string arcs::aubo_scope::InstallationNodeService::getTitle |
( |
| ) |
|
|
pure virtual |
- 参数
-
| locale | AuboScope 的当前语言环境,可用于支持多种语言的标题 |
- 返回
- 在安装标签页左侧导航中显示的文本以及对应安装节点画面的标题。 在启动时调用一次。
该类的文档由以下文件生成: