Class

AstalBatteryUPower

Description

class AstalBattery.UPower : GObject.Object
{
  /* No available fields */
}

Client for the UPower dbus interface.

Ancestors

Constructors

astal_battery_upower_new
No description available.

Instance methods

astal_battery_upower_get_devices
No description available.

astal_battery_upower_get_display_device
No description available.

astal_battery_upower_get_daemon_version
No description available.

astal_battery_upower_get_on_battery
No description available.

astal_battery_upower_get_lid_is_closed
No description available.

astal_battery_upower_get_lis_is_present
No description available.

astal_battery_upower_get_critical_action
No description available.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

AstalBattery.UPower:devices

List of UPower devices.

AstalBattery.UPower:display-device

A composite device that represents the battery status.

AstalBattery.UPower:daemon-version
No description available.

AstalBattery.UPower:on-battery

Indicates whether the system is running on battery power.

AstalBattery.UPower:lid-is-closed

Indicates if the laptop lid is closed where the display cannot be seen.

AstalBattery.UPower:lis-is-present

Indicates if the system has a lid device.

AstalBattery.UPower:critical-action

When the system’s power supply is critical (critically low batteries or UPS), the system will take this action.

Signals

AstalBattery.UPower::device-added

Emitted when a new device is connected.

AstalBattery.UPower::device-removed

Emitted a new device is disconnected.

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct AstalBatteryUPowerClass {
  /* no available fields */
}

No description available.