LLURLDispatcherImpl Class Reference

List of all members.

Static Public Member Functions

static bool isSLURL (const std::string &url)
static bool isSLURLCommand (const std::string &url)
static bool dispatch (const std::string &url)
static bool dispatchRightClick (const std::string &url)

Static Private Member Functions

static bool dispatchCore (const std::string &url, bool right_mouse)
static bool dispatchHelp (const std::string &url, BOOL right_mouse)
static bool dispatchApp (const std::string &url, BOOL right_mouse)
static bool dispatchRegion (const std::string &url, BOOL right_mouse)
static void regionHandleCallback (U64 handle, const std::string &url, const LLUUID &snapshot_id, bool teleport)
static bool matchPrefix (const std::string &url, const std::string &prefix)
static std::string stripProtocol (const std::string &url)

Friends

class LLTeleportHandler

Detailed Description

Definition at line 61 of file llurldispatcher.cpp.


Member Function Documentation

bool LLURLDispatcherImpl::dispatch ( const std::string &  url  )  [static]

Definition at line 135 of file llurldispatcher.cpp.

References dispatchCore(), llendl, and llinfos.

Referenced by LLURLDispatcher::dispatch().

bool LLURLDispatcherImpl::dispatchApp ( const std::string &  url,
BOOL  right_mouse 
) [static, private]

Definition at line 161 of file llurldispatcher.cpp.

References LLViewerWindow::alertXml(), LLCommandDispatcher::dispatch(), end, gViewerWindow, isSLURL(), params, s, and stripProtocol().

Referenced by dispatchCore().

bool LLURLDispatcherImpl::dispatchCore ( const std::string &  url,
bool  right_mouse 
) [static, private]

Definition at line 125 of file llurldispatcher.cpp.

References dispatchApp(), dispatchHelp(), and dispatchRegion().

Referenced by dispatch(), and dispatchRightClick().

bool LLURLDispatcherImpl::dispatchHelp ( const std::string &  url,
BOOL  right_mouse 
) [static, private]

Definition at line 148 of file llurldispatcher.cpp.

References matchPrefix(), and SLURL_SL_HELP_PREFIX.

Referenced by dispatchCore().

bool LLURLDispatcherImpl::dispatchRegion ( const std::string &  url,
BOOL  right_mouse 
) [static, private]

Definition at line 205 of file llurldispatcher.cpp.

References LLUIInstanceMgr< LLFloaterURLDisplay, LLFloaterURLDisplay >::getInstance(), LLStartUp::getStartupState(), gWorldMap, isSLURL(), LLURLSimString::parse(), LLPanelLogin::refreshLocation(), regionHandleCallback(), S32, LLWorldMap::sendNamedRegionRequest(), LLFloaterURLDisplay::setName(), LLURLSimString::setString(), STATE_CLEANUP, stripProtocol(), x, y, and z.

Referenced by dispatchCore().

bool LLURLDispatcherImpl::dispatchRightClick ( const std::string &  url  )  [static]

Definition at line 142 of file llurldispatcher.cpp.

References dispatchCore(), llendl, and llinfos.

Referenced by LLURLDispatcher::dispatchRightClick().

bool LLURLDispatcherImpl::isSLURL ( const std::string &  url  )  [static]

Definition at line 103 of file llurldispatcher.cpp.

References matchPrefix(), SLURL_SECONDLIFE_PREFIX, SLURL_SL_HELP_PREFIX, SLURL_SL_PREFIX, and SLURL_SLURL_PREFIX.

Referenced by dispatchApp(), dispatchRegion(), and LLURLDispatcher::isSLURL().

bool LLURLDispatcherImpl::isSLURLCommand ( const std::string &  url  )  [static]

Definition at line 113 of file llurldispatcher.cpp.

References matchPrefix(), SLURL_APP_TOKEN, SLURL_SECONDLIFE_PREFIX, SLURL_SL_PREFIX, and SLURL_SLURL_PREFIX.

Referenced by LLURLDispatcher::isSLURLCommand().

bool LLURLDispatcherImpl::matchPrefix ( const std::string &  url,
const std::string &  prefix 
) [static, private]

Definition at line 280 of file llurldispatcher.cpp.

References LLStringBase< char >::toLower().

Referenced by dispatchHelp(), isSLURL(), isSLURLCommand(), and stripProtocol().

void LLURLDispatcherImpl::regionHandleCallback ( U64  handle,
const std::string &  url,
const LLUUID snapshot_id,
bool  teleport 
) [static, private]

Definition at line 244 of file llurldispatcher.cpp.

References LLFloaterURLDisplay::displayParcelInfo(), from_region_handle(), gAgent, LLUIInstanceMgr< LLFloaterURLDisplay, LLFloaterURLDisplay >::getInstance(), llformat(), locationString(), LLVector3::mV, LLUUID::notNull(), LLURLSimString::parse(), S32, LLFloaterURLDisplay::setLocationString(), LLFloaterURLDisplay::setSnapshotDisplay(), stripProtocol(), LLAgent::teleportViaLocation(), VX, VY, VZ, x, y, and z.

Referenced by dispatchRegion(), and LLTeleportHandler::handle().

std::string LLURLDispatcherImpl::stripProtocol ( const std::string &  url  )  [static, private]

Definition at line 288 of file llurldispatcher.cpp.

References matchPrefix(), SLURL_SECONDLIFE_PREFIX, SLURL_SL_HELP_PREFIX, SLURL_SL_PREFIX, and SLURL_SLURL_PREFIX.

Referenced by dispatchApp(), dispatchRegion(), and regionHandleCallback().


Friends And Related Function Documentation

friend class LLTeleportHandler [friend]

Definition at line 99 of file llurldispatcher.cpp.


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