Corrade::Interconnect::Connection class

Connection.

Contents

Returned by Interconnect::connect(), allows to remove the connection later using Interconnect::disconnect(). Destruction of the Connection object does not remove the connection, after that the only possibility to remove the connection is to disconnect the whole emitter or receiver or disconnect everything connected to given signal using Emitter::disconnectSignal(), Emitter::disconnectAllSignals() or Receiver::disconnectAllSlots(), or destroy either the emitter or receiver object.

Public functions

auto isConnected() const -> bool deprecated in 2019.10
Whether the connection exists.
void disconnect() deprecated in 2019.10
Remove the connection.
auto isConnectionPossible() const -> bool deprecated in 2019.10
Whether connection is possible.
auto connect() -> bool deprecated in 2019.10
Re-establish the connection.

Function documentation

bool Corrade::Interconnect::Connection::isConnected() const

Whether the connection exists.

void Corrade::Interconnect::Connection::disconnect()

Remove the connection.

bool Corrade::Interconnect::Connection::isConnectionPossible() const

Whether connection is possible.

bool Corrade::Interconnect::Connection::connect()

Re-establish the connection.