Connectable Class Reference

#include <Pt/Connectable.h>

Connection Management for Signal and Slot Objects. More...

Inherited by Delegate< R, ARGUMENTS >, DelegateBase, Client, Server, Signal< ARGUMENTS >, Signal< const Pt::Event & >, SignalBase, HttpClient, Application, EventLoop, IOBuffer, HttpClient, Signal< const Pt::Event & >, Signal< const Pt::Remoting::Result< R > & >, Signal< int >, Signal< Pt::Http::Authorization & >, Signal< Pt::Http::Reply & >, Signal< Pt::Http::Request & >, Signal< Pt::Net::TcpServer & >, Signal< Pt::Net::TcpSocket & >, Signal< Pt::Net::UdpSocket & >, Signal< Pt::System::FileDevice & >, Signal< Pt::System::IOBuffer & >, and Signal< Pt::System::IODevice & >.

Public Member Functions

 Connectable ()
 Default constructor.
 
virtual ~Connectable ()
 Closes all connections. More...
 

Protected Member Functions

 Connectable (const Connectable &c)
 Copy constructor. More...
 
Connectableoperator= (const Connectable &rhs)
 Assignment operator. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

virtual ~Connectable ( )
virtual

When a Connectable object is destroyed, it closes all its connections automatically.

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.

Member Function Documentation

Connectable& operator= ( const Connectable rhs)
protected

Connectables can be copied if the derived class provides a public copy constructor. This method will not attempt to copy any connections.