|
fw4spl
|
This class provides few tools to ease connect/disconnect between a signal emitter and a slot receiver. More...
#include <SigSlotConnection.hpp>
Collaboration diagram for fwCom::helper::SigSlotConnection:Public Types | |
| typedef std::list< ::fwCom::Connection > | ConnectionContainerType |
| typedef std::pair< ::fwCom::Signals::SignalKeyType,::fwCom::Slots::SlotKeyType > | KeyConnectionType |
| typedef std::vector< KeyConnectionType > | KeyConnectionsType |
Public Member Functions | |
| FWCOM_API | SigSlotConnection () |
| Constructor, do nothing. | |
| virtual FWCOM_API | ~SigSlotConnection () |
| Destructor, call disconnect() | |
| FWCOM_API void | connect (const ::fwCom::HasSignals::csptr &hasSignals,::fwCom::Signals::SignalKeyType signalKey, const ::fwCom::HasSlots::csptr &hasSlots,::fwCom::Slots::SlotKeyType slotKey) |
| Connect signal to slot, and register this new connection in m_connections. | |
| FWCOM_API void | connect (const ::fwCom::HasSignals::csptr &hasSignals, const ::fwCom::HasSlots::csptr &hasSlots, const KeyConnectionsType &keyConnections) |
| Connect signals to slots, and register these new connections in m_connections. | |
| FWCOM_API void | addConnection (::fwCom::Connection connection) |
| Add a connection. | |
| FWCOM_API void | disconnect () |
| Disconnect all registered connections and clear m_connections. | |
Protected Attributes | |
| ConnectionContainerType | m_connections |
| Connections storage. | |
This class provides few tools to ease connect/disconnect between a signal emitter and a slot receiver.
Definition at line 28 of file SigSlotConnection.hpp.