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, bool from_external_browser) |
static bool | dispatchRightClick (const std::string &url) |
Static Private Member Functions | |
static bool | dispatchCore (const std::string &url, bool from_external_browser, bool right_mouse) |
static bool | dispatchHelp (const std::string &url, BOOL right_mouse) |
static bool | dispatchApp (const std::string &url, bool from_external_browser, 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 void | regionNameCallback (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 |
Definition at line 60 of file llurldispatcher.cpp.
bool LLURLDispatcherImpl::isSLURL | ( | const std::string & | url | ) | [static] |
Definition at line 108 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 118 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::dispatch | ( | const std::string & | url, | |
bool | from_external_browser | |||
) | [static] |
Definition at line 148 of file llurldispatcher.cpp.
References dispatchCore(), llendl, and llinfos.
Referenced by LLURLDispatcher::dispatch(), and LLURLDispatcher::dispatchFromTextEditor().
bool LLURLDispatcherImpl::dispatchRightClick | ( | const std::string & | url | ) | [static] |
Definition at line 156 of file llurldispatcher.cpp.
References dispatchCore(), llendl, and llinfos.
Referenced by LLURLDispatcher::dispatchRightClick().
bool LLURLDispatcherImpl::dispatchCore | ( | const std::string & | url, | |
bool | from_external_browser, | |||
bool | right_mouse | |||
) | [static, private] |
Definition at line 130 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 164 of file llurldispatcher.cpp.
References gViewerHtmlHelp, matchPrefix(), LLViewerHtmlHelp::show(), and SLURL_SL_HELP_PREFIX.
Referenced by dispatchCore().
bool LLURLDispatcherImpl::dispatchApp | ( | const std::string & | url, | |
bool | from_external_browser, | |||
BOOL | right_mouse | |||
) | [static, private] |
Definition at line 175 of file llurldispatcher.cpp.
References LLCommandDispatcher::dispatch(), LLSD::erase(), LLSD::get(), isSLURL(), LLURI::pathArray(), and LLURI::queryMap().
Referenced by dispatchCore().
bool LLURLDispatcherImpl::dispatchRegion | ( | const std::string & | url, | |
BOOL | right_mouse | |||
) | [static, private] |
Definition at line 195 of file llurldispatcher.cpp.
References LLSingleton< LLWorldMap >::getInstance(), LLUIFactory< LLFloaterURLDisplay, LLUISingleton< LLFloaterURLDisplay, VisibilityPolicy< LLFloater > >, VisibilityPolicy< LLFloater > >::getInstance(), LLStartUp::getStartupState(), isSLURL(), LLURLSimString::parse(), LLPanelLogin::refreshLocation(), regionNameCallback(), S32, LLWorldMap::sendNamedRegionRequest(), LLFloaterURLDisplay::setName(), LLURLSimString::setString(), STATE_LOGIN_CLEANUP, and stripProtocol().
Referenced by dispatchCore().
void LLURLDispatcherImpl::regionHandleCallback | ( | U64 | handle, | |
const std::string & | url, | |||
const LLUUID & | snapshot_id, | |||
bool | teleport | |||
) | [static, private] |
Definition at line 273 of file llurldispatcher.cpp.
References LLFloaterURLDisplay::displayParcelInfo(), from_region_handle(), gAgent, LLUIFactory< LLFloaterURLDisplay, LLUISingleton< LLFloaterURLDisplay, VisibilityPolicy< LLFloater > >, VisibilityPolicy< LLFloater > >::getInstance(), gFloaterWorldMap, llformat(), locationString(), LLVector3::mV, LLUUID::notNull(), LLURLSimString::parse(), REGION_WIDTH_UNITS, S32, LLFloaterURLDisplay::setLocationString(), LLFloaterURLDisplay::setSnapshotDisplay(), stripProtocol(), LLAgent::teleportViaLocation(), LLFloaterWorldMap::trackLocation(), VX, VY, and VZ.
Referenced by LLTeleportHandler::handle(), and regionNameCallback().
void LLURLDispatcherImpl::regionNameCallback | ( | U64 | handle, | |
const std::string & | url, | |||
const LLUUID & | snapshot_id, | |||
bool | teleport | |||
) | [static, private] |
Definition at line 235 of file llurldispatcher.cpp.
References from_region_handle(), LLSingleton< LLWorldMap >::getInstance(), LLVector3::mV, LLURLSimString::parse(), REGION_WIDTH_UNITS, regionHandleCallback(), S32, LLWorldMap::sendHandleRegionRequest(), stripProtocol(), to_region_handle(), VX, VY, and VZ.
Referenced by dispatchRegion().
bool LLURLDispatcherImpl::matchPrefix | ( | const std::string & | url, | |
const std::string & | prefix | |||
) | [static, private] |
Definition at line 324 of file llurldispatcher.cpp.
References LLStringBase< char >::toLower().
Referenced by dispatchHelp(), isSLURL(), isSLURLCommand(), and stripProtocol().
std::string LLURLDispatcherImpl::stripProtocol | ( | const std::string & | url | ) | [static, private] |
Definition at line 332 of file llurldispatcher.cpp.
References matchPrefix(), SLURL_SECONDLIFE_PREFIX, SLURL_SL_HELP_PREFIX, SLURL_SL_PREFIX, and SLURL_SLURL_PREFIX.
Referenced by dispatchRegion(), regionHandleCallback(), and regionNameCallback().
friend class LLTeleportHandler [friend] |
Definition at line 104 of file llurldispatcher.cpp.