FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
Public Member Functions | Protected Types | Protected Attributes | List of all members
FB::PluginEventSource Class Reference

Base class for any object, such as BrowserStream or PluginWindow, that needs to fire events to a PluginEventSink object (such as a PluginCore derived plugin class) More...

#include "PluginEventSource.h"

Inheritance diagram for FB::PluginEventSource:
Inheritance graph

Public Member Functions

virtual void AttachObserver (PluginEventSink *sink)
 Attach a PluginEventSink to receive events. More...
 
virtual void DetachObserver (PluginEventSink *sink)
 Detach a PluginEventSink so it no longer receives events from this source. More...
 
virtual bool SendEvent (PluginEvent *evt)
 Sends an event to all attached sinks. More...
 
template<class T >
T * get_as ()
 Templated convenience function for performing a dynamic cast of this object. More...
 
template<class T >
bool validType ()
 Returns true if the object can be cast to the specified type. More...
 

Protected Types

typedef std::list
< PluginEventSinkWeakPtr > 
ObserverMap
 Defines an alias representing the observer . More...
 

Protected Attributes

boost::recursive_mutex m_observerLock
 List of attached observers. More...
 

Detailed Description

Base class for any object, such as BrowserStream or PluginWindow, that needs to fire events to a PluginEventSink object (such as a PluginCore derived plugin class)

Definition at line 38 of file PluginEventSource.h.


The documentation for this class was generated from the following files: