quickshell-web/modules_old/Quickshell.Services.UPower/UPowerDeviceState.json

62 lines
1.3 KiB
JSON
Raw Normal View History

2024-09-27 23:35:19 +00:00
{
"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
}
}
}