28 #ifndef _CEGUIEvent_h_
29 #define _CEGUIEvent_h_
31 #include "CEGUIString.h"
32 #include "CEGUIBoundSlot.h"
33 #include "CEGUISubscriberSlot.h"
34 #include "CEGUIRefCounted.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
100 d_connection(connection)
105 d_connection = connection;
109 bool connected()
const
110 {
return d_connection.
isValid() ? d_connection->connected() :
false; }
113 {
if (d_connection.isValid()) d_connection->disconnect(); }
156 Connection subscribe(
const Subscriber& slot);
177 Connection subscribe(Group group,
const Subscriber& slot);
211 Event& operator=(
const Event&) {
return *
this;}
213 typedef std::multimap<Group, Connection> SlotContainer;
214 SlotContainer d_slots;
220 #if defined(_MSC_VER)
221 # pragma warning(pop)
224 #endif // end of guard _CEGUIEvent_h_