ExtensionSystem::PluginDependency Struct
struct ExtensionSystem::PluginDependencyPluginDependency 类包含插件依赖项的 ID 及其所需的兼容版本号。更多内容...
| Header: | #include <extensionsystem/pluginspec.h> |
公共类型
| enum | Type { Required, Optional, Test } |
公共变量
详细说明
这反映了插件元数据中依赖项对象的数据。ID 和版本号用于解析该依赖项,即根据给定的 ID 和插件compatibility version <= dependency version <= plugin version 进行搜索。
有关插件依赖关系和版本匹配的更多信息,请参阅ExtensionSystem::IPlugin 。
成员类型文档
enum PluginDependency::Type
该依赖项是必需的还是可选的。
| 常量 | 值 | 描述 |
|---|---|---|
ExtensionSystem::PluginDependency::Required | 0 | 该依赖必须存在。 |
ExtensionSystem::PluginDependency::Optional | 1 | 该依赖项并非必需。您需要确保插件在未安装该依赖项的情况下仍能加载,因此,例如,您可能不会链接到该依赖项的库。 |
ExtensionSystem::PluginDependency::Test | 2 | 运行插件的测试时,必须强制加载该依赖项。 |
成员变量文档
QString PluginDependency::id
插件的字符串标识符。
ExtensionSystem::PluginDependency::Type PluginDependency::type
用于指定该依赖项是必需的还是可选的。
另请参阅 ExtensionSystem::PluginDependency::Type 。
QString PluginDependency::version
插件必须与该版本字符串匹配,才能满足此依赖关系。
Copyright © The Qt Company Ltd. and other contributors. 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.