diff options
author | Jacek Antonelli | 2008-08-15 23:45:19 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:19 -0500 |
commit | b235c59d60472f818a9142c0886b95a0ff4191d7 (patch) | |
tree | d323c55587584b19cc43a03f58a178823f12d3cd /linden/indra/newview/llpanellogin.h | |
parent | Second Life viewer sources 1.18.5.3 (diff) | |
download | meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.zip meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.gz meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.bz2 meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.xz |
Second Life viewer sources 1.18.6.0-RC
Diffstat (limited to 'linden/indra/newview/llpanellogin.h')
-rw-r--r-- | linden/indra/newview/llpanellogin.h | 48 |
1 files changed, 22 insertions, 26 deletions
diff --git a/linden/indra/newview/llpanellogin.h b/linden/indra/newview/llpanellogin.h index 94e746e..191e88c 100644 --- a/linden/indra/newview/llpanellogin.h +++ b/linden/indra/newview/llpanellogin.h | |||
@@ -33,7 +33,7 @@ | |||
33 | #define LL_LLPANELLOGIN_H | 33 | #define LL_LLPANELLOGIN_H |
34 | 34 | ||
35 | #include "llpanel.h" | 35 | #include "llpanel.h" |
36 | 36 | #include "llcommandhandler.h" | |
37 | #include "lldbstrings.h" | 37 | #include "lldbstrings.h" |
38 | #include "llmemory.h" | 38 | #include "llmemory.h" |
39 | #include "llviewerimage.h" | 39 | #include "llviewerimage.h" |
@@ -46,6 +46,22 @@ class LLCheckBoxCtrl; | |||
46 | class LLButton; | 46 | class LLButton; |
47 | class LLComboBox; | 47 | class LLComboBox; |
48 | 48 | ||
49 | |||
50 | class LLLoginHandler : public LLCommandHandler | ||
51 | { | ||
52 | public: | ||
53 | LLLoginHandler() : LLCommandHandler("login") { } | ||
54 | bool handle(const LLSD& tokens, const LLSD& queryMap); | ||
55 | bool parseDirectLogin(std::string url); | ||
56 | void parse(const LLSD& queryMap); | ||
57 | |||
58 | LLUUID mWebLoginKey; | ||
59 | LLString mFirstName; | ||
60 | LLString mLastName; | ||
61 | }; | ||
62 | |||
63 | extern LLLoginHandler gLoginHandler; | ||
64 | |||
49 | class LLPanelLogin | 65 | class LLPanelLogin |
50 | : public LLPanel | 66 | : public LLPanel |
51 | { | 67 | { |
@@ -57,50 +73,30 @@ public: | |||
57 | 73 | ||
58 | virtual BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent); | 74 | virtual BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent); |
59 | virtual void draw(); | 75 | virtual void draw(); |
60 | virtual void setFocus( BOOL b ); | ||
61 | 76 | ||
62 | static void show(const LLRect &rect, BOOL show_server, | 77 | static void show(const LLRect &rect, BOOL show_server, |
63 | void (*callback)(S32 option, void* user_data), | 78 | void (*callback)(S32 option, void* user_data), |
64 | void* callback_data); | 79 | void* callback_data); |
65 | 80 | ||
66 | static void setFields(const std::string& firstname, const std::string& lastname, | ||
67 | const std::string& password, BOOL remember); | ||
68 | |||
69 | static void addServer(const char *server, S32 domain_name); | ||
70 | static void refreshLocation( bool force_visible ); | ||
71 | |||
72 | static void getFields(LLString &firstname, LLString &lastname, | ||
73 | LLString &password, BOOL &remember); | ||
74 | |||
75 | static BOOL getServer(LLString &server, S32& domain_name); | ||
76 | static void getLocation(LLString &location); | ||
77 | |||
78 | static void close(); | 81 | static void close(); |
79 | 82 | ||
80 | void setSiteIsAlive( bool alive ); | 83 | void setSiteIsAlive( bool alive ); |
81 | 84 | ||
82 | static void giveFocus(); | 85 | static void loadLoginPage(); |
83 | static void mungePassword(LLUICtrl* caller, void* user_data); | 86 | static void giveFocus(); |
84 | 87 | static void setAlwaysRefresh(bool refresh); | |
88 | |||
85 | private: | 89 | private: |
86 | static void onClickConnect(void*); | ||
87 | static void onClickNewAccount(void*); | ||
88 | static void newAccountAlertCallback(S32 option, void*); | ||
89 | static void onClickQuit(void*); | 90 | static void onClickQuit(void*); |
90 | static void onClickVersion(void*); | 91 | static void onClickVersion(void*); |
91 | static void onPassKey(LLLineEditor* caller, void* user_data); | 92 | |
92 | |||
93 | private: | 93 | private: |
94 | LLPointer<LLViewerImage> mLogoImage; | 94 | LLPointer<LLViewerImage> mLogoImage; |
95 | 95 | ||
96 | void (*mCallback)(S32 option, void *userdata); | 96 | void (*mCallback)(S32 option, void *userdata); |
97 | void* mCallbackData; | 97 | void* mCallbackData; |
98 | 98 | ||
99 | std::string mIncomingPassword; | ||
100 | std::string mMungedPassword; | ||
101 | |||
102 | static LLPanelLogin* sInstance; | 99 | static LLPanelLogin* sInstance; |
103 | static BOOL sCapslockDidNotification; | ||
104 | BOOL mHtmlAvailable; | 100 | BOOL mHtmlAvailable; |
105 | }; | 101 | }; |
106 | 102 | ||