LLSimpleDispatcher Class Reference

Inheritance diagram for LLSimpleDispatcher:

Inheritance graph
[legend]
Collaboration diagram for LLSimpleDispatcher:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLSimpleDispatcher (LLEventDispatcher *parent)
virtual ~LLSimpleDispatcher ()
virtual void addListener (LLEventListener *listener, LLSD filter, const LLSD &userdata)
virtual void removeListener (LLEventListener *listener)
virtual std::vector< LLListenerEntrygetListeners () const
virtual bool fireEvent (LLPointer< LLEvent > event, LLSD filter)

Protected Attributes

std::vector< LLListenerEntrymListeners
LLEventDispatchermParent

Detailed Description

Definition at line 156 of file llevent.cpp.


Constructor & Destructor Documentation

LLSimpleDispatcher::LLSimpleDispatcher ( LLEventDispatcher parent  )  [inline]

Definition at line 159 of file llevent.cpp.

LLSimpleDispatcher::~LLSimpleDispatcher (  )  [virtual]

Definition at line 171 of file llevent.cpp.

References mListeners, and removeListener().


Member Function Documentation

void LLSimpleDispatcher::addListener ( LLEventListener listener,
LLSD  filter,
const LLSD userdata 
) [virtual]

Implements LLEventDispatcher::Impl.

Definition at line 179 of file llevent.cpp.

References LLListenerEntry::filter, LLEventListener::handleAttach(), LLListenerEntry::listener, mListeners, mParent, NULL, removeListener(), and LLListenerEntry::userdata.

bool LLSimpleDispatcher::fireEvent ( LLPointer< LLEvent event,
LLSD  filter 
) [virtual]

Implements LLEventDispatcher::Impl.

Definition at line 219 of file llevent.cpp.

References LLSD::asString(), and mListeners.

std::vector< LLListenerEntry > LLSimpleDispatcher::getListeners (  )  const [virtual]

Implements LLEventDispatcher::Impl.

Definition at line 206 of file llevent.cpp.

References mListeners.

void LLSimpleDispatcher::removeListener ( LLEventListener listener  )  [virtual]

Implements LLEventDispatcher::Impl.

Definition at line 191 of file llevent.cpp.

References end, and mListeners.

Referenced by addListener(), and ~LLSimpleDispatcher().


Member Data Documentation

std::vector<LLListenerEntry> LLSimpleDispatcher::mListeners [protected]

Definition at line 167 of file llevent.cpp.

Referenced by addListener(), fireEvent(), getListeners(), removeListener(), and ~LLSimpleDispatcher().

LLEventDispatcher* LLSimpleDispatcher::mParent [protected]

Definition at line 168 of file llevent.cpp.

Referenced by addListener().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:11:46 2010 for Second Life Viewer by  doxygen 1.4.7