26 #ifndef Pt_Connection_h
27 #define Pt_Connection_h
31 #include <Pt/NonCopyable.h>
42 ConnectionData(Connectable& sender, Slot* slot)
70 const Connectable* sender()
const
76 const Slot* slot()
const
107 {
return _data && _data->isValid(); }
111 {
return _data ? _data->sender() : 0; }
115 {
return _data ? _data->
slot() : 0; }
119 {
return this->isValid() ==
false; }
128 bool operator==(
const Connection& connection)
const
129 {
return _data == connection._data; }
132 ConnectionData* _data;
const Slot * slot() const
Returns the slot.
Definition: Connection.h:114
bool isValid() const
Returns true if not closed.
Definition: Connection.h:106
Connection Management for Signal and Slot Objects.
Definition: Connectable.h:49
const Connectable * sender() const
Returns the sender.
Definition: Connection.h:110
Endpoint of a signal/slot connection.
Definition: Slot.h:21
Represents a connection between a Signal/Delegate and a slot.
Definition: Connection.h:90
bool operator!() const
Returns true if closed.
Definition: Connection.h:118
ConstMethodSlot< R, C, ARGS > slot(C &obj, R(BaseT::*memFunc)(ARGS) const )
Returns a slot object for the given object/member pair.