C++ API
The C++ API documentation is written for developers who develop the Qt Installer Framework. It describes the internal API, so there is no compatibility promise. Further, the documentation is a work in progress and therefore parts of it are missing while other parts might be out of date.
C++API文档是为开发Qt安装程序框架的开发人员编写的。它描述了内部API,因此没有兼容性承诺。此外,文档尚在编写中,因此部分内容缺失,而其他部分可能已过时。
To create customized installers, use the Scripting API, instead. For more information, see Customizing Installers.
若要创建自定义安装程序,请改用脚本API。有关详细信息,请参阅自定义安装程序。
Namespaces
命名空间
Namespace | Description |
---|---|
QInstaller | Contains classes to implement the core functionality of the Qt Installer Framework and the installer UI. 包含实现Qt安装程序框架和安装程序UI核心功能的类。 |
KDUpdater | Contains classes to automatically detect updates to applications, to retrieve them from external repositories, and to install them. KDUpdater classes are a fork of KDAB's general KDUpdater module. 包含用于自动检测应用程序更新、从外部存储库检索更新以及安装更新的类。KDUpdater类是KDAB通用KDUpdater模块的一个分支。 |
Lib7z | Contains classes to create and extract archives. 包含用于创建和提取存档的类。 |
QInstaller C++ Classes
QInstaller C++类
The base class for classes representing different archive files. It cannot be instantiated on its own but defines the API and provides common functionality when subclassed 表示不同存档文件的类的基类。它不能单独实例化,但定义了API,并在子类化时提供公共功能 | |
The base class of file related tasks 文件相关任务的基类 | |
Pure virtual base class for classes tracing starting and finishing of installer operations 用于跟踪安装程序操作开始和结束的类的纯虚拟基类 | |
Creates component alias objects from parsed alias source files, based on version and source priorities 根据版本和源优先级,从解析的别名源文件创建组件别名对象 | |
Describes a source for alias declarations 描述别名声明的来源 | |
Struct represents an entry in an archive file, which can be for example a file or a directory Struct表示存档文件中的条目,例如文件或目录 | |
Used to create archive objects based on the suffix of a given filename 用于根据给定文件名的后缀创建存档对象 | |
Label for displaying a pixmap that maintains its original aspect ratio when resized 用于显示调整大小时保持其原始纵横比的像素图的标签 | |
Handles binary information embedded into executables 处理嵌入到可执行文件中的二进制信息 | |
The default file engine for accessing resource collections and resource files 用于访问资源集合和资源文件的默认文件引擎 | |
Way to register resource collections and resource files 注册资源集合和资源文件的方法 | |
Describes the binary content appended to a file 描述附加到文件的二进制内容 | |
Pure virtual class that defines an interface for a type suited for storage with the GenericDataCache class 纯虚拟类,为适合使用GenericDataCache类存储的类型定义接口 | |
Represents the current component 表示当前组件 | |
Sets a decreasing sorting priority for child components 为子组件设置递减排序优先级 | |
Sets an increasing sorting order for child components 为子组件设置递增的排序顺序 | |
Represents an alias for single or multiple components 表示单个或多个组件的别名 | |
Holds a data model for visual representation of available components to install 保存数据模型,用于可视化表示要安装的可用组件 | |
Changes the checked state of components 更改组件的检查状态 | |
Support for sorting and filtering data passed between another model and a view 支持对在另一个模型和视图之间传递的数据进行排序和过滤 | |
Can be used to perform installer operations concurrently 可用于同时执行安装程序操作 | |
Prints trace output for starting of asynchronous operations 打印异步操作启动的跟踪输出 | |
RAII class to create a directory and delete it on destruction unless released RAII类创建一个目录,并在销毁时删除它,除非释放 | |
Basic access serialization for file paths 文件路径的基本访问序列化 | |
Locks a file path and releases it on destruction 锁定文件路径并在销毁时将其释放 | |
Represents an item in a file task object 表示文件任务对象中的项 | |
Represents the results of a file task 表示文件任务的结果 | |
Completes the installation wizard 完成安装向导 | |
Template class for a checksum based storage of items on disk 用于在磁盘上基于校验和存储项目的模板类 | |
Displays information about the product to install 显示有关要安装的产品的信息 | |
Represents an archive file handled with the LZMA software development kit 表示用LZMA软件开发工具包处理的存档文件 | |
Represents an archive file handled with libarchive archive and compression library 表示使用libarchive存档和压缩库处理的存档文件 | |
Interface for interacting with archives handled using the libarchive archive and compression library 用于与使用libarchive存档和压缩库处理的存档进行交互的界面 | |
Presents a license agreement to the end users for acceptance 向最终用户提交许可协议以供接受 | |
Methods for manipulating the application-wide verbosiveness and format of printed debug messages 操纵打印调试消息的应用程序范围内的措辞和格式的方法 | |
Modal dialog for informing the user or asking the user a question and receiving an answer 用于通知用户或向用户提问并接收答案的模态对话框 | |
Represents fetched metadata from a repository 表示从存储库中获取的元数据 | |
Class for a checksum based storage of Metadata objects on disk 用于在磁盘上基于校验和存储元数据对象的类 | |
Textual representation of an operation that can be instantiated and executed by the Qt Installer Framework Qt安装程序框架可以实例化和执行的操作的文本表示 | |
Prints trace output for starting of operations and automatically indicates finish on destruction 打印操作开始时的跟踪输出,并在销毁时自动指示完成 | |
The core functionality of the Qt Installer Framework Qt安装程序框架的核心功能 | |
The core functionality for non-interactive installations 非交互式安装的核心功能 | |
Displays information about the product to install 显示有关要安装的产品的信息 | |
Specifies a single package source 指定单个包源 | |
Shows progress information about the installation state 显示有关安装状态的进度信息 | |
Shows progress information about the installation state 显示有关安装状态的进度信息 | |
Informs end users that the installation can begin 通知最终用户可以开始安装 | |
Interface for wrapping a file as read only device 将文件包装为只读设备的接口 | |
Abstraction that groups together a number of resources 将许多资源组合在一起的抽象 | |
Abstraction that groups together a number of resource collections 将多个资源集合组合在一起的抽象 | |
Enables restarting the installer 允许重新启动安装程序 | |
Used to prepare and run the component scripts 用于准备和运行组件脚本 | |
Specifies the program group for the product in the Windows Start menu 在Windows“开始”菜单中指定产品的程序组 | |
Provides information about the operating system 提供有关操作系统的信息 | |
Specifies the target directory for the installation 指定安装的目标目录 |
KDUpdater C++ Classes
KDUpdater C++类
Implements a template-based generic factory 实现基于模板的通用工厂 | |
The base class for file downloaders used in KDUpdater KDUpdater中使用的文件下载器的基类 | |
Acts as a factory for KDUpdater::FileDownloader 充当KDUpdater::FileDownloader的工厂 | |
Fine-grained proxy selection 细粒度代理选择 | |
Used to download files over FTP, HTTP, or HTTPS 用于通过FTP、HTTP或HTTPS下载文件 | |
Used to copy files from the local file system 用于从本地文件系统复制文件 | |
Describes a single installed package in the application 描述应用程序中安装的单个软件包 | |
Access to information about packages installed on the application side 访问应用程序端安装的软件包信息 | |
Can be used to download resource files 可用于下载资源文件 | |
The base class for all tasks in KDUpdater KDUpdater中所有任务的基类 | |
Represents a single update 表示单个更新 | |
UpdaterFinder class finds updates applicable for installed packages UpdaterFinder类查找适用于已安装软件包的更新 | |
Abstract base class for update operations 更新操作的抽象基类 | |
Used to create update operations based on their name 用于根据其名称创建更新操作 |
Lib7z C++ Classes
Lib7z C++类
Provides a callback for archive extraction 为存档提取提供回调 | |
Displays the archiving process 显示归档过程 | |
Class for lib7z exceptions lib7z异常类 |
© 2021 The Qt Company Ltd. 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. The Qt Company, Qt and their 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.