#include <PhxEventNotifier.h>
Inheritance diagram for Phx::EventNotifier:

Public Member Functions | |
| virtual void | newListener (Listener *listener)=0 |
| Adds a listener to this notifier. | |
| virtual void | deleteListener (Listener *listener)=0 |
| Removes a listener from this notifier. | |
| virtual void | newEvent (void)=0 |
| Triggers a new event callback. | |
Static Public Attributes | |
| static const NamedInterface::Type | INTERFACE_TYPE |
| static const String | INTERFACE_TYPE_NAME |
Classes | |
| class | Listener |
| A Listener class that can be installed to receive notifications when the event represented by this notifier occurs. More... | |
An EventNotifier is essentially a collection of listeners. The listeners are triggered when the EventNotifier's client calls newEvent().
|
|
Removes a listener from this notifier.
|
|
|
Triggers a new event callback. All of the listeners in this EventNotifier will be called back, in no particular order. This method is safely accessible by multiple, concurrent clients. As a result, the EventNotifier is potentially a many-to-many notification system. However, one should never trigger an event notifier unless the behavior of doing so is documented. e.g., only the Core should ever trigger the start/end frame notifications, but several clients may trigger a Quit notification (perhaps more than one and simultaneously). |
|
|
Adds a listener to this notifier.
|
1.4.2