DBusAuthObserver.connectAllowMechanism

Connect to AllowMechanism signal.

Emitted to check if mechanism is allowed to be used.

class DBusAuthObserver
ulong
connectAllowMechanism
(
T
)
(,
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] == string)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
)
)
&&
Parameters!T.length < 3
)

Parameters

callback T

signal callback delegate or function to connect

bool callback(string mechanism, gio.dbus_auth_observer.DBusAuthObserver dBusAuthObserver)

mechanism The name of the mechanism, e.g. DBUS_COOKIE_SHA1. (optional)

dBusAuthObserver the instance the signal is connected to (optional)

Returns true if mechanism can be used to authenticate the other peer, false if not.

after Flag!"After"

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

Return Value

Type: ulong

Signal ID