Signal

PhoshDBusEndSessionDialog::handle-open

Declaration

gboolean
handle_open (
  PhoshDBusEndSessionDialog* self,
  GDBusMethodInvocation* invocation,
  guint arg_type,
  guint arg_timestamp,
  guint arg_seconds_to_stay_open,
  char** arg_inhibitor_object_paths,
  gpointer user_data
)

Description [src]

Signal emitted when a remote caller is invoking the Open() 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 phosh_dbus_end_session_dialog_complete_open() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Default handler:

The default handler is called after the handlers added via g_signal_connect().

Parameters

invocation GDBusMethodInvocation
 

A GDBusMethodInvocation.

 The data is owned by the caller of the function.
arg_type guint
 

Argument passed by remote caller.

arg_timestamp guint
 

Argument passed by remote caller.

arg_seconds_to_stay_open guint
 

Argument passed by remote caller.

arg_inhibitor_object_paths An array of utf8
 

Argument passed by remote caller.

 The array must be NULL-terminated.
 The data is owned by the caller of the function.
 Each element is a NUL terminated UTF-8 string.

Return value

Returns: gboolean
 

TRUE if the invocation was handled, FALSE to let other signal handlers run.