ManaPlus
|
#include <pincodemanager.h>
Public Member Functions | |
PincodeManager () | |
~PincodeManager () | |
void | init () |
void | updateState () |
void | pinOk () |
void | wrongPin () |
void | lockedPin () |
void | setSeed (const uint32_t seed) |
void | setAccountId (const BeingId id) |
void | setState (const PincodeStateT state) |
void | setPincodeLockFlag (const bool flag) |
void | changePincode (const std::string &pincode) |
void | clearDialog (const PincodeDialog *const PincodeDialog) |
void | setNewPincode (const std::string &pincode) |
void | sendPincode (const std::string &pincode) |
void | closeDialogs () |
bool | isBlocked () |
bool | processPincodeStatus (const uint16_t state) |
Protected Attributes | |
std::string | mOldPincode |
std::string | mNewPincode |
uint32_t | mSeed |
BeingId | mAccountId |
Window * | mDialog |
PincodeStateT | mState |
bool | mLockFlag |
Definition at line 36 of file pincodemanager.h.
PincodeManager::PincodeManager | ( | ) |
Definition at line 44 of file pincodemanager.cpp.
PincodeManager::~PincodeManager | ( | ) |
Definition at line 55 of file pincodemanager.cpp.
void PincodeManager::changePincode | ( | const std::string & | pincode | ) |
Definition at line 166 of file pincodemanager.cpp.
References _, Widget::addActionListener(), Net::CharServerHandler::changePincode(), changePincodeListener, charServerHandler, CREATEWIDGETV, DialogType::ERROR, mAccountId, mDialog, mNewPincode, Modal_true, mOldPincode, mSeed, newPincodeRetryListener, Widget::requestFocus(), Widget::setActionEventId(), and ShowCenter_true.
Referenced by ChangePincodeListener::action().
void PincodeManager::clearDialog | ( | const PincodeDialog *const | PincodeDialog | ) |
Definition at line 67 of file pincodemanager.cpp.
References mDialog.
Referenced by PincodeDialog::close(), and PincodeDialog::~PincodeDialog().
void PincodeManager::closeDialogs | ( | ) |
Definition at line 254 of file pincodemanager.cpp.
References mDialog, and Window::scheduleDelete().
void PincodeManager::init | ( | ) |
Definition at line 59 of file pincodemanager.cpp.
References BeingId_zero, mAccountId, mNewPincode, mSeed, mState, and PincodeState::None.
bool PincodeManager::isBlocked | ( | ) |
Definition at line 263 of file pincodemanager.cpp.
References mState, and PincodeState::None.
Referenced by CharSelectDialog::action(), and CharSelectDialog::keyPressed().
void PincodeManager::lockedPin | ( | ) |
Definition at line 240 of file pincodemanager.cpp.
References PincodeState::Ask, mState, and updateState().
Referenced by processPincodeStatus().
void PincodeManager::pinOk | ( | ) |
Definition at line 233 of file pincodemanager.cpp.
References client, Client::focusWindow(), mState, and PincodeState::None.
Referenced by processPincodeStatus().
bool PincodeManager::processPincodeStatus | ( | const uint16_t | state | ) |
Definition at line 268 of file pincodemanager.cpp.
References PincodeState::Ask, PincodeState::Change, client, PincodeState::Create, lockedPin(), mLockFlag, pincodeManager, pinOk(), setState(), Client::updatePinState(), and wrongPin().
Referenced by EAthena::CharServerRecv::processPincodeStatus(), and EAthena::CharServerRecv::processPincodeStatus2().
void PincodeManager::sendPincode | ( | const std::string & | pincode | ) |
Definition at line 227 of file pincodemanager.cpp.
References charServerHandler, mAccountId, and Net::CharServerHandler::sendCheckPincode().
Referenced by PincodeListener::action().
|
inline |
Definition at line 58 of file pincodemanager.h.
References mAccountId.
Referenced by EAthena::CharServerRecv::processPincodeStatus(), and EAthena::CharServerRecv::processPincodeStatus2().
void PincodeManager::setNewPincode | ( | const std::string & | pincode | ) |
Definition at line 122 of file pincodemanager.cpp.
References _, Widget::addActionListener(), charServerHandler, CREATEWIDGETV, DialogType::ERROR, mAccountId, mDialog, mNewPincode, Modal_true, mSeed, newPincodeListener, newPincodeRetryListener, Widget::requestFocus(), Widget::setActionEventId(), Net::CharServerHandler::setNewPincode(), and ShowCenter_true.
Referenced by NewPincodeListener::action().
|
inline |
Definition at line 64 of file pincodemanager.h.
References mLockFlag.
Referenced by EAthena::CharServerRecv::processPincodeStatus(), and EAthena::CharServerRecv::processPincodeStatus2().
|
inline |
Definition at line 55 of file pincodemanager.h.
References mSeed.
Referenced by EAthena::CharServerRecv::processPincodeStatus(), and EAthena::CharServerRecv::processPincodeStatus2().
|
inline |
Definition at line 61 of file pincodemanager.h.
References mState.
Referenced by CharSelectDialog::action(), and processPincodeStatus().
void PincodeManager::updateState | ( | ) |
Definition at line 73 of file pincodemanager.cpp.
References _, Widget::addActionListener(), PincodeState::Ask, PincodeState::Change, changePincodeListener, PincodeState::Create, CREATEWIDGETV, mDialog, mNewPincode, mOldPincode, mSeed, mState, newPincodeListener, PincodeState::None, pincodeListener, Widget::requestFocus(), and Widget::setActionEventId().
Referenced by CharSelectDialog::action(), NewPincodeRetryListener::action(), lockedPin(), and wrongPin().
void PincodeManager::wrongPin | ( | ) |
Definition at line 248 of file pincodemanager.cpp.
References PincodeState::Ask, mState, and updateState().
Referenced by processPincodeStatus().
|
protected |
Definition at line 85 of file pincodemanager.h.
Referenced by changePincode(), init(), sendPincode(), setAccountId(), and setNewPincode().
|
protected |
Definition at line 86 of file pincodemanager.h.
Referenced by changePincode(), clearDialog(), closeDialogs(), setNewPincode(), and updateState().
|
protected |
Definition at line 88 of file pincodemanager.h.
Referenced by processPincodeStatus(), and setPincodeLockFlag().
|
protected |
Definition at line 83 of file pincodemanager.h.
Referenced by changePincode(), init(), setNewPincode(), and updateState().
|
protected |
Definition at line 82 of file pincodemanager.h.
Referenced by changePincode(), and updateState().
|
protected |
Definition at line 84 of file pincodemanager.h.
Referenced by changePincode(), init(), setNewPincode(), setSeed(), and updateState().
|
protected |
Definition at line 87 of file pincodemanager.h.
Referenced by init(), isBlocked(), lockedPin(), pinOk(), setState(), updateState(), and wrongPin().