tpSystemApi类
Utils
2025-07-05
介绍
系统桌面级API功能接口类
基础信息
头文件: | include <tpSystemApi.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | |
派生类: |
Public 类型
enum OpenFileError {
Succsssful, FileNotExist, NotSupport,
SystemFileDamage
}
Public 成员函数
static tpSystemApi * tpSystemApi::Instance | Instance() | 获取唯一单例 |
---|---|---|
OpenFileError | openFile(const tpString &filePath, const tpString &appUuid="") | 根据文件类型启动对应应用打开文件 |
tpSystemApi(const tpSystemApi &)=delete | 禁用拷贝构造 | |
tpSystemApi & tpSystemApi::operator= | operator=(const tpSystemApi &)=delete | 禁用赋值构造 |
成员枚举类型说明
enum tpSystemApi::OpenFileError
名称 | 值 | 描述 |
---|---|---|
Succsssful | 0 | 打开成功 |
FileNotExist | 1 | 打开文件不存在 |
NotSupport | 2 | 不支持文件类型 |
SystemFileDamage | 3 | 系统文件损坏 |
成员函数说明
static tpSystemApi * tpSystemApi::Instance()
点击查看...
获取唯一单例
返回值:
实例指针
OpenFileError tpSystemApi::openFile(const tpString &filePath, const tpString &appUuid="")
点击查看...
根据文件类型启动对应应用打开文件
tpSystemApi::tpSystemApi(const tpSystemApi &)=delete
点击查看...
禁用拷贝构造
tpSystemApi & tpSystemApi::operator=(const tpSystemApi &)=delete
点击查看...
禁用赋值构造