aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llweb.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:19 -0500
committerJacek Antonelli2008-08-15 23:45:19 -0500
commitb235c59d60472f818a9142c0886b95a0ff4191d7 (patch)
treed323c55587584b19cc43a03f58a178823f12d3cd /linden/indra/newview/llweb.h
parentSecond Life viewer sources 1.18.5.3 (diff)
downloadmeta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.zip
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.gz
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.bz2
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.xz
Second Life viewer sources 1.18.6.0-RC
Diffstat (limited to 'linden/indra/newview/llweb.h')
-rw-r--r--linden/indra/newview/llweb.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/linden/indra/newview/llweb.h b/linden/indra/newview/llweb.h
index b339f2d..318410b 100644
--- a/linden/indra/newview/llweb.h
+++ b/linden/indra/newview/llweb.h
@@ -34,21 +34,31 @@
34#define LL_LLWEB_H 34#define LL_LLWEB_H
35 35
36#include <string> 36#include <string>
37#include "llalertdialog.h"
37 38
38class LLWeb 39class LLWeb
39{ 40{
40public: 41public:
42 static void initClass();
43
41 // Loads unescaped url in either internal web browser or external 44 // Loads unescaped url in either internal web browser or external
42 // browser, depending on user settings. 45 // browser, depending on user settings.
43 static void loadURL(std::string url); 46 static void loadURL(const std::string& url);
44 47
45 static void loadURL(const char* url) { loadURL( std::string(url) ); } 48 static void loadURL(const char* url) { loadURL( std::string(url) ); }
46 49
47 // Loads unescaped url in external browser. 50 // Loads unescaped url in external browser.
48 static void loadURLExternal(std::string url); 51 static void loadURLExternal(const std::string& url);
49 52
50 // Returns escaped (eg, " " to "%20") url 53 // Returns escaped (eg, " " to "%20") url
51 static std::string escapeURL(std::string url); 54 static std::string escapeURL(const std::string& url);
55
56 class URLLoader : public LLAlertDialog::URLLoader
57 {
58 virtual void load(const std::string& url);
59 };
60
61 static URLLoader sAlertURLLoader;
52}; 62};
53 63
54#endif 64#endif