Gdm.Manager

g GObject.GInterface GObject.GInterface Gdm.Manager Gdm.Manager GObject.GInterface->Gdm.Manager

Implementations:

Gdm.ManagerProxy, Gdm.ManagerSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

call_open_reauthentication_channel (arg_username, cancellable, callback, *user_data)

call_open_reauthentication_channel_finish (res)

call_open_reauthentication_channel_sync (arg_username, cancellable)

call_open_session (cancellable, callback, *user_data)

call_open_session_finish (res)

call_open_session_sync (cancellable)

call_register_display (arg_details, cancellable, callback, *user_data)

call_register_display_finish (res)

call_register_display_sync (arg_details, cancellable)

call_register_session (arg_details, cancellable, callback, *user_data)

call_register_session_finish (res)

call_register_session_sync (arg_details, cancellable)

complete_open_reauthentication_channel (invocation, address)

complete_open_session (invocation, address)

complete_register_display (invocation)

complete_register_session (invocation)

Virtual Methods

do_handle_open_reauthentication_channel (invocation, arg_username)

do_handle_open_session (invocation)

do_handle_register_display (invocation, arg_details)

do_handle_register_session (invocation, arg_details)

Properties

Name

Type

Flags

Short Description

version

str

r/w

Version

Signals

Name

Short Description

handle-open-reauthentication-channel

Signal emitted when a remote caller is invoking the ‘OpenReauthenticationChannel() [gdbus-method-org-gnome-DisplayManager-Manager.OpenReauthenticationChannel]’ D-Bus method.

handle-open-session

Signal emitted when a remote caller is invoking the ‘OpenSession() [gdbus-method-org-gnome-DisplayManager-Manager.OpenSession]’ D-Bus method.

handle-register-display

Signal emitted when a remote caller is invoking the ‘RegisterDisplay() [gdbus-method-org-gnome-DisplayManager-Manager.RegisterDisplay]’ D-Bus method.

handle-register-session

Signal emitted when a remote caller is invoking the ‘RegisterSession() [gdbus-method-org-gnome-DisplayManager-Manager.RegisterSession]’ D-Bus method.

Fields

None

Class Details

class Gdm.Manager
Bases:

GObject.GInterface

Structure:

Gdm.ManagerIface

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

call_open_reauthentication_channel(arg_username, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘OpenReauthenticationChannel() [gdbus-method-org-gnome-DisplayManager-Manager.OpenReauthenticationChannel]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call Gdm.Manager.call_open_reauthentication_channel_finish() to get the result of the operation.

See Gdm.Manager.call_open_reauthentication_channel_sync() for the synchronous, blocking version of this method.

call_open_reauthentication_channel_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to Gdm.Manager.call_open_reauthentication_channel().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_address:

Return location for return parameter or None to ignore.

Return type:

(bool, out_address: str)

Finishes an operation started with Gdm.Manager.call_open_reauthentication_channel().

call_open_reauthentication_channel_sync(arg_username, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_address:

Return location for return parameter or None to ignore.

Return type:

(bool, out_address: str)

Synchronously invokes the ‘OpenReauthenticationChannel() [gdbus-method-org-gnome-DisplayManager-Manager.OpenReauthenticationChannel]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See Gdm.Manager.call_open_reauthentication_channel() for the asynchronous version of this method.

call_open_session(cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘OpenSession() [gdbus-method-org-gnome-DisplayManager-Manager.OpenSession]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call Gdm.Manager.call_open_session_finish() to get the result of the operation.

See Gdm.Manager.call_open_session_sync() for the synchronous, blocking version of this method.

call_open_session_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to Gdm.Manager.call_open_session().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_address:

Return location for return parameter or None to ignore.

Return type:

(bool, out_address: str)

Finishes an operation started with Gdm.Manager.call_open_session().

call_open_session_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_address:

Return location for return parameter or None to ignore.

Return type:

(bool, out_address: str)

Synchronously invokes the ‘OpenSession() [gdbus-method-org-gnome-DisplayManager-Manager.OpenSession]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See Gdm.Manager.call_open_session() for the asynchronous version of this method.

call_register_display(arg_details, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘RegisterDisplay() [gdbus-method-org-gnome-DisplayManager-Manager.RegisterDisplay]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call Gdm.Manager.call_register_display_finish() to get the result of the operation.

See Gdm.Manager.call_register_display_sync() for the synchronous, blocking version of this method.

call_register_display_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to Gdm.Manager.call_register_display().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with Gdm.Manager.call_register_display().

call_register_display_sync(arg_details, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the ‘RegisterDisplay() [gdbus-method-org-gnome-DisplayManager-Manager.RegisterDisplay]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See Gdm.Manager.call_register_display() for the asynchronous version of this method.

call_register_session(arg_details, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘RegisterSession() [gdbus-method-org-gnome-DisplayManager-Manager.RegisterSession]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call Gdm.Manager.call_register_session_finish() to get the result of the operation.

See Gdm.Manager.call_register_session_sync() for the synchronous, blocking version of this method.

call_register_session_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to Gdm.Manager.call_register_session().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with Gdm.Manager.call_register_session().

call_register_session_sync(arg_details, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the ‘RegisterSession() [gdbus-method-org-gnome-DisplayManager-Manager.RegisterSession]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See Gdm.Manager.call_register_session() for the asynchronous version of this method.

complete_open_reauthentication_channel(invocation, address)
Parameters:

Helper function used in service implementations to finish handling invocations of the ‘OpenReauthenticationChannel() [gdbus-method-org-gnome-DisplayManager-Manager.OpenReauthenticationChannel]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

complete_open_session(invocation, address)
Parameters:

Helper function used in service implementations to finish handling invocations of the ‘OpenSession() [gdbus-method-org-gnome-DisplayManager-Manager.OpenSession]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

complete_register_display(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘RegisterDisplay() [gdbus-method-org-gnome-DisplayManager-Manager.RegisterDisplay]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

complete_register_session(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘RegisterSession() [gdbus-method-org-gnome-DisplayManager-Manager.RegisterSession]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

do_handle_open_reauthentication_channel(invocation, arg_username) virtual
Parameters:
Return type:

bool

Handler for the Gdm.Manager ::handle-open-reauthentication-channel signal.

do_handle_open_session(invocation) virtual
Parameters:

invocation (Gio.DBusMethodInvocation) –

Return type:

bool

Handler for the Gdm.Manager ::handle-open-session signal.

do_handle_register_display(invocation, arg_details) virtual
Parameters:
Return type:

bool

Handler for the Gdm.Manager ::handle-register-display signal.

do_handle_register_session(invocation, arg_details) virtual
Parameters:
Return type:

bool

Handler for the Gdm.Manager ::handle-register-session signal.

Signal Details

Gdm.Manager.signals.handle_open_reauthentication_channel(manager, invocation, arg_username)
Signal Name:

handle-open-reauthentication-channel

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘OpenReauthenticationChannel() [gdbus-method-org-gnome-DisplayManager-Manager.OpenReauthenticationChannel]’ D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call Gdm.Manager.complete_open_reauthentication_channel() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

Gdm.Manager.signals.handle_open_session(manager, invocation)
Signal Name:

handle-open-session

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘OpenSession() [gdbus-method-org-gnome-DisplayManager-Manager.OpenSession]’ D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call Gdm.Manager.complete_open_session() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

Gdm.Manager.signals.handle_register_display(manager, invocation, arg_details)
Signal Name:

handle-register-display

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘RegisterDisplay() [gdbus-method-org-gnome-DisplayManager-Manager.RegisterDisplay]’ D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call Gdm.Manager.complete_register_display() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

Gdm.Manager.signals.handle_register_session(manager, invocation, arg_details)
Signal Name:

handle-register-session

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘RegisterSession() [gdbus-method-org-gnome-DisplayManager-Manager.RegisterSession]’ D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call Gdm.Manager.complete_register_session() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

Property Details

Gdm.Manager.props.version
Name:

version

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Version” [gdbus-property-org-gnome-DisplayManager-Manager.Version]’.

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.