#include <Pt/Connectable.h>
Connection Management for Signal and Slot Objects.
More...
Inherited by ConnectionAwaiter, , DefaultInputMethod, Widget, Client, IOStream, Server, WebSocket, HttpClient, AsyncAdvance, Script, , , HttpClient, Application, and AsyncWait.
|
|
| Connectable () |
| | Default constructor.
|
| virtual | ~Connectable () |
| | Closes all connections.
|
This class implements connection management for signal and slot objects. It makes sure that all connections where this object is involved are closed on destruction. Deriving classes can overload Connectable::opened and Connectable::closed to tune connection managenment.
◆ ~Connectable()
When a Connectable object is destroyed, it closes all its connections automatically.
◆ Connectable()
| Connectable |
( |
const Connectable & | c | ) |
|
|
protected |
Connectables can be copied if the derived class provides a public copy constructor. This method will not attempt to copy any connections.
◆ operator=()
Connectables can be copied if the derived class provides a public copy constructor. This method will not attempt to copy any connections.