summaryrefslogtreecommitdiff
path: root/indra/newview/llpanellogin.h
diff options
context:
space:
mode:
authorTess Chu <tess@lindenlab.com>2007-11-20 02:53:43 +0000
committerTess Chu <tess@lindenlab.com>2007-11-20 02:53:43 +0000
commit2f6c7606241acdf800a2c079b359e7a1db360954 (patch)
treeadb6e6e34f9c3df1e2252b2f763ae20970c0e2d4 /indra/newview/llpanellogin.h
parent813b140d0767146b17acf4ad2fb96fbd5a347c34 (diff)
svn merge -r 73926:74098 svn+ssh://svn/svn/linden/branches/viewer-auth-7
Diffstat (limited to 'indra/newview/llpanellogin.h')
-rw-r--r--indra/newview/llpanellogin.h47
1 files changed, 21 insertions, 26 deletions
diff --git a/indra/newview/llpanellogin.h b/indra/newview/llpanellogin.h
index 447b9ea01c..191e88c25b 100644
--- a/indra/newview/llpanellogin.h
+++ b/indra/newview/llpanellogin.h
@@ -33,7 +33,7 @@
#define LL_LLPANELLOGIN_H
#include "llpanel.h"
-
+#include "llcommandhandler.h"
#include "lldbstrings.h"
#include "llmemory.h"
#include "llviewerimage.h"
@@ -46,6 +46,22 @@ class LLCheckBoxCtrl;
class LLButton;
class LLComboBox;
+
+class LLLoginHandler : public LLCommandHandler
+{
+ public:
+ LLLoginHandler() : LLCommandHandler("login") { }
+ bool handle(const LLSD& tokens, const LLSD& queryMap);
+ bool parseDirectLogin(std::string url);
+ void parse(const LLSD& queryMap);
+
+ LLUUID mWebLoginKey;
+ LLString mFirstName;
+ LLString mLastName;
+};
+
+extern LLLoginHandler gLoginHandler;
+
class LLPanelLogin
: public LLPanel
{
@@ -57,39 +73,22 @@ public:
virtual BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent);
virtual void draw();
- virtual void setFocus( BOOL b );
static void show(const LLRect &rect, BOOL show_server,
void (*callback)(S32 option, void* user_data),
void* callback_data);
- static void setFields(const std::string& firstname, const std::string& lastname,
- const std::string& password, BOOL remember);
-
- static void addServer(const char *server, S32 domain_name);
- static void refreshLocation( bool force_visible );
-
- static void getFields(LLString &firstname, LLString &lastname,
- LLString &password, BOOL &remember);
-
- static BOOL getServer(LLString &server, S32& domain_name);
- static void getLocation(LLString &location);
-
static void close();
void setSiteIsAlive( bool alive );
- static void giveFocus();
- static void mungePassword(LLUICtrl* caller, void* user_data);
-
+ static void loadLoginPage();
+ static void giveFocus();
+ static void setAlwaysRefresh(bool refresh);
+
private:
- static void onClickConnect(void*);
- static void onClickNewAccount(void*);
- static void newAccountAlertCallback(S32 option, void*);
static void onClickQuit(void*);
static void onClickVersion(void*);
- static void onClickForgotPassword(void*);
- static void onPassKey(LLLineEditor* caller, void* user_data);
private:
LLPointer<LLViewerImage> mLogoImage;
@@ -97,11 +96,7 @@ private:
void (*mCallback)(S32 option, void *userdata);
void* mCallbackData;
- std::string mIncomingPassword;
- std::string mMungedPassword;
-
static LLPanelLogin* sInstance;
- static BOOL sCapslockDidNotification;
BOOL mHtmlAvailable;
};