DBusAuthObserver.connectAllowMechanism
gulong connectAllowMechanism(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] == string)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.dbus_auth_observer.DBusAuthObserver)))
&& Parameters!T.length < 3)Connect to AllowMechanism signal.
Emitted to check if mechanism is allowed to be used.
Parameters
callback | 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 | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID