aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanellogin.h
diff options
context:
space:
mode:
authorJacek Antonelli2009-04-30 13:04:20 -0500
committerJacek Antonelli2009-04-30 13:07:16 -0500
commitca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch)
tree8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/newview/llpanellogin.h
parentSecond Life viewer sources 1.22.11 (diff)
downloadmeta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz
Second Life viewer sources 1.23.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanellogin.h48
1 files changed, 14 insertions, 34 deletions
diff --git a/linden/indra/newview/llpanellogin.h b/linden/indra/newview/llpanellogin.h
index dba6cf4..47d42da 100644
--- a/linden/indra/newview/llpanellogin.h
+++ b/linden/indra/newview/llpanellogin.h
@@ -17,7 +17,8 @@
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://secondlifegrid.net/programs/open_source/licensing/flossexception 20 * online at
21 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 22 *
22 * By copying, modifying or distributing this software, you acknowledge 23 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 24 * that you have read and understood your obligations described above,
@@ -33,36 +34,11 @@
33#define LL_LLPANELLOGIN_H 34#define LL_LLPANELLOGIN_H
34 35
35#include "llpanel.h" 36#include "llpanel.h"
36#include "llcommandhandler.h" 37#include "llmemory.h" // LLPointer<>
37#include "lldbstrings.h" 38#include "llwebbrowserctrl.h" // LLWebBrowserCtrlObserver
38#include "llmemory.h" 39
39#include "llviewerimage.h" 40class LLUIImage;
40#include "llstring.h"
41#include "llmd5.h"
42#include "llwebbrowserctrl.h"
43
44class LLTextBox;
45class LLLineEditor;
46class LLCheckBoxCtrl;
47class LLButton;
48class LLComboBox;
49
50
51class LLLoginHandler : public LLCommandHandler
52{
53 public:
54 // allow from external browsers
55 LLLoginHandler() : LLCommandHandler("login", true) { }
56 bool handle(const LLSD& tokens, const LLSD& queryMap);
57 bool parseDirectLogin(std::string url);
58 void parse(const LLSD& queryMap);
59
60 LLUUID mWebLoginKey;
61 std::string mFirstName;
62 std::string mLastName;
63};
64 41
65extern LLLoginHandler gLoginHandler;
66 42
67class LLPanelLogin: 43class LLPanelLogin:
68 public LLPanel, 44 public LLPanel,
@@ -83,14 +59,15 @@ public:
83 void (*callback)(S32 option, void* user_data), 59 void (*callback)(S32 option, void* user_data),
84 void* callback_data); 60 void* callback_data);
85 61
62 // Remember password checkbox is set via gSavedSettings "RememberPassword"
86 static void setFields(const std::string& firstname, const std::string& lastname, 63 static void setFields(const std::string& firstname, const std::string& lastname,
87 const std::string& password, BOOL remember); 64 const std::string& password);
88 65
89 static void addServer(const std::string& server, S32 domain_name); 66 static void addServer(const std::string& server, S32 domain_name);
90 static void refreshLocation( bool force_visible ); 67 static void refreshLocation( bool force_visible );
91 68
92 static void getFields(std::string& firstname, std::string& lastname, 69 static void getFields(std::string *firstname, std::string *lastname,
93 std::string& password, BOOL& remember); 70 std::string *password);
94 71
95 static BOOL isGridComboDirty(); 72 static BOOL isGridComboDirty();
96 static void getLocation(std::string &location); 73 static void getLocation(std::string &location);
@@ -107,7 +84,7 @@ public:
107private: 84private:
108 static void onClickConnect(void*); 85 static void onClickConnect(void*);
109 static void onClickNewAccount(void*); 86 static void onClickNewAccount(void*);
110 static void newAccountAlertCallback(S32 option, void*); 87 static bool newAccountAlertCallback(const LLSD& notification, const LLSD& response);
111 static void onClickQuit(void*); 88 static void onClickQuit(void*);
112 static void onClickVersion(void*); 89 static void onClickVersion(void*);
113 virtual void onNavigateComplete( const EventType& eventIn ); 90 virtual void onNavigateComplete( const EventType& eventIn );
@@ -130,4 +107,7 @@ private:
130 BOOL mHtmlAvailable; 107 BOOL mHtmlAvailable;
131}; 108};
132 109
110std::string load_password_from_disk(void);
111void save_password_to_disk(const char* hashed_password);
112
133#endif 113#endif