aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llweb.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-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