LLViewerCommunication Class Reference

Implements viewer/object communication This object manages the process by registering extensions and handling parsing of the protocol. More...

#include <llviewercommunication.h>

Collaboration diagram for LLViewerCommunication:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLViewerCommunication ()
bool parse (const LLString &text, const LLUUID &speaker)
 Parses a chat message and extracts protocol data from it if present.
bool parse (char *text, const LLUUID &speaker)
void registerExtension (LLViewerExtension ext)

Protected Attributes

std::map< LLString, LLViewerExtensionmExtensions
std::map< LLUUID, LLViewerCircuitmCircuits

Detailed Description

Implements viewer/object communication This object manages the process by registering extensions and handling parsing of the protocol.

Definition at line 117 of file llviewercommunication.h.


Constructor & Destructor Documentation

LLViewerCommunication::LLViewerCommunication (  ) 

Definition at line 128 of file llviewercommunication.cpp.

References NULL, protocol_handler(), registerExtension(), and VIEWER_EXTENSION.


Member Function Documentation

bool LLViewerCommunication::parse ( char *  text,
const LLUUID speaker 
) [inline]

Definition at line 129 of file llviewercommunication.h.

References parse().

bool LLViewerCommunication::parse ( const LLString text,
const LLUUID speaker 
)

Parses a chat message and extracts protocol data from it if present.

Parameters:
text Chat message
speaker Speaker's key
Returns:
TRUE if the message was a protocol message, FALSE otherwise.

Definition at line 133 of file llviewercommunication.cpp.

References llendl, llinfos, llwarns, MAGIC_WORD, MAX_TOKENS, mCircuits, mExtensions, LLViewerExtension::notify(), OFF_DATA, OFF_EXTENSION, OFF_MAGIC, OFF_VERSION, S32, tokenize(), VERSION, and VIEWER_EXTENSION.

Referenced by parse(), process_chat_from_simulator(), and process_improved_im().

void LLViewerCommunication::registerExtension ( LLViewerExtension  ext  )  [inline]

Definition at line 131 of file llviewercommunication.h.

References LLViewerExtension::getName(), and mExtensions.

Referenced by LLFloaterNetwork2080::LLFloaterNetwork2080(), LLTrustNet::LLTrustNet(), and LLViewerCommunication().


Member Data Documentation

std::map<LLUUID, LLViewerCircuit> LLViewerCommunication::mCircuits [protected]

Definition at line 136 of file llviewercommunication.h.

Referenced by parse().

std::map<LLString, LLViewerExtension> LLViewerCommunication::mExtensions [protected]

Definition at line 135 of file llviewercommunication.h.

Referenced by parse(), and registerExtension().


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