llurldispatcher.h

Go to the documentation of this file.
00001 
00031 #ifndef LLURLDISPATCHER_H
00032 #define LLURLDISPATCHER_H
00033 
00034 class LLURLDispatcher
00035 {
00036 public:
00037         static bool isSLURL(const std::string& url);
00038                 // Is this any sort of secondlife:// or sl:// URL?
00039 
00040         static bool isSLURLCommand(const std::string& url);
00041                 // Is this a special secondlife://app/ URL?
00042 
00043         static bool dispatch(const std::string& url, bool from_external_browser);
00044                 // At startup time and on clicks in internal web browsers,
00045                 // teleport, open map, or run requested command.
00046                 // Handles:
00047                 //   secondlife://RegionName/123/45/67/
00048                 //   secondlife:///app/agent/3d6181b0-6a4b-97ef-18d8-722652995cf1/show
00049                 //   sl://app/foo/bar
00050                 // Returns true if someone handled the URL.
00051 
00052         static bool dispatchRightClick(const std::string& url);
00053 
00054         static bool dispatchFromTextEditor(const std::string& url);
00055 
00056         static std::string buildSLURL(const std::string& regionname, S32 x, S32 y, S32 z);
00057                 //   builds: http://slurl.com/secondlife/RegionName/x/y/z/
00058 };
00059 
00060 #endif

Generated on Fri May 16 08:34:08 2008 for SecondLife by  doxygen 1.5.5