接口文档更新
This commit is contained in:
parent
acc7465137
commit
5567bc9398
|
@ -28,6 +28,61 @@
|
|||
| DBUS名称 | com.kylin.systemupgrade |
|
||||
| OBJECT路径 | /com/kylin/systemupgrade |
|
||||
| INTERFACES名称 | com.kylin.systemupgrade.interface |
|
||||
| 属性名称 | org.freedesktop.DBus.Properties |
|
||||
|
||||
|
||||
|
||||
### Apt-p2p配置项设置
|
||||
|
||||
### Dbus接口信息
|
||||
|
||||
| 名称 | 含义 |
|
||||
| -------------- | --------------------------------- |
|
||||
| BUS类型 | SYSTEM BUS |
|
||||
| DBUS名称 | com.kylin.systemupgrade |
|
||||
| OBJECT路径 | /com/kylin/systemupgrade |
|
||||
| INTERFACES名称 | com.kylin.systemupgrade.interface |
|
||||
| 属性名称 | org.freedesktop.DBus.Properties |
|
||||
|
||||
|
||||
|
||||
#### Get
|
||||
|
||||
- `简介:`获取属性的值
|
||||
|
||||
- `入参:` `s`iface:要设置的属性的接口, `s`property:要设置的属性名称
|
||||
|
||||
- `出参:` `Variant`变量
|
||||
|
||||
- `示例:`
|
||||
|
||||
```
|
||||
#获取p2p的配置
|
||||
|
||||
Get(com.kylin.systemupgrade.interface,P2pBootstrap)
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#### Set
|
||||
|
||||
- `简介:`设置属性的值
|
||||
|
||||
- `入参:` `s`iiface:要设置的属性的接口, `s`iproperty:要设置的属性名称 `Variant`value:要设置的值
|
||||
|
||||
- `出参:`
|
||||
|
||||
- `示例:`
|
||||
|
||||
```
|
||||
#设置p2p的配置
|
||||
|
||||
set("com.kylin.systemupgrade.interface","P2pBootstrap",GLib.Variant('s', "test"))
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue