LLCurrencyUIManager::Impl Class Reference

Collaboration diagram for LLCurrencyUIManager::Impl:

Collaboration graph
[legend]
List of all members.

Public Types

 TransactionNone
 TransactionCurrency
 TransactionBuy
enum  TransactionType { TransactionNone, TransactionCurrency, TransactionBuy }

Public Member Functions

 Impl (LLPanel &dialog)
virtual ~Impl ()
void updateCurrencyInfo ()
void finishCurrencyInfo ()
void startCurrencyBuy (const std::string &password)
void finishCurrencyBuy ()
void startTransaction (TransactionType type, const char *method, LLXMLRPCValue params)
bool checkTransaction ()
void setError (const std::string &message, const std::string &uri)
void clearError ()
bool considerUpdateCurrency ()
void currencyKey (S32)
void prepare ()
void updateUI ()

Static Public Member Functions

static void onCurrencyKey (LLLineEditor *caller, void *data)

Public Attributes

LLPanelmPanel
bool mHidden
bool mError
std::string mErrorMessage
std::string mErrorURI
std::string mZeroMessage
S32 mUserCurrencyBuy
bool mUserEnteredCurrencyBuy
bool mSiteCurrencyEstimated
S32 mSiteCurrencyEstimatedCost
std::string mSiteConfirm
bool mBought
TransactionType mTransactionType
LLXMLRPCTransactionmTransaction
bool mCurrencyChanged
LLFrameTimer mCurrencyKeyTimer

Detailed Description

Definition at line 55 of file llcurrencyuimanager.cpp.


Member Enumeration Documentation

enum LLCurrencyUIManager::Impl::TransactionType

Enumerator:
TransactionNone 
TransactionCurrency 
TransactionBuy 

Definition at line 82 of file llcurrencyuimanager.cpp.


Constructor & Destructor Documentation

LLCurrencyUIManager::Impl::Impl ( LLPanel dialog  ) 

Definition at line 120 of file llcurrencyuimanager.cpp.

LLCurrencyUIManager::Impl::~Impl (  )  [virtual]

Definition at line 132 of file llcurrencyuimanager.cpp.

References mTransaction.


Member Function Documentation

bool LLCurrencyUIManager::Impl::checkTransaction (  ) 

Definition at line 258 of file llcurrencyuimanager.cpp.

References finishCurrencyBuy(), finishCurrencyInfo(), mTransaction, mTransactionType, NULL, LLXMLRPCTransaction::process(), setError(), LLXMLRPCTransaction::status(), LLXMLRPCTransaction::StatusComplete, LLXMLRPCTransaction::statusMessage(), LLXMLRPCTransaction::statusURI(), TransactionBuy, TransactionCurrency, and TransactionNone.

Referenced by LLCurrencyUIManager::process().

void LLCurrencyUIManager::Impl::clearError (  ) 

Definition at line 298 of file llcurrencyuimanager.cpp.

References mError, mErrorMessage, and mErrorURI.

Referenced by startTransaction().

bool LLCurrencyUIManager::Impl::considerUpdateCurrency (  ) 

Definition at line 305 of file llcurrencyuimanager.cpp.

References CURRENCY_ESTIMATE_FREQUENCY, LLFrameTimer::getElapsedTimeF32(), mCurrencyChanged, mCurrencyKeyTimer, mTransaction, and updateCurrencyInfo().

Referenced by LLCurrencyUIManager::process().

void LLCurrencyUIManager::Impl::currencyKey ( S32   ) 

Definition at line 318 of file llcurrencyuimanager.cpp.

References LLPanel::childHide(), mCurrencyChanged, mCurrencyKeyTimer, mPanel, mSiteCurrencyEstimated, mUserCurrencyBuy, mUserEnteredCurrencyBuy, and LLFrameTimer::reset().

void LLCurrencyUIManager::Impl::finishCurrencyBuy (  ) 

Definition at line 216 of file llcurrencyuimanager.cpp.

References LLXMLRPCValue::asBool(), mBought, mTransaction, mUserCurrencyBuy, mUserEnteredCurrencyBuy, LLXMLRPCTransaction::responseValue(), and setError().

Referenced by checkTransaction().

void LLCurrencyUIManager::Impl::finishCurrencyInfo (  ) 

Definition at line 163 of file llcurrencyuimanager.cpp.

