aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanellogin.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:27 -0500
committerJacek Antonelli2008-08-15 23:45:27 -0500
commita8a62201ba762e98dff92cf49033e577fc34d8d4 (patch)
tree11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/newview/llpanellogin.h
parentSecond Life viewer sources 1.18.6.4-RC (diff)
downloadmeta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.zip
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.gz
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.bz2
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.xz
Second Life viewer sources 1.19.0.0
Diffstat (limited to 'linden/indra/newview/llpanellogin.h')
-rw-r--r--linden/indra/newview/llpanellogin.h32
1 files changed, 28 insertions, 4 deletions
diff --git a/linden/indra/newview/llpanellogin.h b/linden/indra/newview/llpanellogin.h
index 66215c1..206e700 100644
--- a/linden/indra/newview/llpanellogin.h
+++ b/linden/indra/newview/llpanellogin.h
@@ -12,12 +12,12 @@
12 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of 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 14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlife.com/developers/opensource/gplv2 15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 * 16 *
17 * There are special exceptions to the terms and conditions of the GPL as 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 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 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlife.com/developers/opensource/flossexception 20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 21 *
22 * By copying, modifying or distributing this software, you acknowledge 22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 23 * that you have read and understood your obligations described above,
@@ -51,7 +51,8 @@ class LLComboBox;
51class LLLoginHandler : public LLCommandHandler 51class LLLoginHandler : public LLCommandHandler
52{ 52{
53 public: 53 public:
54 LLLoginHandler() : LLCommandHandler("login") { } 54 // allow from external browsers
55 LLLoginHandler() : LLCommandHandler("login", true) { }
55 bool handle(const LLSD& tokens, const LLSD& queryMap); 56 bool handle(const LLSD& tokens, const LLSD& queryMap);
56 bool parseDirectLogin(std::string url); 57 bool parseDirectLogin(std::string url);
57 void parse(const LLSD& queryMap); 58 void parse(const LLSD& queryMap);
@@ -77,11 +78,24 @@ public:
77 78
78 virtual BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent); 79 virtual BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent);
79 virtual void draw(); 80 virtual void draw();
81 virtual void setFocus( BOOL b );
80 82
81 static void show(const LLRect &rect, BOOL show_server, 83 static void show(const LLRect &rect, BOOL show_server,
82 void (*callback)(S32 option, void* user_data), 84 void (*callback)(S32 option, void* user_data),
83 void* callback_data); 85 void* callback_data);
84 86
87 static void setFields(const std::string& firstname, const std::string& lastname,
88 const std::string& password, BOOL remember);
89
90 static void addServer(const char *server, S32 domain_name);
91 static void refreshLocation( bool force_visible );
92
93 static void getFields(LLString &firstname, LLString &lastname,
94 LLString &password, BOOL &remember);
95
96 static BOOL getServer(LLString &server, S32& domain_name);
97 static void getLocation(LLString &location);
98
85 static void close(); 99 static void close();
86 100
87 void setSiteIsAlive( bool alive ); 101 void setSiteIsAlive( bool alive );
@@ -89,8 +103,12 @@ public:
89 static void loadLoginPage(); 103 static void loadLoginPage();
90 static void giveFocus(); 104 static void giveFocus();
91 static void setAlwaysRefresh(bool refresh); 105 static void setAlwaysRefresh(bool refresh);
92 106 static void mungePassword(LLUICtrl* caller, void* user_data);
107
93private: 108private:
109 static void onClickConnect(void*);
110 static void onClickNewAccount(void*);
111 static void newAccountAlertCallback(S32 option, void*);
94 static void onClickQuit(void*); 112 static void onClickQuit(void*);
95 static void onClickVersion(void*); 113 static void onClickVersion(void*);
96 114
@@ -98,6 +116,8 @@ private:
98 // browser observer impls 116 // browser observer impls
99 virtual void onNavigateComplete( const EventType& eventIn ); 117 virtual void onNavigateComplete( const EventType& eventIn );
100#endif 118#endif
119 static void onClickForgotPassword(void*);
120 static void onPassKey(LLLineEditor* caller, void* user_data);
101 121
102private: 122private:
103 LLPointer<LLViewerImage> mLogoImage; 123 LLPointer<LLViewerImage> mLogoImage;
@@ -105,7 +125,11 @@ private:
105 void (*mCallback)(S32 option, void *userdata); 125 void (*mCallback)(S32 option, void *userdata);
106 void* mCallbackData; 126 void* mCallbackData;
107 127
128 std::string mIncomingPassword;
129 std::string mMungedPassword;
130
108 static LLPanelLogin* sInstance; 131 static LLPanelLogin* sInstance;
132 static BOOL sCapslockDidNotification;
109 BOOL mHtmlAvailable; 133 BOOL mHtmlAvailable;
110}; 134};
111 135