Merge branch 'master' of ssh://172.17.66.163:10022/wangsong/kylin-update-manager_dist
This commit is contained in:
commit
9d7fcf9e60
129
interface.md
129
interface.md
|
@ -1,64 +1,65 @@
|
|||
### DBUS接口
|
||||
|
||||
#### 描述
|
||||
|
||||
实现系统升级以python apt库和aptdeamon的形式
|
||||
|
||||
|
||||
|
||||
#### Dbus接口信息
|
||||
|
||||
| 名称 | 含义 |
|
||||
| -------------- | --------------------------------- |
|
||||
| BUS类型 | SYSTEM BUS |
|
||||
| DBUS名称 | com.kylin.systemupgrade |
|
||||
| OBJECT路径 | /com/kylin/systemupgrade |
|
||||
| INTERFACES名称 | com.kylin.systemupgrade.interface |
|
||||
|
||||
|
||||
|
||||
#### Method列表
|
||||
|
||||
| Method Name | Input Args | Output Args | means |
|
||||
| ------------------ | ---------- | ----------- | --------------------------------- |
|
||||
| UpdateDetect | 无 | b | 更新cache,产生组升级列表JSON文件 |
|
||||
| DistUpgradeSystem | 无 | b | 全部升级 |
|
||||
| DistUpgradePartial | as | b | 部分升级 |
|
||||
| CancelDownload | 无 | b | 取消升级 |
|
||||
| | | | |
|
||||
|
||||
#### Method分析
|
||||
|
||||
#####
|
||||
|
||||
#### Signal列表
|
||||
|
||||
| Method Name | Output Args | means |
|
||||
| ---------------------------- | ----------- | ------------------------ |
|
||||
| UpdateDetectStatusChanged | is | 更新进度信息以及状态信息 |
|
||||
| UpdateDetectFinished | basss | 更新完成信号 |
|
||||
| UpdateDloadAndInstStaChanged | asis | 升级的进度信号以及状态 |
|
||||
| UpdateDownloadFinished | basss | 升级完成的信号 |
|
||||
| UpdateDownloadInfo | iiiii | 发送下载包信息信号 |
|
||||
| Cancelable | b | 是否可取消 |
|
||||
|
||||
|
||||
|
||||
#### Signal分析
|
||||
|
||||
##### update_progress_signal
|
||||
|
||||
| method name | out args |
|
||||
| ---------------------- | -------------------------------------------- |
|
||||
| update_progress_signal | is |
|
||||
| 部分升级 | i:进度状态0-100,101为非预期状态 S:状态信息 |
|
||||
|
||||
|
||||
|
||||
update_finished_signal
|
||||
|
||||
| method name | out args |
|
||||
| ---------------------- | --------------------------------------------------- |
|
||||
| update_progress_signal | basss |
|
||||
| 部分升级 | b:成功或失败、as:可升级的组、s:错误结果、s:错误原因 |
|
||||
|
||||
### DBUS接口
|
||||
|
||||
#### 描述
|
||||
|
||||
实现系统升级以python apt库和aptdeamon的形式
|
||||
|
||||
|
||||
|
||||
#### Dbus接口信息
|
||||
|
||||
| 名称 | 含义 |
|
||||
| -------------- | --------------------------------- |
|
||||
| BUS类型 | SYSTEM BUS |
|
||||
| DBUS名称 | com.kylin.systemupgrade |
|
||||
| OBJECT路径 | /com/kylin/systemupgrade |
|
||||
| INTERFACES名称 | com.kylin.systemupgrade.interface |
|
||||
|
||||
|
||||
|
||||
#### Method列表
|
||||
|
||||
| Method Name | Input Args | Output Args | means |
|
||||
| ------------------ | ---------- | ----------- | --------------------------------- |
|
||||
| UpdateDetect | 无 | b | 更新cache,产生组升级列表JSON文件 |
|
||||
| DistUpgradeAll | 无 | b | 全部升级 |
|
||||
| DistUpgradePartial | as | b | 部分升级 |
|
||||
| DistUpgradeSystem | 无 | b | 全盘升级 |
|
||||
| CancelDownload | 无 | b | 取消升级 |
|
||||
| | | | |
|
||||
|
||||
#### Method分析
|
||||
|
||||
#####
|
||||
|
||||
#### Signal列表
|
||||
|
||||
| Method Name | Output Args | means |
|
||||
| ---------------------------- | ----------- | ------------------------ |
|
||||
| UpdateDetectStatusChanged | is | 更新进度信息以及状态信息 |
|
||||
| UpdateDetectFinished | basss | 更新完成信号 |
|
||||
| UpdateDloadAndInstStaChanged | asis | 升级的进度信号以及状态 |
|
||||
| UpdateInstallFinished | basss | 升级完成的信号 |
|
||||
| UpdateDownloadInfo | iiiii | 发送下载包信息信号 |
|
||||
| Cancelable | b | 是否可取消 |
|
||||
|
||||
|
||||
|
||||
#### Signal分析
|
||||
|
||||
##### update_progress_signal
|
||||
|
||||
| method name | out args |
|
||||
| ---------------------- | -------------------------------------------- |
|
||||
| update_progress_signal | is |
|
||||
| 部分升级 | i:进度状态0-100,101为非预期状态 S:状态信息 |
|
||||
|
||||
|
||||
|
||||
update_finished_signal
|
||||
|
||||
| method name | out args |
|
||||
| ---------------------- | --------------------------------------------------- |
|
||||
| update_progress_signal | basss |
|
||||
| 部分升级 | b:成功或失败、as:可升级的组、s:错误结果、s:错误原因 |
|
||||
|
||||
|
|
Loading…
Reference in New Issue