tpAppInstall类
ExternUtils
2025-07-05
基础信息
头文件: | include <tpAppInstall.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | |
派生类: |
Public 类型
enum tpInstallErrorCode {
TP_INSTALL_SUCCESS, TP_INSTALL_ERROR_ARCK, TP_INSTALL_ERROR_SPACE,
TP_INSTALL_ERROR_MD5, TP_INSTALL_ERROR_VERSION, TP_INSTALL_ERROR_NONE_FILE,
TP_INSTALL_ERROR_OTHER
}
enum tpAppPackageType {
TP_PACKAGE_TYPE_NONE, TP_PACKAGE_TYPE_LIB, TP_PACKAGE_TYPE_SYSAPP,
TP_PACKAGE_TYPE_USRAPP
}
enum tpArch {
}
Public 成员函数
tpAppInstall(const tpString &path) | ||
---|---|---|
tpAppInstall() | ||
~tpAppInstall() | ||
tpAppPackageType | getPackageType() | 获取安装包类型(system_app,user_app,lib,none) |
archCheck() | 硬件架构检查 | |
spaceCheck() | 空间检查 | |
versionCheck() | 版本检查 | |
completeCheck() | MD5校验 | |
checkAll() | 安装环境整体检查(硬件架构,剩余空间,版本) | |
setPath(const tpString &path) | 设置安装包路径 | |
tpString | getPackVersion() | 获取安装包版本 |
tpString | getPackArch() | 获取安装包支持的硬件架构 |
getPackSpace() | 获取安装包需要的空间大小 | |
tpString | getNowVersion() | 获取已安装的版本 |
tpString | getAppUUID() | 获取安装包的应用UUID |
tpString | getAppName() | 获取安装包的应用名字 |
tpString | getIcon() | 获取app的图标路径 |
isInstall() | 查看应用是否已安装 | |
install() | 安装应用 | |
installTest() | ||
getInstallSchedule() | 获取安装进度 | |
update() | 应用升级 | |
remove(tpString &uuid) | 卸载应用 |
成员枚举类型说明
enum tpAppInstall::tpInstallErrorCode
名称 | 值 | 描述 |
---|---|---|
TP_INSTALL_SUCCESS | 0 | |
TP_INSTALL_ERROR_ARCK | -1 | |
TP_INSTALL_ERROR_SPACE | -2 | |
TP_INSTALL_ERROR_MD5 | -3 | |
TP_INSTALL_ERROR_VERSION | -4 | |
TP_INSTALL_ERROR_NONE_FILE | -9 | |
TP_INSTALL_ERROR_OTHER | -10 |
enum tpAppInstall::tpAppPackageType
名称 | 值 | 描述 |
---|---|---|
TP_PACKAGE_TYPE_NONE | 0 | |
TP_PACKAGE_TYPE_LIB | 1 | |
TP_PACKAGE_TYPE_SYSAPP | 2 | |
TP_PACKAGE_TYPE_USRAPP | 3 |
enum tpAppInstall::tpArch
名称 | 值 | 描述 |
---|
成员函数说明
tpAppInstall::tpAppInstall(const tpString &path)
暂无注释...
tpAppInstall::tpAppInstall()
暂无注释...
tpAppInstall::~tpAppInstall()
暂无注释...
tpAppPackageType tpAppInstall::getPackageType()
点击查看...
获取安装包类型(system_app,user_app,lib,none)
int tpAppInstall::archCheck()
点击查看...
硬件架构检查
int tpAppInstall::spaceCheck()
点击查看...
空间检查
int tpAppInstall::versionCheck()
点击查看...
版本检查
int tpAppInstall::completeCheck()
点击查看...
MD5校验
tpAppInstall::tpInstallErrorCode tpAppInstall::checkAll()
点击查看...
安装环境整体检查(硬件架构,剩余空间,版本)
int tpAppInstall::setPath(const tpString &path)
点击查看...
设置安装包路径
返回值:
linebreak
tpString tpAppInstall::getPackVersion()
点击查看...
获取安装包版本
tpString tpAppInstall::getPackArch()
点击查看...
获取安装包支持的硬件架构
int tpAppInstall::getPackSpace()
点击查看...
获取安装包需要的空间大小
tpString tpAppInstall::getNowVersion()
点击查看...
获取已安装的版本
tpString tpAppInstall::getAppUUID()
点击查看...
获取安装包的应用UUID
tpString tpAppInstall::getAppName()
点击查看...
获取安装包的应用名字
返回值:
linebreak
tpString tpAppInstall::getIcon()
点击查看...
获取app的图标路径
返回值:
linebreak
tpBool tpAppInstall::isInstall()
点击查看...
查看应用是否已安装
返回值:
已安装返回TP_TRUE
tpAppInstall::tpInstallErrorCode tpAppInstall::install()
点击查看...
安装应用
tpAppInstall::tpInstallErrorCode tpAppInstall::installTest()
暂无注释...
int tpAppInstall::getInstallSchedule()
点击查看...
获取安装进度
int tpAppInstall::update()
点击查看...
应用升级
static int tpAppInstall::remove(tpString &uuid)
点击查看...
卸载应用
返回值:
linebreak