Public Member Functions | |
void | register (GenericSlot) |
Provides an interface that must be implemented by classes that own Slots in a managed way.
Definition at line 33 of file slot.d.
|
Deriving classes must implement this function to keep a list of Slots that it owns, and disconnect() them in the destructor (so that connected Signals remove their reference). Also, deriving classes must provide and use a method (say, .discard()) to disconnect all slots when the object is no longer used, so that it may be garbage collected. |