diff options
author | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
commit | 215f423cbe18fe9ca14a26caef918d303bad28ff (patch) | |
tree | 0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/llurldispatcher.h | |
parent | Second Life viewer sources 1.18.3.5-RC (diff) | |
download | meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2 meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz |
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to 'linden/indra/newview/llurldispatcher.h')
-rw-r--r-- | linden/indra/newview/llurldispatcher.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/linden/indra/newview/llurldispatcher.h b/linden/indra/newview/llurldispatcher.h new file mode 100644 index 0000000..74b7f87 --- /dev/null +++ b/linden/indra/newview/llurldispatcher.h | |||
@@ -0,0 +1,55 @@ | |||
1 | /** | ||
2 | * @file llurldispatcher.h | ||
3 | * @brief Central registry for all SL URL handlers | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2007, Linden Research, Inc. | ||
8 | * | ||
9 | * Second Life Viewer Source Code | ||
10 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
11 | * to you under the terms of the GNU General Public License, version 2.0 | ||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
15 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
16 | * | ||
17 | * There are special exceptions to the terms and conditions of the GPL as | ||
18 | * it is applied to this Source Code. View the full text of the exception | ||
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
20 | * online at http://secondlife.com/developers/opensource/flossexception | ||
21 | * | ||
22 | * By copying, modifying or distributing this software, you acknowledge | ||
23 | * that you have read and understood your obligations described above, | ||
24 | * and agree to abide by those obligations. | ||
25 | * | ||
26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
28 | * COMPLETENESS OR PERFORMANCE. | ||
29 | * $/LicenseInfo$ | ||
30 | */ | ||
31 | #ifndef LLURLDISPATCHER_H | ||
32 | #define LLURLDISPATCHER_H | ||
33 | |||
34 | class LLURLDispatcher | ||
35 | { | ||
36 | public: | ||
37 | static bool isSLURL(const std::string& url); | ||
38 | // Is this any sort of secondlife:// or sl:// URL? | ||
39 | |||
40 | static bool isSLURLCommand(const std::string& url); | ||
41 | // Is this a special secondlife://app/ URL? | ||
42 | |||
43 | static bool dispatch(const std::string& url); | ||
44 | // At startup time and on clicks in internal web browsers, | ||
45 | // teleport, open map, or run requested command. | ||
46 | // Handles: | ||
47 | // secondlife://RegionName/123/45/67/ | ||
48 | // secondlife://app/agent/3d6181b0-6a4b-97ef-18d8-722652995cf1/show | ||
49 | // sl://app/foo/bar | ||
50 | // Returns true if someone handled the URL. | ||
51 | static bool dispatchRightClick(const std::string& url); | ||
52 | |||
53 | }; | ||
54 | |||
55 | #endif | ||