CScreensaver.UPowerDevice

g CScreensaver.UPowerDevice CScreensaver.UPowerDevice GObject.GInterface GObject.GInterface GObject.GInterface->CScreensaver.UPowerDevice

Implementations:

CScreensaver.UPowerDeviceProxy, CScreensaver.UPowerDeviceSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

Virtual Methods

None

Properties

Name

Type

Flags

Short Description

icon-name

str

r/w

IconName

online

bool

r/w

Online

percentage

float

r/w

Percentage

state

int

r/w

State

type

int

r/w

Type

warning-level

int

r/w

WarningLevel

Signals

None

Fields

None

Class Details

class CScreensaver.UPowerDevice
Bases:

GObject.GInterface

Structure:

CScreensaver.UPowerDeviceIface

Abstract interface type for the D-Bus interface ‘org.freedesktop.UPower.Device [gdbus-interface-org-freedesktop-UPower-Device.top_of_page]’.

classmethod interface_info()
Returns:

A Gio.DBusInterfaceInfo. Do not free.

Return type:

Gio.DBusInterfaceInfo

Gets a machine-readable description of the ‘org.freedesktop.UPower.Device [gdbus-interface-org-freedesktop-UPower-Device.top_of_page]’ D-Bus interface.

classmethod override_properties(klass, property_id_begin)
Parameters:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the CScreensaver.UPowerDevice interface for a concrete class. The properties are overridden in the order they are defined.

Property Details

CScreensaver.UPowerDevice.props.icon_name
Name:

icon-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“IconName” [gdbus-property-org-freedesktop-UPower-Device.IconName]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

CScreensaver.UPowerDevice.props.online
Name:

online

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Online” [gdbus-property-org-freedesktop-UPower-Device.Online]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

CScreensaver.UPowerDevice.props.percentage
Name:

percentage

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Percentage” [gdbus-property-org-freedesktop-UPower-Device.Percentage]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

CScreensaver.UPowerDevice.props.state
Name:

state

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“State” [gdbus-property-org-freedesktop-UPower-Device.State]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

CScreensaver.UPowerDevice.props.type
Name:

type

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Type” [gdbus-property-org-freedesktop-UPower-Device.Type]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

CScreensaver.UPowerDevice.props.warning_level
Name:

warning-level

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“WarningLevel” [gdbus-property-org-freedesktop-UPower-Device.WarningLevel]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.