LLEventNotifier Class Reference

#include <lleventnotifier.h>

Collaboration diagram for LLEventNotifier:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::map< U32, LLEventNotification * > en_map

Public Member Functions

 LLEventNotifier ()
virtual ~LLEventNotifier ()
void update ()
void load (const LLUserAuth::options_t &event_options)
void add (LLEventInfo &event_info)
void remove (U32 event_id)
BOOL hasNotification (const U32 event_id)

Static Public Member Functions

static void notifyCallback (S32 option, void *user_data)

Protected Attributes

en_map mEventNotifications
LLFrameTimer mNotificationTimer

Detailed Description

Definition at line 43 of file lleventnotifier.h.


Member Typedef Documentation

typedef std::map<U32, LLEventNotification *> LLEventNotifier::en_map

Definition at line 57 of file lleventnotifier.h.


Constructor & Destructor Documentation

LLEventNotifier::LLEventNotifier (  ) 

Definition at line 46 of file lleventnotifier.cpp.

LLEventNotifier::~LLEventNotifier (  )  [virtual]

Definition at line 51 of file lleventnotifier.cpp.

References mEventNotifications.


Member Function Documentation

void LLEventNotifier::add ( LLEventInfo event_info  ) 

Definition at line 128 of file lleventnotifier.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, LLMessageSystem::addU32(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLEventNotification::load(), mEventNotifications, LLEventInfo::mID, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLMessageSystem::nextBlockFast(), and LLAgent::sendReliableMessage().

Referenced by LLPanelEvent::onClickNotify().

BOOL LLEventNotifier::hasNotification ( const U32  event_id  ) 

Definition at line 118 of file lleventnotifier.cpp.

References FALSE, mEventNotifications, and TRUE.

Referenced by LLPanelEvent::onClickNotify(), and LLPanelEvent::processEventInfoReply().

void LLEventNotifier::load ( const LLUserAuth::options_t event_options  ) 

Definition at line 96 of file lleventnotifier.cpp.

References LLEventNotification::getEventID(), LLEventNotification::load(), and mEventNotifications.

Referenced by idle_startup().

void LLEventNotifier::notifyCallback ( S32  option,
void user_data 
) [static]

Definition at line 177 of file lleventnotifier.cpp.

References gAgent, gDisplayEventHack, LLEventNotification::getEventID(), LLEventNotification::getEventPosGlobal(), gFloaterWorldMap, llendl, llwarns, LLFloaterDirectory::showEvents(), LLAgent::teleportViaLocation(), LLFloaterWorldMap::trackLocation(), and TRUE.

Referenced by update().

void LLEventNotifier::remove ( U32  event_id  ) 

Definition at line 153 of file lleventnotifier.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, LLMessageSystem::addU32(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, mEventNotifications, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLMessageSystem::nextBlockFast(), and LLAgent::sendReliableMessage().

Referenced by LLPanelEvent::onClickNotify().

void LLEventNotifier::update (  ) 

Definition at line 64 of file lleventnotifier.cpp.

References LLFrameTimer::getElapsedTimeF32(), mEventNotifications, mNotificationTimer, notifyCallback(), LLFrameTimer::reset(), LLNotifyBox::showXml(), and time_corrected().

Referenced by idle().


Member Data Documentation

en_map LLEventNotifier::mEventNotifications [protected]

Definition at line 61 of file lleventnotifier.h.

Referenced by add(), hasNotification(), load(), remove(), update(), and ~LLEventNotifier().

LLFrameTimer LLEventNotifier::mNotificationTimer [protected]

Definition at line 62 of file lleventnotifier.h.

Referenced by update().


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