diff options
author | Tess Chu <tess@lindenlab.com> | 2007-11-15 22:39:12 +0000 |
---|---|---|
committer | Tess Chu <tess@lindenlab.com> | 2007-11-15 22:39:12 +0000 |
commit | 813b140d0767146b17acf4ad2fb96fbd5a347c34 (patch) | |
tree | d47a36708813b3f93b4049d822f966c48de4e576 /indra/newview/llpanellogin.h | |
parent | 291d99bc66c4c2b8009ba723a43e2e97d24313f9 (diff) |
svn merge -r73880:73879 svn+ssh://svn/svn/linden/release. backing out viewer auth merge
Diffstat (limited to 'indra/newview/llpanellogin.h')
-rw-r--r-- | indra/newview/llpanellogin.h | 47 |
1 files changed, 26 insertions, 21 deletions
diff --git a/indra/newview/llpanellogin.h b/indra/newview/llpanellogin.h index 191e88c25b..447b9ea01c 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,22 +46,6 @@ 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 { @@ -73,22 +57,39 @@ 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 loadLoginPage(); - static void giveFocus(); - static void setAlwaysRefresh(bool refresh); - + static void giveFocus(); + static void mungePassword(LLUICtrl* caller, void* user_data); + 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; @@ -96,7 +97,11 @@ private: void (*mCallback)(S32 option, void *userdata); void* mCallbackData; + std::string mIncomingPassword; + std::string mMungedPassword; + static LLPanelLogin* sInstance; + static BOOL sCapslockDidNotification; BOOL mHtmlAvailable; }; |