LLObservable Class Reference

#include <llevent.h>

Inheritance diagram for LLObservable:

Inheritance graph
[legend]
Collaboration diagram for LLObservable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLObservable ()
virtual ~LLObservable ()
virtual bool setDispatcher (LLPointer< LLEventDispatcher > dispatcher)
virtual LLEventDispatchergetDispatcher ()
void addListener (LLEventListener *listener, LLSD filter="", const LLSD &userdata="")
void removeListener (LLEventListener *listener)
void fireEvent (LLPointer< LLEvent > event, LLSD filter)

Protected Attributes

LLPointer< LLEventDispatchermDispatcher

Detailed Description

Definition at line 159 of file llevent.h.


Constructor & Destructor Documentation

LLObservable::LLObservable (  ) 

Definition at line 61 of file llevent.cpp.

LLObservable::~LLObservable (  )  [virtual]

Definition at line 67 of file llevent.cpp.

References mDispatcher, LLPointer< Type >::notNull(), and NULL.


Member Function Documentation

void LLObservable::addListener ( LLEventListener listener,
LLSD  filter = "",
const LLSD userdata = "" 
) [inline]

Definition at line 173 of file llevent.h.

References mDispatcher, and LLPointer< Type >::notNull().

Referenced by LLVOAvatar::buildCharacter(), LLObjectBridge::buildContextMenu(), LLAgent::init(), LLUI::initClass(), LLNetMap::LLNetMap(), LLPanelGroups::LLPanelGroups(), LLVoiceClient::LLVoiceClient(), LLMenuGL::parseChildXML(), LLControlBase::registerListener(), saved_settings_to_globals(), and settings_setup_listeners().

void LLObservable::fireEvent ( LLPointer< LLEvent event,
LLSD  filter 
)

Definition at line 100 of file llevent.cpp.

References mDispatcher, and LLPointer< Type >::notNull().

Referenced by LLMenuItemCallGL::buildDrawLabel(), LLMenuItemCallGL::doIt(), LLControlBase::firePropertyChanged(), LLMenuItemCallGL::handleAcceleratorKey(), LLButton::setToggleState(), and update_group_floaters().

LLEventDispatcher * LLObservable::getDispatcher (  )  [virtual]

Definition at line 94 of file llevent.cpp.

References mDispatcher.

void LLObservable::removeListener ( LLEventListener listener  )  [inline]

Definition at line 177 of file llevent.h.

References mDispatcher, and LLPointer< Type >::notNull().

Referenced by LLPanelGroups::~LLPanelGroups().

bool LLObservable::setDispatcher ( LLPointer< LLEventDispatcher dispatcher  )  [virtual]

Definition at line 77 of file llevent.cpp.

References mDispatcher, LLPointer< Type >::notNull(), and NULL.


Member Data Documentation

LLPointer<LLEventDispatcher> LLObservable::mDispatcher [protected]

Definition at line 185 of file llevent.h.

Referenced by addListener(), fireEvent(), getDispatcher(), LLMenuItemCallGL::getXML(), removeListener(), setDispatcher(), and ~LLObservable().


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