LLUserAuth Class Reference

#include <lluserauth.h>

Inheritance diagram for LLUserAuth:

Inheritance graph
[legend]
Collaboration diagram for LLUserAuth:

Collaboration graph
[legend]

List of all members.

Public Types

enum  UserAuthcode {
  E_NO_RESPONSE_YET = -2, E_DOWNLOADING = -1, E_OK = 0, E_COULDNT_RESOLVE_HOST,
  E_SSL_PEER_CERTIFICATE, E_SSL_CACERT, E_SSL_CONNECT_ERROR, E_UNHANDLED_ERROR,
  E_LAST
}
typedef std::map< std::string,
std::string > 
response_t
typedef std::vector< response_toptions_t

Public Member Functions

 LLUserAuth ()
 ~LLUserAuth ()
void authenticate (const char *auth_uri, const char *auth_method, const char *firstname, const char *lastname, LLUUID web_login_key, const char *start, BOOL skip_optional_update, BOOL accept_tos, BOOL accept_critical_message, BOOL last_exec_froze, const std::vector< const char * > &requested_options, const std::string &hashed_mac, const std::string &hashed_volume_serial)
void authenticate (const char *auth_uri, const char *auth_method, const char *firstname, const char *lastname, const char *password, const char *start, BOOL skip_optional_update, BOOL accept_tos, BOOL accept_critical_message, BOOL last_exec_froze, const std::vector< const char * > &requested_options, const std::string &hashed_mac, const std::string &hashed_volume_serial)
UserAuthcode authResponse ()
void reset ()
std::string errorMessage () const
const char * getResponse (const char *name) const
BOOL getOptions (const char *name, options_t &options) const
F64 getLastTransferRateBPS () const

Private Types

typedef std::map< std::string,
options_t
all_options_t

Private Member Functions

UserAuthcode parseResponse ()

Private Attributes

LLXMLRPCTransactionmTransaction
UserAuthcode mAuthResponse
std::string mErrorMessage
response_t mResponses
all_options_t mOptions
F64 mLastTransferRateBPS


Detailed Description

Definition at line 73 of file lluserauth.h.


Member Typedef Documentation

typedef std::map<std::string, std::string> LLUserAuth::response_t

Definition at line 93 of file lluserauth.h.

typedef std::vector<response_t> LLUserAuth::options_t

Definition at line 94 of file lluserauth.h.

typedef std::map<std::string, options_t> LLUserAuth::all_options_t [private]

Definition at line 149 of file lluserauth.h.


Member Enumeration Documentation

Enumerator:
E_NO_RESPONSE_YET 
E_DOWNLOADING 
E_OK 
E_COULDNT_RESOLVE_HOST 
E_SSL_PEER_CERTIFICATE 
E_SSL_CACERT 
E_SSL_CONNECT_ERROR 
E_UNHANDLED_ERROR 
E_LAST 

Definition at line 80 of file lluserauth.h.


Constructor & Destructor Documentation

LLUserAuth::LLUserAuth (  ) 

Definition at line 70 of file lluserauth.cpp.

References E_NO_RESPONSE_YET, and mAuthResponse.

LLUserAuth::~LLUserAuth (  ) 

Definition at line 77 of file lluserauth.cpp.

References reset().

Here is the call graph for this function:


Member Function Documentation

void LLUserAuth::authenticate ( const char *  auth_uri,
const char *  auth_method,
const char *  firstname,
const char *  lastname,
LLUUID  web_login_key,
const char *  start,
BOOL  skip_optional_update,
BOOL  accept_tos,
BOOL  accept_critical_message,
BOOL  last_exec_froze,
const std::vector< const char * > &  requested_options,
const std::string &  hashed_mac,
const std::string &  hashed_volume_serial 
)

Definition at line 91 of file lluserauth.cpp.

References E_NO_RESPONSE_YET, gCurrentVersion, LLControlGroup::getString(), LLUUID::getString(), gSavedSettings, LL_ENDL, LL_INFOS2, mAuthResponse, mTransaction, NULL, and request().

Referenced by idle_startup().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLUserAuth::authenticate ( const char *  auth_uri,
const char *  auth_method,
const char *  firstname,
const char *  lastname,
const char *  password,
const char *  start,
BOOL  skip_optional_update,
BOOL  accept_tos,
BOOL  accept_critical_message,
BOOL  last_exec_froze,
const std::vector< const char * > &  requested_options,
const std::string &  hashed_mac,
const std::string &  hashed_volume_serial 
)

Definition at line 175 of file lluserauth.cpp.

References E_NO_RESPONSE_YET, gCurrentVersion, LLControlGroup::getString(), gSavedSettings, LL_ENDL, LL_INFOS2, mAuthResponse, mTransaction, NULL, and request().

Here is the call graph for this function:

LLUserAuth::UserAuthcode LLUserAuth::authResponse (  ) 

void LLUserAuth::reset (  ) 

Definition at line 82 of file lluserauth.cpp.

References mOptions, mResponses, mTransaction, and NULL.

Referenced by idle_startup(), and ~LLUserAuth().

Here is the caller graph for this function:

std::string LLUserAuth::errorMessage (  )  const [inline]

Definition at line 133 of file lluserauth.h.

References mErrorMessage.

Referenced by idle_startup().

Here is the caller graph for this function:

const char * LLUserAuth::getResponse ( const char *  name  )  const

Definition at line 410 of file lluserauth.cpp.

References mResponses, and NULL.

Referenced by idle_startup().

Here is the caller graph for this function:

BOOL LLUserAuth::getOptions ( const char *  name,
options_t options 
) const

Definition at line 422 of file lluserauth.cpp.

References FALSE, mOptions, and TRUE.

F64 LLUserAuth::getLastTransferRateBPS (  )  const [inline]

Definition at line 140 of file lluserauth.h.

References mLastTransferRateBPS.

Referenced by idle_startup().

Here is the caller graph for this function:

LLUserAuth::UserAuthcode LLUserAuth::parseResponse (  )  [private]

Definition at line 346 of file lluserauth.cpp.

References E_OK, E_UNHANDLED_ERROR, lldebugs, llendl, llwarns, MAX_STRING, mOptions, mResponses, mTransaction, NULL, parseOptionInto(), and LLXMLRPCTransaction::response().

Referenced by authResponse().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 143 of file lluserauth.h.

Referenced by authenticate(), authResponse(), parseResponse(), and reset().

Definition at line 145 of file lluserauth.h.

Referenced by authenticate(), authResponse(), and LLUserAuth().

std::string LLUserAuth::mErrorMessage [private]

Definition at line 146 of file lluserauth.h.

Referenced by authResponse(), and errorMessage().

Definition at line 150 of file lluserauth.h.

Referenced by getResponse(), parseResponse(), and reset().

Definition at line 151 of file lluserauth.h.

Referenced by getOptions(), parseResponse(), and reset().

Definition at line 155 of file lluserauth.h.

Referenced by authResponse(), and getLastTransferRateBPS().


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

Generated on Fri May 16 09:21:02 2008 for SecondLife by  doxygen 1.5.5