Signal

Connect and emit events.

TypeClass

This class implements the signal/slot pattern, which is used as event type.

Methods

connect(slot)

Connect slot to the signal, and return an ID that can be used to disconnect it.

The signature of slot must match the event's type.

Parameters

Return

Integer

disconnect(id)

Disconnect the id from the signal.

Parameters

disconnectAll()

Disconnect all slots in the signal.

isEmpty()

Return true if there is no slot connected to the signal.

Return

Boolean