References LLXMLRPCValue::asBool(), LLXMLRPCValue::asInt(), LLXMLRPCValue::asString(), mSiteConfirm, mSiteCurrencyEstimated, mSiteCurrencyEstimatedCost, mTransaction, mUserCurrencyBuy, mUserEnteredCurrencyBuy, LLXMLRPCTransaction::responseValue(), S32, and setError().

Referenced by checkTransaction().

void LLCurrencyUIManager::Impl::onCurrencyKey ( LLLineEditor caller,
void data 
) [static]

Definition at line 342 of file llcurrencyuimanager.cpp.

References LLLineEditor::getText(), and S32.

Referenced by prepare().

void LLCurrencyUIManager::Impl::prepare (  ) 

Definition at line 350 of file llcurrencyuimanager.cpp.

References LLUICtrlFactory::getLineEditorByName(), mPanel, onCurrencyKey(), LLLineEditor::prevalidateNonNegativeS32(), LLUICtrl::setCallbackUserData(), LLLineEditor::setKeystrokeCallback(), and LLLineEditor::setPrevalidate().

Referenced by LLCurrencyUIManager::prepare().

void LLCurrencyUIManager::Impl::setError ( const std::string &  message,
const std::string &  uri 
)

Definition at line 290 of file llcurrencyuimanager.cpp.

References mError, mErrorMessage, and mErrorURI.

Referenced by checkTransaction(), finishCurrencyBuy(), and finishCurrencyInfo().

void LLCurrencyUIManager::Impl::startCurrencyBuy ( const std::string &  password  ) 

Definition at line 191 of file llcurrencyuimanager.cpp.

References LLXMLRPCValue::appendInt(), LLXMLRPCValue::appendString(), LLUUID::asString(), LLXMLRPCValue::createArray(), LLXMLRPCValue::createStruct(), gAgent, LLAgent::getID(), LLAgent::getSecureSessionID(), mCurrencyChanged, mSiteConfirm, mSiteCurrencyEstimated, mSiteCurrencyEstimatedCost, mUserCurrencyBuy, params, startTransaction(), and TransactionBuy.

Referenced by LLCurrencyUIManager::buy().

void LLCurrencyUIManager::Impl::startTransaction ( TransactionType  type,
const char *  method,
LLXMLRPCValue  params 
)

Definition at line 236 of file llcurrencyuimanager.cpp.

References clearError(), getHelperURI(), mTransaction, mTransactionType, and params.

Referenced by startCurrencyBuy(), and updateCurrencyInfo().

void LLCurrencyUIManager::Impl::updateCurrencyInfo (  ) 

Definition at line 137 of file llcurrencyuimanager.cpp.

References LLXMLRPCValue::appendInt(), LLXMLRPCValue::appendString(), LLUUID::asString(), LLXMLRPCValue::createArray(), LLXMLRPCValue::createStruct(), gAgent, LLAgent::getID(), LLAgent::getSecureSessionID(), mBought, mCurrencyChanged, mSiteCurrencyEstimated, mSiteCurrencyEstimatedCost, mUserCurrencyBuy, params, startTransaction(), and TransactionCurrency.

Referenced by considerUpdateCurrency().

void LLCurrencyUIManager::Impl::updateUI (  ) 

Definition at line 361 of file llcurrencyuimanager.cpp.

References LLPanel::childHide(), LLPanel::childSetTextArg(), LLPanel::childSetVisible(), LLPanel::childShow(), LLUICtrlFactory::getLineEditorByName(), llformat(), mHidden, mPanel, mSiteCurrencyEstimated, mSiteCurrencyEstimatedCost, mUserCurrencyBuy, mUserEnteredCurrencyBuy, mZeroMessage, LLStringBase< char >::null, LLLineEditor::selectAll(), LLLineEditor::setLabel(), LLLineEditor::setText(), and LLView::setVisible().

Referenced by LLCurrencyUIManager::setAmount(), LLCurrencyUIManager::setEstimate(), and LLCurrencyUIManager::updateUI().


Member Data Documentation

bool LLCurrencyUIManager::Impl::mBought

Definition at line 80 of file llcurrencyuimanager.cpp.

Referenced by LLCurrencyUIManager::bought(), finishCurrencyBuy(), and updateCurrencyInfo().

bool LLCurrencyUIManager::Impl::mCurrencyChanged

