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);
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         static bool dispatchRightClick(const std::string& url);
00052 
00053 };
00054 
00055 #endif

Generated on Thu Jul 1 06:09:24 2010 for Second Life Viewer by  doxygen 1.4.7