DBusObjectSkeleton.connectAuthorizeMethod
gulong connectAuthorizeMethod(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gio.dbus_interface_skeleton.DBusInterfaceSkeleton)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.dbus_method_invocation.DBusMethodInvocation)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gio.dbus_object_skeleton.DBusObjectSkeleton)))
&& Parameters!T.length < 4)Connect to AuthorizeMethod signal.
Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized.
This signal is like #GDBusInterfaceSkeleton's #GDBusInterfaceSkeleton::g-authorize-method signal, except that it is for the enclosing object.
The default class handler just returns true.
Parameters
callback | signal callback delegate or function to connect bool callback(gio.dbus_interface_skeleton.DBusInterfaceSkeleton interface_, gio.dbus_method_invocation.DBusMethodInvocation invocation, gio.dbus_object_skeleton.DBusObjectSkeleton dBusObjectSkeleton) interface_ The #GDBusInterfaceSkeleton that invocation is for. (optional) invocation A #GDBusMethodInvocation. (optional) dBusObjectSkeleton the instance the signal is connected to (optional) Returns true if the call is authorized, false otherwise. |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID