Gdm.UserVerifierChoiceList¶
- Implementations:
Gdm.UserVerifierChoiceListProxy
,Gdm.UserVerifierChoiceListSkeleton
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
Properties¶
None
Signals¶
Name |
Short Description |
---|---|
On the client-side, this signal is emitted whenever the D-Bus signal ‘“ChoiceQuery” [gdbus-signal-org-gnome-DisplayManager-UserVerifier-ChoiceList.ChoiceQuery]’ is received. |
|
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:
- Structure:
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:
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:
klass (
GObject.ObjectClass
) – The class structure for aGObject.Object
derived class.property_id_begin (
int
) – The property id to assign to the first overridden property.
- Returns:
The last property id.
- Return type:
Overrides all
GObject.Object
properties in theGdm.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:
arg_service_name (
str
) – Argument to pass with the method invocation.arg_choice (
str
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
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 callGdm.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
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toGdm.UserVerifierChoiceList.call_select_choice
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
Gdm.UserVerifierChoiceList.call_select_choice
().
- call_select_choice_sync(arg_service_name, arg_choice, cancellable)¶
- Parameters:
arg_service_name (
str
) – Argument to pass with the method invocation.arg_choice (
str
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
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
) – AGio.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:
arg_service_name (
str
) –arg_prompt_message (
str
) –arg_list (
GLib.Variant
) –
Handler for the
Gdm.UserVerifierChoiceList
::choice-query
signal.
- do_handle_select_choice(invocation, arg_service_name, arg_choice) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_service_name (
str
) –arg_choice (
str
) –
- Return type:
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:
- Parameters:
user_verifier_choice_list (
Gdm.UserVerifierChoiceList
) – The object which received the signalarg_service_name (
str
) – Argument.arg_prompt_message (
str
) – Argument.arg_list (
GLib.Variant
) – Argument.
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:
- Parameters:
user_verifier_choice_list (
Gdm.UserVerifierChoiceList
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_service_name (
str
) – Argument passed by remote caller.arg_choice (
str
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
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 callGdm.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, theGio.DBusError.UNKNOWN_METHOD
error is returned.