Enums

Details

class UPowerGlib.DeviceKind(value)

Bases: GLib.Enum

The device type.

UNKNOWN = 0
LINE_POWER = 1
TABLET = 10
COMPUTER = 11
GAMING_INPUT = 12
LAST = 13
BATTERY = 2
UPS = 3
MONITOR = 4
MOUSE = 5
KEYBOARD = 6
PDA = 7
PHONE = 8
MEDIA_PLAYER = 9
class UPowerGlib.DeviceLevel(value)

Bases: GLib.Enum

The level of a battery. Only values up to, and including UPowerGlib.DeviceLevel.ACTION are relevant for the #WarningLevel. The #BatteryLevel only uses the following values:

UNKNOWN = 0
NONE = 1
DISCHARGING = 2
LOW = 3
CRITICAL = 4
ACTION = 5
NORMAL = 6
HIGH = 7
FULL = 8
LAST = 9
class UPowerGlib.DeviceState(value)

Bases: GLib.Enum

The device state.

UNKNOWN = 0
CHARGING = 1
DISCHARGING = 2
EMPTY = 3
FULLY_CHARGED = 4
PENDING_CHARGE = 5
PENDING_DISCHARGE = 6
LAST = 7
class UPowerGlib.DeviceTechnology(value)

Bases: GLib.Enum

The device technology.

UNKNOWN = 0
LITHIUM_ION = 1
LITHIUM_POLYMER = 2
LITHIUM_IRON_PHOSPHATE = 3
LEAD_ACID = 4
NICKEL_CADMIUM = 5
NICKEL_METAL_HYDRIDE = 6
LAST = 7