#include <llpanellogin.h>


Public Member Functions | |
| LLPanelLogin (const LLRect &rect, BOOL show_server, void(*callback)(S32 option, void *user_data), void *callback_data) | |
| ~LLPanelLogin () | |
| virtual BOOL | handleKeyHere (KEY key, MASK mask) |
| virtual void | draw () |
| virtual void | setFocus (BOOL b) |
| void | setSiteIsAlive (bool alive) |
Static Public Member Functions | |
| 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 () |
| static void | loadLoginPage () |
| static void | giveFocus () |
| static void | setAlwaysRefresh (bool refresh) |
| static void | mungePassword (LLUICtrl *caller, void *user_data) |
Private Member Functions | |
| LOG_CLASS (LLPanelLogin) | |
| virtual void | onNavigateComplete (const EventType &eventIn) |
Static Private Member Functions | |
| 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) |
| static void | onSelectServer (LLUICtrl *, void *) |
Private Attributes | |
| LLPointer< LLUIImage > | mLogoImage |
| void(* | mCallback )(S32 option, void *userdata) |
| void * | mCallbackData |
| std::string | mIncomingPassword |
| std::string | mMungedPassword |
| BOOL | mHtmlAvailable |
Static Private Attributes | |
| static LLPanelLogin * | sInstance = NULL |
| static BOOL | sCapslockDidNotification = FALSE |
Definition at line 67 of file llpanellogin.h.
| LLPanelLogin::LLPanelLogin | ( | const LLRect & | rect, | |
| BOOL | show_server, | |||
| void(*)(S32 option, void *user_data) | callback, | |||
| void * | callback_data | |||
| ) |
Definition at line 321 of file llpanellogin.cpp.
References LLComboBox::add(), LLView::addChildAtEnd(), LLWebBrowserCtrl::addObserver(), LLIamHereLogin::build(), LLUICtrlFactory::buildPanel(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetKeystrokeCallback(), LLPanel::childSetPrevalidate(), LLPanel::childSetUserData(), FALSE, LLControlGroup::getBOOL(), LLPanel::getChildView(), LLRectBase< Type >::getHeight(), LLSingleton< LLUICtrlFactory >::getInstance(), LLView::getRect(), LLViewerWindow::getRootView(), LLPanel::getString(), LLControlGroup::getString(), LLUI::getUIImage(), LLRectBase< Type >::getWidth(), gFocusMgr, gResponsePtr, gSavedSettings, gViewerWindow, LLHTTPClient::head(), LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VIEWER_BUILD, llendl, llformat(), llwarns, mLogoImage, LLURLSimString::mSimString, mungePassword(), LLWebBrowserCtrl::navigateToLocalPage(), NULL, onClickConnect(), onClickForgotPassword(), onClickQuit(), onClickVersion(), onPassKey(), onSelectServer(), LLLineEditor::prevalidatePrintableNoSpace(), refreshLocation(), LLComboBox::remove(), LLWebBrowserCtrl::reshape(), LLView::reshape(), LLView::sendChildToBack(), LLPanelGeneral::set_start_location(), LLComboBox::setAllowTextEntry(), LLPanel::setBackgroundOpaque(), LLPanel::setBackgroundVisible(), LLTextBox::setCallbackUserData(), LLRectBase< Type >::setCenterAndSize(), LLTextBox::setClickedCallback(), LLUICtrl::setCommitCallback(), LLComboBox::setCurrentByIndex(), LLPanel::setDefaultBtn(), LLFocusMgr::setDefaultKeyboardFocus(), LLLineEditor::setDrawAsterixes(), LLView::setFocusRoot(), LLWebBrowserCtrl::setOpenAppSLURLs(), LLWebBrowserCtrl::setOpenInExternalBrowser(), LLView::setRect(), LLUICtrl::setTabStop(), LLTextBox::setText(), LLComboBox::setTextEntry(), LLURLSimString::sInstance, and TRUE.
Referenced by show().

| LLPanelLogin::~LLPanelLogin | ( | ) |
| LLPanelLogin::LOG_CLASS | ( | LLPanelLogin | ) | [private] |
Reimplemented from LLPanel.
Definition at line 582 of file llpanellogin.cpp.
References FALSE, gViewerHtmlHelp, gViewerWindow, LLPanel::handleKeyHere(), KEY_F1, KEY_F2, KEY_RETURN, llendl, llinfos, MASK_ALT, MASK_CONTROL, MASK_NONE, NULL, LLFloaterTOS::show(), LLViewerHtmlHelp::show(), LLFloaterPreference::show(), LLModalDialog::startModal(), LLViewerWindow::toggleFullscreen(), LLFloaterTOS::TOS_TOS, and TRUE.

| void LLPanelLogin::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 544 of file llpanellogin.cpp.
References LLPanel::draw(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), gl_rect_2d(), mHtmlAvailable, mLogoImage, and S32.

| void LLPanelLogin::setFocus | ( | BOOL | b | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 629 of file llpanellogin.cpp.
References giveFocus(), LLUICtrl::hasFocus(), and LLPanel::setFocus().
Referenced by giveFocus(), newAccountAlertCallback(), onClickConnect(), and show().


| void LLPanelLogin::show | ( | const LLRect & | rect, | |
| BOOL | show_server, | |||
| void(*)(S32 option, void *user_data) | callback, | |||
| void * | callback_data | |||
| ) | [static] |
Definition at line 686 of file llpanellogin.cpp.
References LLFocusMgr::getKeyboardFocus(), gFocusMgr, LLPanelLogin(), LLFocusMgr::setDefaultKeyboardFocus(), setFocus(), sInstance, and TRUE.
Referenced by login_show().


| void LLPanelLogin::setFields | ( | const std::string & | firstname, | |
| const std::string & | lastname, | |||
| const std::string & | password, | |||
| BOOL | remember | |||
| ) | [static] |
Definition at line 704 of file llpanellogin.cpp.
References LLPanel::childSetText(), LLPanel::childSetValue(), llendl, llwarns, MD5HEX_STR_SIZE, mIncomingPassword, mMungedPassword, and sInstance.
Referenced by idle_startup().


| void LLPanelLogin::addServer | ( | const char * | server, | |
| S32 | domain_name | |||
| ) | [static] |
Definition at line 745 of file llpanellogin.cpp.
References LLComboBox::add(), LLView::getChild(), llendl, llwarns, LLComboBox::setCurrentByIndex(), and sInstance.
Referenced by login_show().


| void LLPanelLogin::refreshLocation | ( | bool | force_visible | ) | [static] |
Definition at line 826 of file llpanellogin.cpp.
References LLPanel::childSetVisible(), LLControlGroup::getBOOL(), LLView::getChild(), gSavedSettings, loadLoginPage(), LLURLSimString::parse(), LLComboBox::setCurrentByIndex(), LLComboBox::setTextEntry(), LLURLSimString::sInstance, sInstance, and TRUE.
Referenced by LLPanelGeneral::clickShowStartLocation(), LLURLDispatcherImpl::dispatchRegion(), LLViewerWindow::handleKey(), LLPanelLogin(), LLFloaterPreference::onBtnApply(), and LLFloaterPreference::onBtnOK().


| void LLPanelLogin::getFields | ( | LLString & | firstname, | |
| LLString & | lastname, | |||
| LLString & | password, | |||
| BOOL & | remember | |||
| ) | [static] |
Definition at line 759 of file llpanellogin.cpp.
References LLPanel::childGetText(), LLPanel::childGetValue(), llendl, llwarns, mMungedPassword, sInstance, and LLStringBase< char >::trim().
Referenced by idle_startup(), and login_callback().


Definition at line 780 of file llpanellogin.cpp.
References LLSD::asInteger(), FALSE, LLView::getChild(), LLComboBox::getValue(), gGridName, GRID_INFO_OTHER, LLComboBox::isDirty(), llendl, llwarns, S32, sInstance, and LLSD::TypeInteger.
Referenced by idle_startup(), and loadLoginPage().


| void LLPanelLogin::getLocation | ( | LLString & | location | ) | [static] |
Definition at line 813 of file llpanellogin.cpp.
References LLSD::asString(), LLView::getChild(), LLComboBox::getValue(), llendl, llwarns, and sInstance.
Referenced by idle_startup().


| void LLPanelLogin::close | ( | ) | [static] |
Definition at line 865 of file llpanellogin.cpp.
References LLViewerWindow::getRootView(), gFocusMgr, gViewerWindow, NULL, LLView::removeChild(), LLFocusMgr::setDefaultKeyboardFocus(), and sInstance.
Referenced by idle_startup(), login_callback(), and login_done().


| void LLPanelLogin::setSiteIsAlive | ( | bool | alive | ) |
Definition at line 476 of file llpanellogin.cpp.
References FALSE, loadLoginPage(), mHtmlAvailable, LLWebBrowserCtrl::navigateToLocalPage(), LLView::setVisible(), and TRUE.
Referenced by LLIamHereLogin::result().


| void LLPanelLogin::loadLoginPage | ( | ) | [static] |
Definition at line 893 of file llpanellogin.cpp.
References LLSD::asString(), LLMenuGL::getBackgroundColor(), LLControlGroup::getBOOL(), LLView::getChild(), LLControlGroup::getLLSD(), getServer(), LLPanel::getString(), LLControlGroup::getString(), gGridChoice, gGridInfo, gLoginMenuBarView, gMenuBarView, GRID_INFO_OTHER, gSavedSettings, gViewerWindow, LLAppViewer::instance(), LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VIEWER_BUILD, llformat(), load_password_from_disk(), LLPanel::mLabel, LLGridData::mLabel, LLURLSimString::mSimName, LLURLSimString::mX, LLURLSimString::mY, LLURLSimString::mZ, LLWebBrowserCtrl::navigateTo(), LLURLSimString::parse(), LLURI::queryMap(), LLAppViewer::resetURIs(), S32, LLMenuGL::setBackgroundColor(), LLViewerWindow::setMenuBackgroundColor(), LLControlGroup::setString(), LLURLSimString::sInstance, sInstance, and LLSD::size().
Referenced by LLLoginHandler::handle(), LLLoginRefreshHandler::handle(), onSelectServer(), refreshLocation(), and setSiteIsAlive().


| void LLPanelLogin::giveFocus | ( | ) | [static] |
Definition at line 645 of file llpanellogin.cpp.
References LLPanel::childGetText(), LLView::getChild(), NULL, LLLineEditor::selectAll(), LLLineEditor::setFocus(), setFocus(), sInstance, and TRUE.
Referenced by first_run_dialog_callback(), idle_startup(), login_alert_done(), login_alert_status(), and setFocus().


| void LLPanelLogin::setAlwaysRefresh | ( | bool | refresh | ) | [static] |
Definition at line 879 of file llpanellogin.cpp.
References LLView::getChild(), LLStartUp::getStartupState(), LLWebBrowserCtrl::setAlwaysRefresh(), sInstance, and STATE_LOGIN_CLEANUP.
Referenced by LLFloaterPreference::onClose(), and LLFloaterPreference::show().


| void LLPanelLogin::mungePassword | ( | LLUICtrl * | caller, | |
| void * | user_data | |||
| ) | [static] |
Definition at line 515 of file llpanellogin.cpp.
References LLLineEditor::getText(), and MD5HEX_STR_SIZE.
Referenced by LLPanelLogin().


| void LLPanelLogin::onClickConnect | ( | void * | ) | [static, private] |
Definition at line 1074 of file llpanellogin.cpp.
References LLSD::asString(), LLPanel::childGetText(), FALSE, LLView::getChild(), LLComboBox::getValue(), gResponsePtr, GRID_INFO_NONE, gSavedSettings, mCallback, mCallbackData, NULL, onClickNewAccount(), S32, setFocus(), LLControlGroup::setString(), and sInstance.
Referenced by LLPanelLogin().


| void LLPanelLogin::onClickNewAccount | ( | void * | ) | [static, private] |
Definition at line 1127 of file llpanellogin.cpp.
References LLViewerWindow::alertXml(), gHideLinks, gViewerWindow, and newAccountAlertCallback().
Referenced by onClickConnect().


| void LLPanelLogin::newAccountAlertCallback | ( | S32 | option, | |
| void * | ||||
| ) | [static, private] |
Definition at line 1112 of file llpanellogin.cpp.
References CREATE_ACCOUNT_URL, llendl, llinfos, LLWeb::loadURL(), setFocus(), sInstance, and TRUE.
Referenced by onClickNewAccount().


| void LLPanelLogin::onClickQuit | ( | void * | ) | [static, private] |
Definition at line 1142 of file llpanellogin.cpp.
References gResponsePtr, mCallback, mCallbackData, and sInstance.
Referenced by LLPanelLogin().

| void LLPanelLogin::onClickVersion | ( | void * | ) | [static, private] |
Definition at line 1156 of file llpanellogin.cpp.
References NULL, and LLFloaterAbout::show().
Referenced by LLPanelLogin().


| void LLPanelLogin::onNavigateComplete | ( | const EventType & | eventIn | ) | [private, virtual] |
Reimplemented from LLWebBrowserCtrlObserver.
Definition at line 1053 of file llpanellogin.cpp.
References LLView::getChild(), and sInstance.

| void LLPanelLogin::onClickForgotPassword | ( | void * | ) | [static, private] |
Definition at line 1161 of file llpanellogin.cpp.
References LLPanel::getString(), LLWeb::loadURL(), and sInstance.
Referenced by LLPanelLogin().


| void LLPanelLogin::onPassKey | ( | LLLineEditor * | caller, | |
| void * | user_data | |||
| ) | [static, private] |
Definition at line 1171 of file llpanellogin.cpp.
References FALSE, LLKeyboard::getKeyDown(), gKeyboard, KEY_CAPSLOCK, sCapslockDidNotification, LLNotifyBox::showXml(), and TRUE.
Referenced by LLPanelLogin().


| void LLPanelLogin::onSelectServer | ( | LLUICtrl * | , | |
| void * | ||||
| ) | [static, private] |
Definition at line 1181 of file llpanellogin.cpp.
References loadLoginPage().
Referenced by LLPanelLogin().


LLPointer<LLUIImage> LLPanelLogin::mLogoImage [private] |
void(* LLPanelLogin::mCallback)(S32 option, void *userdata) [private] |
Referenced by onClickConnect(), and onClickQuit().
void* LLPanelLogin::mCallbackData [private] |
std::string LLPanelLogin::mIncomingPassword [private] |
std::string LLPanelLogin::mMungedPassword [private] |
LLPanelLogin * LLPanelLogin::sInstance = NULL [static, private] |
Definition at line 127 of file llpanellogin.h.
Referenced by addServer(), close(), getFields(), getLocation(), getServer(), giveFocus(), loadLoginPage(), newAccountAlertCallback(), onClickConnect(), onClickForgotPassword(), onClickQuit(), onNavigateComplete(), refreshLocation(), setAlwaysRefresh(), setFields(), and show().
BOOL LLPanelLogin::sCapslockDidNotification = FALSE [static, private] |
BOOL LLPanelLogin::mHtmlAvailable [private] |
1.5.5