PluginEventSource.h
38 class PluginEventSource : public boost::enable_shared_from_this<PluginEventSource>, boost::noncopyable
virtual void AttachObserver(PluginEventSink *sink)
Attach a PluginEventSink to receive events.
Definition: PluginEventSource.cpp:32
bool validType()
Returns true if the object can be cast to the specified type.
Definition: PluginEventSource.h:105
boost::recursive_mutex m_observerLock
List of attached observers.
Definition: PluginEventSource.h:124
T * get_as()
Templated convenience function for performing a dynamic cast of this object.
Definition: PluginEventSource.h:89
Plugin event sink; all objects that can receive PluginEvent s should inherit from this class...
Definition: PluginEventSink.h:36
std::list< PluginEventSinkWeakPtr > ObserverMap
Defines an alias representing the observer .
Definition: PluginEventSource.h:122
virtual void DetachObserver(PluginEventSink *sink)
Detach a PluginEventSink so it no longer receives events from this source.
Definition: PluginEventSource.cpp:45
virtual bool SendEvent(PluginEvent *evt)
Sends an event to all attached sinks.
Definition: PluginEventSource.cpp:76
Base class for any object, such as BrowserStream or PluginWindow, that needs to fire events to a Plug...
Definition: PluginEventSource.h:38
Generated on Fri Dec 15 2017 16:00:04 for FireBreath by
