Definition at line 54 of file llcurrencyuimanager.cpp.
Definition at line 81 of file llcurrencyuimanager.cpp.
LLCurrencyUIManager::Impl::Impl | ( | LLPanel & | dialog | ) |
Definition at line 119 of file llcurrencyuimanager.cpp.
LLCurrencyUIManager::Impl::~Impl | ( | ) | [virtual] |
void LLCurrencyUIManager::Impl::updateCurrencyInfo | ( | ) |
Definition at line 136 of file llcurrencyuimanager.cpp.
References LLXMLRPCValue::append(), LLXMLRPCValue::appendInt(), LLXMLRPCValue::appendString(), LLUUID::asString(), LLXMLRPCValue::createArray(), LLXMLRPCValue::createStruct(), gAgent, LLAgent::getID(), LLAgent::getSecureSessionID(), mBought, mCurrencyChanged, mSiteCurrencyEstimated, mSiteCurrencyEstimatedCost, mUserCurrencyBuy, startTransaction(), and TransactionCurrency.
Referenced by considerUpdateCurrency().
void LLCurrencyUIManager::Impl::finishCurrencyInfo | ( | ) |
Definition at line 162 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::startCurrencyBuy | ( | const std::string & | password | ) |
Definition at line 190 of file llcurrencyuimanager.cpp.
References LLXMLRPCValue::append(), LLXMLRPCValue::appendInt(), LLXMLRPCValue::appendString(), LLUUID::asString(), LLXMLRPCValue::createArray(), LLXMLRPCValue::createStruct(), gAgent, LLAgent::getID(), LLAgent::getSecureSessionID(), mCurrencyChanged, mSiteConfirm, mSiteCurrencyEstimated, mSiteCurrencyEstimatedCost, mUserCurrencyBuy, startTransaction(), and TransactionBuy.
Referenced by LLCurrencyUIManager::buy().
void LLCurrencyUIManager::Impl::finishCurrencyBuy | ( | ) |
Definition at line 215 of file llcurrencyuimanager.cpp.
References LLXMLRPCValue::asBool(), mBought, mTransaction, mUserCurrencyBuy, mUserEnteredCurrencyBuy, LLXMLRPCTransaction::responseValue(), and setError().
Referenced by checkTransaction().
void LLCurrencyUIManager::Impl::startTransaction | ( | TransactionType | type, | |
const char * | method, | |||
LLXMLRPCValue | params | |||
) |
Definition at line 235 of file llcurrencyuimanager.cpp.
References clearError(), LLAppViewer::getHelperURI(), LLAppViewer::instance(), mTransaction, and mTransactionType.
Referenced by startCurrencyBuy(), and updateCurrencyInfo().
bool LLCurrencyUIManager::Impl::checkTransaction | ( | ) |
Definition at line 257 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::setError | ( | const std::string & | message, | |
const std::string & | uri | |||
) |
Definition at line 289 of file llcurrencyuimanager.cpp.
References mError, mErrorMessage, and mErrorURI.
Referenced by checkTransaction(), finishCurrencyBuy(), and finishCurrencyInfo().
void LLCurrencyUIManager::Impl::clearError | ( | ) |
Definition at line 297 of file llcurrencyuimanager.cpp.
References mError, mErrorMessage, and mErrorURI.
Referenced by startTransaction().
bool LLCurrencyUIManager::Impl::considerUpdateCurrency | ( | ) |
Definition at line 304 of file llcurrencyuimanager.cpp.
References CURRENCY_ESTIMATE_FREQUENCY, LLFrameTimer::getElapsedTimeF32(), mCurrencyChanged, mCurrencyKeyTimer, mTransaction, and updateCurrencyInfo().
Referenced by LLCurrencyUIManager::process().
void LLCurrencyUIManager::Impl::currencyKey | ( | S32 | value | ) |
Definition at line 317 of file llcurrencyuimanager.cpp.
References LLPanel::childHide(), LLPanel::childSetVisible(), mCurrencyChanged, mCurrencyKeyTimer, mPanel, mSiteCurrencyEstimated, mUserCurrencyBuy, mUserEnteredCurrencyBuy, LLFrameTimer::reset(), and TRUE.
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 LLView::getChild(), mPanel, onCurrencyKey(), LLLineEditor::prevalidateNonNegativeS32(), LLUICtrl::setCallbackUserData(), LLLineEditor::setKeystrokeCallback(), and LLLineEditor::setPrevalidate().
Referenced by LLCurrencyUIManager::prepare().
void LLCurrencyUIManager::Impl::updateUI | ( | ) |
Definition at line 361 of file llcurrencyuimanager.cpp.
References LLPanel::childHide(), LLPanel::childIsEnabled(), LLPanel::childIsVisible(), LLPanel::childSetTextArg(), LLPanel::childSetVisible(), LLPanel::childShow(), FALSE, LLView::getChild(), 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().
Definition at line 60 of file llcurrencyuimanager.cpp.
Referenced by currencyKey(), prepare(), and updateUI().
Definition at line 62 of file llcurrencyuimanager.cpp.
Referenced by LLCurrencyUIManager::updateUI(), and updateUI().
Definition at line 64 of file llcurrencyuimanager.cpp.
Referenced by clearError(), LLCurrencyUIManager::hasError(), and setError().
std::string LLCurrencyUIManager::Impl::mErrorMessage |
Definition at line 65 of file llcurrencyuimanager.cpp.
Referenced by clearError(), LLCurrencyUIManager::errorMessage(), and setError().
std::string LLCurrencyUIManager::Impl::mErrorURI |
Definition at line 66 of file llcurrencyuimanager.cpp.
Referenced by clearError(), LLCurrencyUIManager::errorURI(), and setError().
std::string LLCurrencyUIManager::Impl::mZeroMessage |
Definition at line 68 of file llcurrencyuimanager.cpp.
Referenced by LLCurrencyUIManager::setZeroMessage(), and updateUI().
Definition at line 71 of file llcurrencyuimanager.cpp.
Referenced by LLCurrencyUIManager::buy(), LLCurrencyUIManager::canBuy(), currencyKey(), finishCurrencyBuy(), finishCurrencyInfo(), LLCurrencyUIManager::getAmount(), LLCurrencyUIManager::setAmount(), startCurrencyBuy(), updateCurrencyInfo(), and updateUI().
Definition at line 72 of file llcurrencyuimanager.cpp.
Referenced by currencyKey(), finishCurrencyBuy(), finishCurrencyInfo(), LLCurrencyUIManager::setAmount(), and updateUI().
Definition at line 75 of file llcurrencyuimanager.cpp.
Referenced by LLCurrencyUIManager::canBuy(), currencyKey(), finishCurrencyInfo(), LLCurrencyUIManager::getEstimate(), LLCurrencyUIManager::setEstimate(), startCurrencyBuy(), updateCurrencyInfo(), and updateUI().
Definition at line 76 of file llcurrencyuimanager.cpp.
Referenced by LLCurrencyUIManager::buy(), finishCurrencyInfo(), LLCurrencyUIManager::getEstimate(), LLCurrencyUIManager::setEstimate(), startCurrencyBuy(), updateCurrencyInfo(), and updateUI().
std::string LLCurrencyUIManager::Impl::mSiteConfirm |
Definition at line 77 of file llcurrencyuimanager.cpp.
Referenced by LLCurrencyUIManager::buy(), finishCurrencyInfo(), and startCurrencyBuy().
Definition at line 79 of file llcurrencyuimanager.cpp.
Referenced by LLCurrencyUIManager::bought(), finishCurrencyBuy(), and updateCurrencyInfo().
Definition at line 88 of file llcurrencyuimanager.cpp.
Referenced by LLCurrencyUIManager::buying(), LLCurrencyUIManager::canBuy(), LLCurrencyUIManager::canCancel(), checkTransaction(), LLCurrencyUIManager::inProcess(), and startTransaction().
Definition at line 89 of file llcurrencyuimanager.cpp.
Referenced by checkTransaction(), considerUpdateCurrency(), finishCurrencyBuy(), finishCurrencyInfo(), startTransaction(), and ~Impl().
Definition at line 91 of file llcurrencyuimanager.cpp.
Referenced by considerUpdateCurrency(), currencyKey(), LLCurrencyUIManager::setAmount(), LLCurrencyUIManager::setEstimate(), startCurrencyBuy(), and updateCurrencyInfo().
Definition at line 92 of file llcurrencyuimanager.cpp.
Referenced by considerUpdateCurrency(), and currencyKey().