
Public Member Functions | |
| HasEvents () | |
| Constructor. | |
| virtual | ~HasEvents () |
| Deconstructor. | |
| bool | createEventSlot (const std::string &slotName) |
| Creates a new event slot. | |
| template<typename T > | |
| bool | connectEventSignal (const std::string &slotName, T *t, void(T::*m)(void *)) |
| Connects a function to the given event slot. | |
| template<typename T > | |
| bool | disconnectEventSignal (const std::string &slotName, T *t) |
| Disconnects a function from the given event slot. | |
| bool | emitEvent (const std::string &slotName, void *p=0) |
| Emits an event to the given event slot. | |
| void | removeEventSlots () |
| Removes all event slots. | |
| bool | removeEventSlot (const std::string &slotName) |
| Removes the given event slot. | |
Definition at line 28 of file HasEvents.h.
| HasEvents::HasEvents | ( | ) |
| HasEvents::~HasEvents | ( | ) | [virtual] |
| bool HasEvents::connectEventSignal | ( | const std::string & | slotName, | |
| T * | t, | |||
| void(T::*)(void *) | m | |||
| ) | [inline] |
Connects a function to the given event slot.
| slotName | Name of the event slot. | |
| t | Pointer to the object that will function as this-object when the connect function is called. | |
| m | Pointer to the function. |
Definition at line 50 of file HasEvents.h.
| bool HasEvents::createEventSlot | ( | const std::string & | slotName | ) |
Creates a new event slot.
| slotName | Name of the event slot. |
Definition at line 36 of file HasEvents.cpp.
| bool HasEvents::disconnectEventSignal | ( | const std::string & | slotName, | |
| T * | t | |||
| ) | [inline] |
Disconnects a function from the given event slot.
| slotName | Name of the event slot. | |
| t | Pointer to the object that will function as this-object when the connect function is called. |
Definition at line 70 of file HasEvents.h.
| bool HasEvents::emitEvent | ( | const std::string & | slotName, | |
| void * | p = 0 | |||
| ) |
Emits an event to the given event slot.
| slotName | Name of the event slot. | |
| p | Pointer to data which will be passed to all functions called. |
Definition at line 52 of file HasEvents.cpp.
| bool HasEvents::removeEventSlot | ( | const std::string & | slotName | ) |
Removes the given event slot.
| slotName | Name of the event slot to remove. |
Definition at line 74 of file HasEvents.cpp.
| void HasEvents::removeEventSlots | ( | ) |
1.5.8