LLFloaterTOS Class Reference

#include <llfloatertos.h>

Inheritance diagram for LLFloaterTOS:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterTOS:

Collaboration graph
[legend]
List of all members.

Public Types

 TOS_TOS = 0
 TOS_CRITICAL_MESSAGE = 1
enum  ETOSType { TOS_TOS = 0, TOS_CRITICAL_MESSAGE = 1 }

Public Member Functions

virtual ~LLFloaterTOS ()
BOOL postBuild ()
virtual void draw ()
void setSiteIsAlive (bool alive)
virtual void onNavigateComplete (const EventType &eventIn)

Static Public Member Functions

static LLFloaterTOSshow (ETOSType type, const std::string &message)
static void updateAgree (LLUICtrl *, void *userdata)
static void onContinue (void *userdata)
static void onCancel (void *userdata)

Private Member Functions

 LLFloaterTOS (ETOSType type, const std::string &message)

Private Attributes

ETOSType mType
LLString mMessage
int mWebBrowserWindowId
int mLoadCompleteCount

Static Private Attributes

static LLFloaterTOSsInstance = NULL

Detailed Description

Definition at line 45 of file llfloatertos.h.


Member Enumeration Documentation

enum LLFloaterTOS::ETOSType

Enumerator:
TOS_TOS 
TOS_CRITICAL_MESSAGE 

Definition at line 53 of file llfloatertos.h.


Constructor & Destructor Documentation

LLFloaterTOS::~LLFloaterTOS (  )  [virtual]

Definition at line 227 of file llfloatertos.cpp.

References LLUICtrlFactory::getWebBrowserCtrlByName(), gResponsePtr, NULL, and sInstance.

LLFloaterTOS::LLFloaterTOS ( ETOSType  type,
const std::string &  message 
) [private]

Definition at line 76 of file llfloatertos.cpp.

Referenced by show().


Member Function Documentation

void LLFloaterTOS::draw (  )  [virtual]

Reimplemented from LLModalDialog.

Definition at line 246 of file llfloatertos.cpp.

References LLModalDialog::draw().

void LLFloaterTOS::onCancel ( void userdata  )  [static]

Definition at line 288 of file llfloatertos.cpp.

References LLViewerWindow::alertXml(), gViewerWindow, llendl, llinfos, login_alert_done(), LLStartUp::setStartupState(), and STATE_LOGIN_SHOW.

Referenced by postBuild().

void LLFloaterTOS::onContinue ( void userdata  )  [static]

Definition at line 261 of file llfloatertos.cpp.

References gAcceptCriticalMessage, gAcceptTOS, LLStartUp::getStartupState(), llendl, llinfos, LLStartUp::setStartupState(), STATE_LOGIN_AUTH_INIT, STATE_LOGIN_SHOW, STATE_LOGIN_WAIT, TOS_TOS, and TRUE.

Referenced by postBuild().

void LLFloaterTOS::onNavigateComplete ( const EventType eventIn  )  [virtual]

Definition at line 299 of file llfloatertos.cpp.

References LLUICtrlFactory::getRadioGroupByName(), llendl, llinfos, mLoadCompleteCount, and LLRadioGroup::setEnabled().

BOOL LLFloaterTOS::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 126 of file llfloatertos.cpp.

References LLIamHere::build(), LLPanel::childGetValue(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetValue(), FALSE, LLHTTPClient::get(), LLUICtrlFactory::getRadioGroupByName(), LLUICtrlFactory::getTextEditorByName(), LLUICtrlFactory::getWebBrowserCtrlByName(), gResponsePtr, mMessage, mType, onCancel(), onContinue(), LLRadioGroup::setEnabled(), LLTextEditor::setEnabled(), LLTextEditor::setFocus(), LLTextEditor::setHandleEditKeysDirectly(), LLTextEditor::setReadOnlyFgColor(), LLView::setVisible(), LLTextEditor::setWordWrap(), TOS_TOS, TRUE, updateAgree(), and LLColor4::white.

void LLFloaterTOS::setSiteIsAlive ( bool  alive  ) 

Definition at line 191 of file llfloatertos.cpp.

References LLPanel::childGetValue(), FALSE, LLUICtrlFactory::getRadioGroupByName(), LLUICtrlFactory::getWebBrowserCtrlByName(), mType, LLRadioGroup::setEnabled(), and TOS_TOS.

Referenced by LLIamHere::error(), and LLIamHere::result().

LLFloaterTOS * LLFloaterTOS::show ( ETOSType  type,
const std::string &  message 
) [static]

Definition at line 56 of file llfloatertos.cpp.

References LLUICtrlFactory::buildFloater(), gUICtrlFactory, LLFloaterTOS(), sInstance, and TOS_TOS.

Referenced by LLPanelLogin::handleKeyHere(), and idle_startup().

void LLFloaterTOS::updateAgree ( LLUICtrl ,
void userdata 
) [static]

Definition at line 253 of file llfloatertos.cpp.

Referenced by postBuild().


Member Data Documentation

int LLFloaterTOS::mLoadCompleteCount [private]

Definition at line 82 of file llfloatertos.h.

Referenced by onNavigateComplete().

LLString LLFloaterTOS::mMessage [private]

Definition at line 80 of file llfloatertos.h.

Referenced by postBuild().

ETOSType LLFloaterTOS::mType [private]

Definition at line 79 of file llfloatertos.h.

Referenced by postBuild(), and setSiteIsAlive().

int LLFloaterTOS::mWebBrowserWindowId [private]

Definition at line 81 of file llfloatertos.h.

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

Definition at line 84 of file llfloatertos.h.

Referenced by show(), and ~LLFloaterTOS().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:21 2010 for Second Life Viewer by  doxygen 1.4.7