From b3c39a47e76f595fd953d9ccffc58b0dfb8359db Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Thu, 10 Sep 2009 02:38:36 -0500 Subject: Updated Grid Manager from Meerkat's SVN (as of r215). --- linden/indra/newview/authentication_controller.cpp | 80 ---------------------- 1 file changed, 80 deletions(-) delete mode 100644 linden/indra/newview/authentication_controller.cpp (limited to 'linden/indra/newview/authentication_controller.cpp') diff --git a/linden/indra/newview/authentication_controller.cpp b/linden/indra/newview/authentication_controller.cpp deleted file mode 100644 index a060409..0000000 --- a/linden/indra/newview/authentication_controller.cpp +++ /dev/null @@ -1,80 +0,0 @@ -/* - * AuthenticationController.cpp - * SecondLife - * - * Created by RMS on 7/1/08. - * - */ - -#include "llviewerprecompiledheaders.h" -#include "authentication_floater.h" -#include "llviewerobject.h" -#include "llcheckboxctrl.h" -#include "llselectmgr.h" -#include "authentication_controller.h" - -// Statics -std::string AuthenticationController::target_grid; -std::string AuthenticationController::username; -std::string AuthenticationController::password; -BOOL AuthenticationController::store_pw = FALSE; - -AuthenticationController::AuthenticationController(const std::string& tg, void (*cb)(void*)) -{ - target_grid = tg; - callback = cb; -} - -AuthenticationController::~AuthenticationController() -{ -} - -// user interface callbacks: all static -void AuthenticationController::onCommitUser(LLUICtrl* ctrl, void* userdata) -{ - AuthenticationFloater *floater = (AuthenticationFloater*)userdata; - username = floater->childGetText("User_edit"); -} - -void AuthenticationController::onCommitPassword(LLUICtrl* ctrl, void* userdata) -{ - AuthenticationFloater *floater = (AuthenticationFloater*)userdata; - password = floater->childGetText("Password_edit"); -} - -void AuthenticationController::onCommitRemember(LLUICtrl* ctrl, void* userdata) -{ - LLViewerObject *object = LLSelectMgr::getInstance()->getSelection()->getFirstRootObject(); - if(!object) return; - - LLCheckBoxCtrl *check = (LLCheckBoxCtrl*)ctrl; - store_pw = check->get(); -} - -void AuthenticationController::onAccept(void* userdata) -{ - -} - -void AuthenticationController::onCancel(void* userdata) -{ - AuthenticationFloater *floater = (AuthenticationFloater*)userdata; - floater->cancel(); - floater->close(); -} - -void AuthenticationController::onClickRegister(void* userdata) -{ - llinfos << "onClickRegister" << llendl; -} - -void AuthenticationController::retrieveStoredAccountData(void* userdata) -{ - -} - -// static -std::string AuthenticationController::getTargetGrid() -{ - return target_grid; -} -- cgit v1.1