DBusObjectSkeleton.connectAuthorizeMethod

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.

class DBusObjectSkeleton
ulong
connectAuthorizeMethod
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == bool)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
)
)
&&
(
Parameters!T.length < 3 ||
(
ParameterStorageClassTuple!T[2] == ParameterStorageClass.none &&
)
)
&&
Parameters!T.length < 4
)

Parameters

callback T

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 Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID