Gdm.UserVerifierChoiceList

g GObject.GInterface GObject.GInterface Gdm.UserVerifierChoiceList Gdm.UserVerifierChoiceList GObject.GInterface->Gdm.UserVerifierChoiceList

Implementations:

Gdm.UserVerifierChoiceListProxy, Gdm.UserVerifierChoiceListSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

call_select_choice (arg_service_name, arg_choice, cancellable, callback, *user_data)

call_select_choice_finish (res)

call_select_choice_sync (arg_service_name, arg_choice, cancellable)

complete_select_choice (invocation)

emit_choice_query (arg_service_name, arg_prompt_message, arg_list)

Virtual Methods

do_choice_query (arg_service_name, arg_prompt_message, arg_list)

do_handle_select_choice (invocation, arg_service_name, arg_choice)

Properties

None

Signals

Name

Short Description

choice-query

On the client-side, this signal is emitted whenever the D-Bus signal ‘“ChoiceQuery” [gdbus-signal-org-gnome-DisplayManager-UserVerifier-ChoiceList.ChoiceQuery]’ is received.

handle-select-choice

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

Fields

None

Class Details

class Gdm.UserVerifierChoiceList
Bases:

GObject.GInterface

Structure:

Gdm.UserVerifierChoiceListIface

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

call_select_choice(arg_service_name, arg_choice, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘SelectChoice() [gdbus-method-org-gnome-DisplayManager-UserVerifier-ChoiceList.SelectChoice]’ 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.UserVerifierChoiceList.call_select_choice_finish() to get the result of the operation.

See Gdm.UserVerifierChoiceList.call_select_choice_sync() for the synchronous, blocking version of this method.

call_select_choice_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to Gdm.UserVerifierChoiceList.call_select_choice().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with Gdm.UserVerifierChoiceList.call_select_choice().

call_select_choice_sync(arg_service_name, arg_choice, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See Gdm.UserVerifierChoiceList.call_select_choice() for the asynchronous version of this method.

complete_select_choice(invocation)
Parameters:

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

Helper function used in service implementations to finish handling invocations of the ‘SelectChoice() [gdbus-method-org-gnome-DisplayManager-UserVerifier-ChoiceList.SelectChoice]’ 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.

emit_choice_query(arg_service_name, arg_prompt_message, arg_list)
Parameters:
  • arg_service_name (str) – Argument to pass with the signal.

  • arg_prompt_message (str) – Argument to pass with the signal.

  • arg_list (GLib.Variant) – Argument to pass with the signal.

Emits the ‘“ChoiceQuery” [gdbus-signal-org-gnome-DisplayManager-UserVerifier-ChoiceList.ChoiceQuery]’ D-Bus signal.

do_choice_query(arg_service_name, arg_prompt_message, arg_list) virtual
Parameters:

Handler for the Gdm.UserVerifierChoiceList ::choice-query signal.

do_handle_select_choice(invocation, arg_service_name, arg_choice) virtual
Parameters:
Return type:

bool

Handler for the Gdm.UserVerifierChoiceList ::handle-select-choice signal.

Signal Details

Gdm.UserVerifierChoiceList.signals.choice_query(user_verifier_choice_list, arg_service_name, arg_prompt_message, arg_list)
Signal Name:

choice-query

Flags:

RUN_LAST

Parameters:

On the client-side, this signal is emitted whenever the D-Bus signal ‘“ChoiceQuery” [gdbus-signal-org-gnome-DisplayManager-UserVerifier-ChoiceList.ChoiceQuery]’ 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.

Gdm.UserVerifierChoiceList.signals.handle_select_choice(user_verifier_choice_list, invocation, arg_service_name, arg_choice)
Signal Name:

handle-select-choice

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 ‘SelectChoice() [gdbus-method-org-gnome-DisplayManager-UserVerifier-ChoiceList.SelectChoice]’ 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.UserVerifierChoiceList.complete_select_choice() 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.