AuthDialog Class Reference

#include <AuthDialog.h>

Inheritance diagram for AuthDialog:

GLWWindow GLWButtonI GLWPanel GLWidget MetaClass

List of all members.

Public Types

enum  AuthRequired { eNameRequired = 1, ePasswordRequired = 2 }

Public Member Functions

virtual void buttonDown (unsigned int id)
virtual void display ()
void setRequiredAuth (unsigned int auth)

Static Public Member Functions

static AuthDialoginstance ()

Protected Attributes

unsigned int okId_
unsigned int cancelId_
unsigned int auth_

Static Protected Attributes

static AuthDialoginstance_ = 0

Private Member Functions

 AuthDialog ()
virtual ~AuthDialog ()

Detailed Description

Definition at line 28 of file AuthDialog.h.

Member Enumeration Documentation

enum AuthDialog::AuthRequired


Definition at line 34 of file AuthDialog.h.

Constructor & Destructor Documentation

AuthDialog::AuthDialog (  )  [private]

Definition at line 39 of file AuthDialog.cpp.

References GLWWindow::needCentered_.

AuthDialog::~AuthDialog (  )  [private, virtual]

Definition at line 46 of file AuthDialog.cpp.

Member Function Documentation

AuthDialog * AuthDialog::instance (  )  [static]

Definition at line 30 of file AuthDialog.cpp.

References instance_.

Referenced by ClientConnectionAuthHandler::processMessage(), and ClientWindowSetup::setupStartWindows().

void AuthDialog::buttonDown ( unsigned int  id  )  [virtual]

Implements GLWButtonI.

Definition at line 99 of file AuthDialog.cpp.

References ClientConnectionAuthHandler::cancelAuth(), GLWidget::getId(), GLWTextBox::getText(), GLWWindowManager::hideWindow(), ClientConnectionAuthHandler::instance(), ClientParams::instance(), GLWWindowManager::instance(), okId_, password_, ClientConnectionAuthHandler::sendAuth(), ClientParams::setPassword(), ClientParams::setUserName(), and username_.

void AuthDialog::display (  )  [virtual]

Reimplemented from GLWPanel.

Definition at line 50 of file AuthDialog.cpp.

References GLWPanel::addWidget(), auth_, GLWButton::ButtonFlagCancel, GLWButton::ButtonFlagCenterX, GLWButton::ButtonFlagOk, cancelId_, GLWPanel::clear(), GLWPanel::display(), GLWTextBox::eFlagPassword, eNameRequired, ePasswordRequired, GLWidget::getId(), GLWPanel::GLWPanel(), ClientParams::instance(), LANG_RESOURCE, LANG_STRING, GLWPanel::layout(), GLWPanel::LayoutGrid, GLWPanel::LayoutHorizontal, GLWPanel::LayoutVerticle, okId_, password_, GLWPanel::setGridWidth(), GLWPanel::setLayout(), GLWPanel::SpaceAll, GLWPanel::SpaceLeft, GLWPanel::SpaceRight, GLWPanel::SpaceTop, and username_.

void AuthDialog::setRequiredAuth ( unsigned int  auth  )  [inline]

Definition at line 46 of file AuthDialog.h.

References auth_.

Referenced by ClientConnectionAuthHandler::processMessage().

Member Data Documentation

AuthDialog * AuthDialog::instance_ = 0 [static, protected]

Definition at line 49 of file AuthDialog.h.

Referenced by instance().

unsigned int AuthDialog::okId_ [protected]

Definition at line 50 of file AuthDialog.h.

Referenced by buttonDown(), and display().

unsigned int AuthDialog::cancelId_ [protected]

Definition at line 50 of file AuthDialog.h.

Referenced by display().

unsigned int AuthDialog::auth_ [protected]

Definition at line 51 of file AuthDialog.h.

Referenced by display(), and setRequiredAuth().

GLWTextBox* AuthDialog::username_ [protected]

Definition at line 53 of file AuthDialog.h.

Referenced by buttonDown(), and display().

GLWTextBox* AuthDialog::password_ [protected]

Definition at line 54 of file AuthDialog.h.

Referenced by buttonDown(), and display().

The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:00 2009 for Scorched3D by  doxygen 1.5.3