DBusProxy.connectGSignal
gulong connectGSignal(T)(string detail = null, T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (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] == string)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == glib.variant.Variant)))
&& (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : gio.dbus_proxy.DBusProxy)))
&& Parameters!T.length < 5)Connect to GSignal signal.
Emitted when a signal from the remote object and interface that proxy is for, has been received.
Since 2.72 this signal supports detailed connections. You can connect to the detailed signal g-signal::x in order to receive callbacks only when signal x is received from the remote object.
Parameters
detail | Signal detail or null (default) |
callback | signal callback delegate or function to connect void callback(string senderName, string signalName, glib.variant.Variant parameters, gio.dbus_proxy.DBusProxy dBusProxy) senderName The sender of the signal or null if the connection is not a bus connection. (optional) signalName The name of the signal. (optional) parameters A #GVariant tuple with parameters for the signal. (optional) dBusProxy the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID