6 #ifndef __FWCOM_CONNECTION_HPP__ 7 #define __FWCOM_CONNECTION_HPP__ 9 #include "fwCom/config.hpp" 11 #include "fwCom/SlotConnectionBase.hpp" 38 SlotConnectionBase::BlockerSptrType m_blocker;
45 Connection(
const SlotConnectionBase::sptr &connection) : m_connectionBase(connection)
52 SlotConnectionBase::sptr connection(m_connectionBase.lock());
55 connection->disconnect();
62 return m_connectionBase.expired();
70 SlotConnectionBase::BlockerSptrType blocker;
71 SlotConnectionBase::sptr connection(m_connectionBase.lock());
74 blocker = connection->getBlocker();
79 SlotConnectionBase::wptr m_connectionBase;
Class allowing to block a Connection.
Namespace containing fw4spl communication tools.
bool expired() const
Returns whether this Connection is expired or not.
Class managing Signal-Slot connections.
void reset()
Unblock the related Connection.
SlotConnectionBase::BlockerSptrType getBlocker()
Returns a Blocker.
void disconnect()
Disconnect related Connection.