DBusConnection.connectClosed

Connect to Closed signal.

Emitted when the connection is closed.

The cause of this event can be

  • If gio.dbus_connection.DBusConnection.close is called. In this case remote_peer_vanished is set to false and error is null.
  • If the remote peer closes the connection. In this case remote_peer_vanished is set to true and error is set.
  • If the remote peer sends invalid or malformed data. In this case remote_peer_vanished is set to false and error is set.

Upon receiving this signal, you should give up your reference to connection. You are guaranteed that this signal is emitted only once.

class DBusConnection
ulong
connectClosed
(
T
)
(,
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] == bool)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] == glib.error.ErrorG)
)
)
&&
(
Parameters!T.length < 3 ||
(
ParameterStorageClassTuple!T[2] == ParameterStorageClass.none &&
)
)
&&
Parameters!T.length < 4
)

Parameters

callback T

signal callback delegate or function to connect

void callback(bool remotePeerVanished, glib.error.ErrorG error, gio.dbus_connection.DBusConnection dBusConnection)

remotePeerVanished true if connection is closed because the remote peer closed its end of the connection (optional)

error a #GError with more details about the event or null (optional)

dBusConnection the instance the signal is connected to (optional)

after Flag!"After"

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

Return Value

Type: ulong

Signal ID