7 #ifndef __FWCOM_HELPER_SIGSLOTCONNECTION_HPP__ 8 #define __FWCOM_HELPER_SIGSLOTCONNECTION_HPP__ 10 #include "fwCom/config.hpp" 11 #include <fwCom/Connection.hpp> 12 #include <fwCom/HasSignals.hpp> 13 #include <fwCom/HasSlots.hpp> 33 typedef std::list< ::fwCom::Connection > ConnectionContainerType;
35 typedef std::pair< ::fwCom::Signals::SignalKeyType, ::fwCom::Slots::SlotKeyType > KeyConnectionType;
37 typedef std::vector< KeyConnectionType > KeyConnectionsType;
43 FWCOM_API
virtual ~SigSlotConnection();
46 FWCOM_API
void connect(const ::fwCom::HasSignals::csptr& hasSignals, ::fwCom::Signals::SignalKeyType signalKey,
47 const ::fwCom::HasSlots::csptr& hasSlots, ::fwCom::Slots::SlotKeyType slotKey );
50 FWCOM_API
void connect(const ::fwCom::HasSignals::csptr& hasSignals, const ::fwCom::HasSlots::csptr& hasSlots,
51 const KeyConnectionsType& keyConnections );
57 FWCOM_API
void disconnect();
68 #endif // __FWCOM_HELPER_SIGSLOTCONNECTION_HPP__ ConnectionContainerType m_connections
Connections storage.
Namespace containing fw4spl communication tools.
Class managing Signal-Slot connections.
This class provides few tools to ease connect/disconnect between a signal emitter and a slot receiver...