#include <Pt/Connection.h>
Represents a connection between a Signal/Delegate and a slot.
Public Member Functions | |
Connection () | |
Default Constructor. | |
Connection (Connectable &sender, Slot *slot) | |
Construct with sender and slot. | |
Connection (const Connection &connection) | |
Copy Constructor. | |
~Connection () | |
Destructor. | |
void | close () |
Closes the connection. | |
bool | isValid () const |
Returns true if not closed. | |
bool | operator! () const |
Returns true if closed. | |
Connection & | operator= (const Connection &connection) |
Assignment operator. | |
const Connectable * | sender () const |
Returns the sender. | |
const Slot * | slot () const |
Returns the slot. | |