Definition at line 92 of file llcurrencyuimanager.cpp.

Referenced by considerUpdateCurrency(), currencyKey(), LLCurrencyUIManager::setAmount(), LLCurrencyUIManager::setEstimate(), startCurrencyBuy(), and updateCurrencyInfo().

LLFrameTimer LLCurrencyUIManager::Impl::mCurrencyKeyTimer

Definition at line 93 of file llcurrencyuimanager.cpp.

Referenced by considerUpdateCurrency(), and currencyKey().

bool LLCurrencyUIManager::Impl::mError

Definition at line 65 of file llcurrencyuimanager.cpp.

Referenced by clearError(), LLCurrencyUIManager::hasError(), and setError().

std::string LLCurrencyUIManager::Impl::mErrorMessage

Definition at line 66 of file llcurrencyuimanager.cpp.

Referenced by clearError(), LLCurrencyUIManager::errorMessage(), and setError().

std::string LLCurrencyUIManager::Impl::mErrorURI

Definition at line 67 of file llcurrencyuimanager.cpp.

Referenced by clearError(), LLCurrencyUIManager::errorURI(), and setError().

bool LLCurrencyUIManager::Impl::mHidden

Definition at line 63 of file llcurrencyuimanager.cpp.

Referenced by LLCurrencyUIManager::updateUI(), and updateUI().

LLPanel& LLCurrencyUIManager::Impl::mPanel

Definition at line 61 of file llcurrencyuimanager.cpp.

Referenced by currencyKey(), prepare(), and updateUI().

std::string LLCurrencyUIManager::Impl::mSiteConfirm

Definition at line 78 of file llcurrencyuimanager.cpp.

Referenced by LLCurrencyUIManager::buy(), finishCurrencyInfo(), and startCurrencyBuy().

bool LLCurrencyUIManager::Impl::mSiteCurrencyEstimated

Definition at line 76 of file llcurrencyuimanager.cpp.

Referenced by LLCurrencyUIManager::canBuy(), currencyKey(), finishCurrencyInfo(), LLCurrencyUIManager::getEstimate(), LLCurrencyUIManager::setEstimate(), startCurrencyBuy(), updateCurrencyInfo(), and updateUI().

S32 LLCurrencyUIManager::Impl::mSiteCurrencyEstimatedCost

Definition at line 77 of file llcurrencyuimanager.cpp.

Referenced by LLCurrencyUIManager::buy(), finishCurrencyInfo(), LLCurrencyUIManager::getEstimate(), LLCurrencyUIManager::setEstimate(), startCurrencyBuy(), updateCurrencyInfo(), and updateUI().

LLXMLRPCTransaction* LLCurrencyUIManager::Impl::mTransaction

Definition at line 90 of file llcurrencyuimanager.cpp.

Referenced by checkTransaction(), considerUpdateCurrency(), finishCurrencyBuy(), finishCurrencyInfo(), startTransaction(), and ~Impl().

TransactionType LLCurrencyUIManager::Impl::mTransactionType

Definition at line 89 of file llcurrencyuimanager.cpp.

Referenced by LLCurrencyUIManager::buying(), LLCurrencyUIManager::canBuy(), LLCurrencyUIManager::canCancel(), checkTransaction(), LLCurrencyUIManager::inProcess(), and startTransaction().

S32 LLCurrencyUIManager::Impl::mUserCurrencyBuy

Definition at line 72 of file llcurrencyuimanager.cpp.

Referenced by LLCurrencyUIManager::buy(), LLCurrencyUIManager::canBuy(), currencyKey(), finishCurrencyBuy(), finishCurrencyInfo(), LLCurrencyUIManager::getAmount(), LLCurrencyUIManager::setAmount(), startCurrencyBuy(), updateCurrencyInfo(), and updateUI().

bool LLCurrencyUIManager::Impl::mUserEnteredCurrencyBuy

Definition at line 73 of file llcurrencyuimanager.cpp.

Referenced by currencyKey(), finishCurrencyBuy(), finishCurrencyInfo(), LLCurrencyUIManager::setAmount(), and updateUI().

std::string LLCurrencyUIManager::Impl::mZeroMessage

Definition at line 69 of file llcurrencyuimanager.cpp.

Referenced by LLCurrencyUIManager::setZeroMessage(), and updateUI().


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