Gdm.UserVerifierCustomJSON¶
- Implementations:
Gdm.UserVerifierCustomJSONProxy,Gdm.UserVerifierCustomJSONSkeleton
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
Properties¶
None
Signals¶
Name |
Short Description |
|---|---|
Signal emitted when a remote caller is invoking the ‘Reply() [gdbus-method-org-gnome-DisplayManager-UserVerifier-CustomJSON.Reply]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘ReportError() [gdbus-method-org-gnome-DisplayManager-UserVerifier-CustomJSON.ReportError]’ D-Bus method. |
|
On the client-side, this signal is emitted whenever the D-Bus signal ‘“Request” [gdbus-signal-org-gnome-DisplayManager-UserVerifier-CustomJSON.Request]’ is received. |
Fields¶
None
Class Details¶
- class Gdm.UserVerifierCustomJSON¶
- Bases:
- Structure:
Abstract interface type for the D-Bus interface ‘org.gnome.DisplayManager.UserVerifier.CustomJSON [gdbus-interface-org-gnome-DisplayManager-UserVerifier-CustomJSON.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.CustomJSON [gdbus-interface-org-gnome-DisplayManager-UserVerifier-CustomJSON.top_of_page]’ D-Bus interface.
- classmethod override_properties(klass, property_id_begin)¶
- Parameters:
klass (
GObject.ObjectClass) – The class structure for aGObject.Objectderived 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.Objectproperties in theGdm.UserVerifierCustomJSONinterface for a concrete class. The properties are overridden in the order they are defined.
- call_reply(arg_service_name, arg_reply, cancellable, callback, *user_data)¶
- Parameters:
arg_service_name (
str) – Argument to pass with the method invocation.arg_reply (
str) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the ‘Reply() [gdbus-method-org-gnome-DisplayManager-UserVerifier-CustomJSON.Reply]’ 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.UserVerifierCustomJSON.call_reply_finish() to get the result of the operation.See
Gdm.UserVerifierCustomJSON.call_reply_sync() for the synchronous, blocking version of this method.
- call_reply_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toGdm.UserVerifierCustomJSON.call_reply().- Raises:
- Returns:
- Return type:
Finishes an operation started with
Gdm.UserVerifierCustomJSON.call_reply().
- call_reply_sync(arg_service_name, arg_reply, cancellable)¶
- Parameters:
arg_service_name (
str) – Argument to pass with the method invocation.arg_reply (
str) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘Reply() [gdbus-method-org-gnome-DisplayManager-UserVerifier-CustomJSON.Reply]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
Gdm.UserVerifierCustomJSON.call_reply() for the asynchronous version of this method.
- call_report_error(arg_service_name, arg_error, cancellable, callback, *user_data)¶
- Parameters:
arg_service_name (
str) – Argument to pass with the method invocation.arg_error (
str) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the ‘ReportError() [gdbus-method-org-gnome-DisplayManager-UserVerifier-CustomJSON.ReportError]’ 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.UserVerifierCustomJSON.call_report_error_finish() to get the result of the operation.See
Gdm.UserVerifierCustomJSON.call_report_error_sync() for the synchronous, blocking version of this method.
- call_report_error_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toGdm.UserVerifierCustomJSON.call_report_error().- Raises:
- Returns:
- Return type:
Finishes an operation started with
Gdm.UserVerifierCustomJSON.call_report_error().
- call_report_error_sync(arg_service_name, arg_error, cancellable)¶
- Parameters:
arg_service_name (
str) – Argument to pass with the method invocation.arg_error (
str) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘ReportError() [gdbus-method-org-gnome-DisplayManager-UserVerifier-CustomJSON.ReportError]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
Gdm.UserVerifierCustomJSON.call_report_error() for the asynchronous version of this method.
- complete_reply(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
Helper function used in service implementations to finish handling invocations of the ‘Reply() [gdbus-method-org-gnome-DisplayManager-UserVerifier-CustomJSON.Reply]’ 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_report_error(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
Helper function used in service implementations to finish handling invocations of the ‘ReportError() [gdbus-method-org-gnome-DisplayManager-UserVerifier-CustomJSON.ReportError]’ 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_request(arg_service_name, arg_protocol, arg_version, arg_request)¶
- Parameters:
Emits the ‘“Request” [gdbus-signal-org-gnome-DisplayManager-UserVerifier-CustomJSON.Request]’ D-Bus signal.
- do_handle_reply(invocation, arg_service_name, arg_reply) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_service_name (
str) –arg_reply (
str) –
- Return type:
Handler for the
Gdm.UserVerifierCustomJSON::handle-replysignal.
- do_handle_report_error(invocation, arg_service_name, arg_error) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation) –arg_service_name (
str) –arg_error (
str) –
- Return type:
Handler for the
Gdm.UserVerifierCustomJSON::handle-report-errorsignal.
Signal Details¶
- Gdm.UserVerifierCustomJSON.signals.handle_reply(user_verifier_custom_j_s_o_n, invocation, arg_service_name, arg_reply)¶
- Signal Name:
handle-reply- Flags:
- Parameters:
user_verifier_custom_j_s_o_n (
Gdm.UserVerifierCustomJSON) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_service_name (
str) – Argument passed by remote caller.arg_reply (
str) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLEDorTrueif the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLEDorFalseto let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘Reply() [gdbus-method-org-gnome-DisplayManager-UserVerifier-CustomJSON.Reply]’ 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.UserVerifierCustomJSON.complete_reply() 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_METHODerror is returned.
- Gdm.UserVerifierCustomJSON.signals.handle_report_error(user_verifier_custom_j_s_o_n, invocation, arg_service_name, arg_error)¶
- Signal Name:
handle-report-error- Flags:
- Parameters:
user_verifier_custom_j_s_o_n (
Gdm.UserVerifierCustomJSON) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_service_name (
str) – Argument passed by remote caller.arg_error (
str) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLEDorTrueif the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLEDorFalseto let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘ReportError() [gdbus-method-org-gnome-DisplayManager-UserVerifier-CustomJSON.ReportError]’ 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.UserVerifierCustomJSON.complete_report_error() 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_METHODerror is returned.
- Gdm.UserVerifierCustomJSON.signals.request(user_verifier_custom_j_s_o_n, arg_service_name, arg_protocol, arg_version, arg_request)¶
- Signal Name:
request- Flags:
- Parameters:
user_verifier_custom_j_s_o_n (
Gdm.UserVerifierCustomJSON) – The object which received the signalarg_service_name (
str) – Argument.arg_protocol (
str) – Argument.arg_version (
int) – Argument.arg_request (
str) – Argument.
On the client-side, this signal is emitted whenever the D-Bus signal ‘“Request” [gdbus-signal-org-gnome-DisplayManager-UserVerifier-CustomJSON.Request]’ 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.