diff options
author | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
commit | 420b91db29485df39fd6e724e782c449158811cb (patch) | |
tree | b471a94563af914d3ed3edd3e856d21cb1b69945 /indra/newview/llweb.h |
Print done when done.
Diffstat (limited to 'indra/newview/llweb.h')
-rw-r--r-- | indra/newview/llweb.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/indra/newview/llweb.h b/indra/newview/llweb.h new file mode 100644 index 0000000000..69bfd4f3ae --- /dev/null +++ b/indra/newview/llweb.h @@ -0,0 +1,31 @@ +/** + * @file llweb.h + * @brief Functions dealing with web browsers + * @author James Cook + * + * Copyright (c) 2006-$CurrentYear$, Linden Research, Inc. + * $License$ + */ + +#ifndef LL_LLWEB_H +#define LL_LLWEB_H + +#include <string> + +class LLWeb +{ +public: + // Loads unescaped url in either internal web browser or external + // browser, depending on user settings. + static void loadURL(std::string url); + + static void loadURL(const char* url) { loadURL( std::string(url) ); } + + // Loads unescaped url in external browser. + static void loadURLExternal(std::string url); + + // Returns escaped (eg, " " to "%20") url + static std::string escapeURL(std::string url); +}; + +#endif |