62 lines
1.3 KiB
JSON
62 lines
1.3 KiB
JSON
{
|
|
"name": "UPowerDeviceState",
|
|
"module": "Quickshell.Services.UPower",
|
|
"type": "class",
|
|
"super": {
|
|
"type": "qt",
|
|
"module": "qml.QtQml",
|
|
"name": "QtObject"
|
|
},
|
|
"description": "Power state of a UPower device.",
|
|
"details": "See {{< qmltypelink type=\"local\" module=\"Quickshell.Services.UPower\" name=\"UPowerDevice\" mtype=\"prop\" mname=\"state\" >}}.\n",
|
|
"flags": [
|
|
"enum"
|
|
],
|
|
"properties": {},
|
|
"functions": [
|
|
{
|
|
"ret": {
|
|
"type": "qt",
|
|
"module": "qml",
|
|
"name": "string"
|
|
},
|
|
"name": "toString",
|
|
"id": "toString",
|
|
"details": null,
|
|
"params": [
|
|
{
|
|
"name": "status",
|
|
"type": {
|
|
"type": "local",
|
|
"module": "Quickshell.Services.UPower",
|
|
"name": "UPowerDeviceState"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"signals": {},
|
|
"variants": {
|
|
"PendingCharge": {
|
|
"details": "The device is waiting to be charged after it was plugged in.\n"
|
|
},
|
|
"PendingDischarge": {
|
|
"details": "The device is waiting to be discharged after being unplugged.\n"
|
|
},
|
|
"Empty": {
|
|
"details": null
|
|
},
|
|
"FullyCharged": {
|
|
"details": null
|
|
},
|
|
"Unknown": {
|
|
"details": null
|
|
},
|
|
"Discharging": {
|
|
"details": null
|
|
},
|
|
"Charging": {
|
|
"details": null
|
|
}
|
|
}
|
|
} |