LLPanelLogin Class Reference

#include <llpanellogin.h>

Inheritance diagram for LLPanelLogin:

Inheritance graph
[legend]
Collaboration diagram for LLPanelLogin:

Collaboration graph
[legend]

List of all members.

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< LLUIImagemLogoImage
void(* mCallback )(S32 option, void *userdata)
void * mCallbackData
std::string mIncomingPassword
std::string mMungedPassword
BOOL mHtmlAvailable

Static Private Attributes

static LLPanelLoginsInstance = NULL
static BOOL sCapslockDidNotification = FALSE


Detailed Description

Definition at line 67 of file llpanellogin.h.


Constructor & Destructor Documentation

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().

Here is the caller graph for this function:

LLPanelLogin::~LLPanelLogin (  ) 

Definition at line 531 of file llpanellogin.cpp.

References gResponsePtr, and NULL.


Member Function Documentation

LLPanelLogin::LOG_CLASS ( LLPanelLogin   )  [private]

BOOL LLPanelLogin::handleKeyHere ( KEY  key,
MASK  mask 
) [virtual]

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.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelLogin::refreshLocation ( bool  force_visible  )  [static]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLPanelLogin::getServer ( LLString server,
S32 domain_name 
) [static]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelLogin::loadLoginPage (  )  [static]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelLogin::onClickNewAccount ( void *   )  [static, private]

Definition at line 1127 of file llpanellogin.cpp.

References LLViewerWindow::alertXml(), gHideLinks, gViewerWindow, and newAccountAlertCallback().

Referenced by onClickConnect().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelLogin::onClickQuit ( void *   )  [static, private]

Definition at line 1142 of file llpanellogin.cpp.

References gResponsePtr, mCallback, mCallbackData, and sInstance.

Referenced by LLPanelLogin().

Here is the caller graph for this function:

void LLPanelLogin::onClickVersion ( void *   )  [static, private]

Definition at line 1156 of file llpanellogin.cpp.

References NULL, and LLFloaterAbout::show().

Referenced by LLPanelLogin().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelLogin::onNavigateComplete ( const EventType eventIn  )  [private, virtual]

Reimplemented from LLWebBrowserCtrlObserver.

Definition at line 1053 of file llpanellogin.cpp.

References LLView::getChild(), and sInstance.

Here is the call graph for this function:

void LLPanelLogin::onClickForgotPassword ( void *   )  [static, private]

Definition at line 1161 of file llpanellogin.cpp.

References LLPanel::getString(), LLWeb::loadURL(), and sInstance.

Referenced by LLPanelLogin().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelLogin::onSelectServer ( LLUICtrl ,
void *   
) [static, private]

Definition at line 1181 of file llpanellogin.cpp.

References loadLoginPage().

Referenced by LLPanelLogin().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 119 of file llpanellogin.h.

Referenced by draw(), and LLPanelLogin().

void(* LLPanelLogin::mCallback)(S32 option, void *userdata) [private]

Referenced by onClickConnect(), and onClickQuit().

void* LLPanelLogin::mCallbackData [private]

Definition at line 122 of file llpanellogin.h.

Referenced by onClickConnect(), and onClickQuit().

std::string LLPanelLogin::mIncomingPassword [private]

Definition at line 124 of file llpanellogin.h.

Referenced by setFields().

std::string LLPanelLogin::mMungedPassword [private]

Definition at line 125 of file llpanellogin.h.

Referenced by getFields(), and setFields().

LLPanelLogin * LLPanelLogin::sInstance = NULL [static, private]

BOOL LLPanelLogin::sCapslockDidNotification = FALSE [static, private]

Definition at line 128 of file llpanellogin.h.

Referenced by onPassKey().

Definition at line 129 of file llpanellogin.h.

Referenced by draw(), and setSiteIsAlive().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:57:46 2008 for SecondLife by  doxygen 1.5.5