CScreensaver.SessionPresence

g CScreensaver.SessionPresence CScreensaver.SessionPresence GObject.GInterface GObject.GInterface GObject.GInterface->CScreensaver.SessionPresence

Implementations:

CScreensaver.SessionPresenceProxy, CScreensaver.SessionPresenceSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

emit_status_changed (arg_status)

Virtual Methods

do_status_changed (arg_status)

Properties

Name

Type

Flags

Short Description

status

int

r/w

status

Signals

Name

Short Description

status-changed

On the client-side, this signal is emitted whenever the D-Bus signal ‘“StatusChanged” [gdbus-signal-org-gnome-SessionManager-Presence.StatusChanged]’ is received.

Fields

None

Class Details

class CScreensaver.SessionPresence
Bases:

GObject.GInterface

Structure:

CScreensaver.SessionPresenceIface

Abstract interface type for the D-Bus interface ‘org.gnome.SessionManager.Presence [gdbus-interface-org-gnome-SessionManager-Presence.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.gnome.SessionManager.Presence [gdbus-interface-org-gnome-SessionManager-Presence.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.SessionPresence interface for a concrete class. The properties are overridden in the order they are defined.

emit_status_changed(arg_status)
Parameters:

arg_status (int) – Argument to pass with the signal.

Emits the ‘“StatusChanged” [gdbus-signal-org-gnome-SessionManager-Presence.StatusChanged]’ D-Bus signal.

do_status_changed(arg_status) virtual
Parameters:

arg_status (int) –

Signal Details

CScreensaver.SessionPresence.signals.status_changed(session_presence, arg_status)
Signal Name:

status-changed

Flags:

RUN_LAST

Parameters:

On the client-side, this signal is emitted whenever the D-Bus signal ‘“StatusChanged” [gdbus-signal-org-gnome-SessionManager-Presence.StatusChanged]’ is received.

On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.

Property Details

CScreensaver.SessionPresence.props.status
Name:

status

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“status” [gdbus-property-org-gnome-SessionManager-Presence.status]’.

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