Gdm.UserVerifierCustomJSON

g GObject.GInterface GObject.GInterface Gdm.UserVerifierCustomJSON Gdm.UserVerifierCustomJSON GObject.GInterface->Gdm.UserVerifierCustomJSON

Implementations:

Gdm.UserVerifierCustomJSONProxy, Gdm.UserVerifierCustomJSONSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

call_reply (arg_service_name, arg_reply, cancellable, callback, *user_data)

call_reply_finish (res)

call_reply_sync (arg_service_name, arg_reply, cancellable)

call_report_error (arg_service_name, arg_error, cancellable, callback, *user_data)

call_report_error_finish (res)

call_report_error_sync (arg_service_name, arg_error, cancellable)

complete_reply (invocation)

complete_report_error (invocation)

emit_request (arg_service_name, arg_protocol, arg_version, arg_request)

Virtual Methods

do_handle_reply (invocation, arg_service_name, arg_reply)

do_handle_report_error (invocation, arg_service_name, arg_error)

do_request (arg_service_name, arg_protocol, arg_version, arg_request)

Properties

None

Signals

Name

Short Description

handle-reply

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

handle-report-error

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

request

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:

GObject.GInterface

Structure:

Gdm.UserVerifierCustomJSONIface

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:

Gio.DBusInterfaceInfo

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:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the Gdm.UserVerifierCustomJSON interface 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:

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 call Gdm.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) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to Gdm.UserVerifierCustomJSON.call_reply().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with Gdm.UserVerifierCustomJSON.call_reply().

call_reply_sync(arg_service_name, arg_reply, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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:

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 call Gdm.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) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to Gdm.UserVerifierCustomJSON.call_report_error().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with Gdm.UserVerifierCustomJSON.call_report_error().

call_report_error_sync(arg_service_name, arg_error, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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) – A Gio.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) – A Gio.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:
  • arg_service_name (str) – Argument to pass with the signal.

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

  • arg_version (int) – Argument to pass with the signal.

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

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:
Return type:

bool

Handler for the Gdm.UserVerifierCustomJSON ::handle-reply signal.

do_handle_report_error(invocation, arg_service_name, arg_error) virtual
Parameters:
Return type:

bool

Handler for the Gdm.UserVerifierCustomJSON ::handle-report-error signal.

do_request(arg_service_name, arg_protocol, arg_version, arg_request) virtual
Parameters:
  • arg_service_name (str) –

  • arg_protocol (str) –

  • arg_version (int) –

  • arg_request (str) –

Handler for the Gdm.UserVerifierCustomJSON ::request signal.

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:

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 ‘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 call Gdm.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, the Gio.DBusError.UNKNOWN_METHOD error 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:

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 ‘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 call Gdm.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, the Gio.DBusError.UNKNOWN_METHOD error 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:

RUN_LAST

Parameters:
  • user_verifier_custom_j_s_o_n (Gdm.UserVerifierCustomJSON) – The object which received the signal

  • arg_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.