Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Interface to Bitcoin wallet from Qt view code. More...
#include <walletmodel.h>
Classes | |
struct | SendCoinsReturn |
class | UnlockContext |
Public Slots | |
void | updateStatus () |
void | updateTransaction () |
void | updateNumISLocks () |
void | updateChainLockHeight (int chainLockHeight) |
void | updateAddressBook (const QString &address, const QString &label, bool isMine, const QString &purpose, int status) |
void | updateWatchOnlyFlag (bool fHaveWatchonly) |
void | pollBalanceChanged () |
Signals | |
void | balanceChanged (const CAmount &balance, const CAmount &unconfirmedBalance, const CAmount &immatureBalance, const CAmount &anonymizedBalance, const CAmount &watchOnlyBalance, const CAmount &watchUnconfBalance, const CAmount &watchImmatureBalance) |
void | encryptionStatusChanged (int status) |
void | requireUnlock (bool fForMixingOnly=false) |
void | message (const QString &title, const QString &message, unsigned int style) |
void | coinsSent (CWallet *wallet, SendCoinsRecipient recipient, QByteArray transaction) |
void | showProgress (const QString &title, int nProgress) |
void | notifyWatchonlyChanged (bool fHaveWatchonly) |
Public Member Functions | |
WalletModel (CWallet *wallet, OptionsModel *optionsModel, QObject *parent=0) | |
~WalletModel () | |
OptionsModel * | getOptionsModel () |
AddressTableModel * | getAddressTableModel () |
TransactionTableModel * | getTransactionTableModel () |
RecentRequestsTableModel * | getRecentRequestsTableModel () |
CAmount | getBalance (const CCoinControl *coinControl=nullptr) const |
CAmount | getUnconfirmedBalance () const |
CAmount | getImmatureBalance () const |
CAmount | getAnonymizableBalance (bool fSkipDenominated, bool fSkipUnconfirmed) const |
CAmount | getAnonymizedBalance (const CCoinControl *coinControl=nullptr) const |
CAmount | getDenominatedBalance (bool unconfirmed) const |
CAmount | getNormalizedAnonymizedBalance () const |
CAmount | getAverageAnonymizedRounds () const |
bool | haveWatchOnly () const |
CAmount | getWatchBalance () const |
CAmount | getWatchUnconfirmedBalance () const |
CAmount | getWatchImmatureBalance () const |
EncryptionStatus | getEncryptionStatus () const |
bool | validateAddress (const QString &address) |
SendCoinsReturn | prepareTransaction (WalletModelTransaction &transaction, const CCoinControl &coinControl) |
SendCoinsReturn | sendCoins (WalletModelTransaction &transaction) |
bool | setWalletEncrypted (bool encrypted, const SecureString &passphrase) |
bool | setWalletLocked (bool locked, const SecureString &passPhrase=SecureString(), bool fMixing=false) |
bool | changePassphrase (const SecureString &oldPass, const SecureString &newPass) |
bool | backupWallet (const QString &filename) |
bool | autoBackupWallet (QString &strBackupWarningRet, QString &strBackupErrorRet) |
int64_t | getKeysLeftSinceAutoBackup () const |
UnlockContext | requestUnlock (bool fForMixingOnly=false) |
bool | getPubKey (const CKeyID &address, CPubKey &vchPubKeyOut) const |
bool | IsSpendable (const CTxDestination &dest) const |
bool | IsSpendable (const CScript &script) const |
bool | getPrivKey (const CKeyID &address, CKey &vchPrivKeyOut) const |
void | getOutputs (const std::vector< COutPoint > &vOutpoints, std::vector< COutput > &vOutputs) |
bool | isSpent (const COutPoint &outpoint) const |
void | listCoins (std::map< QString, std::vector< COutput > > &mapCoins) const |
bool | isLockedCoin (uint256 hash, unsigned int n) const |
void | lockCoin (COutPoint &output) |
void | unlockCoin (COutPoint &output) |
void | listLockedCoins (std::vector< COutPoint > &vOutpts) |
void | listProTxCoins (std::vector< COutPoint > &vOutpts) |
void | loadReceiveRequests (std::vector< std::string > &vReceiveRequests) |
bool | saveReceiveRequest (const std::string &sAddress, const int64_t nId, const std::string &sRequest) |
bool | transactionCanBeAbandoned (uint256 hash) const |
bool | abandonTransaction (uint256 hash) const |
bool | hdEnabled () const |
int | getDefaultConfirmTarget () const |
int | getNumISLocks () const |
int | getRealOutpointPrivateSendRounds (const COutPoint &outpoint) const |
bool | isFullyMixed (const COutPoint &outpoint) const |
Static Public Member Functions | |
static bool | isWalletEnabled () |
Private Member Functions | |
void | subscribeToCoreSignals () |
void | unsubscribeFromCoreSignals () |
void | checkBalanceChanged () |
Detailed Description
Interface to Bitcoin wallet from Qt view code.
Definition at line 100 of file walletmodel.h.
Member Enumeration Documentation
◆ EncryptionStatus
Enumerator | |
---|---|
Unencrypted | |
Locked | |
UnlockedForMixingOnly | |
Unlocked |
Definition at line 122 of file walletmodel.h.
◆ StatusCode
Enumerator | |
---|---|
OK | |
InvalidAmount | |
InvalidAddress | |
AmountExceedsBalance | |
AmountWithFeeExceedsBalance | |
DuplicateAddress | |
TransactionCreationFailed | |
TransactionCommitFailed | |
AbsurdFee | |
PaymentRequestExpired |
Definition at line 108 of file walletmodel.h.
Constructor & Destructor Documentation
◆ WalletModel()
|
explicit |
Definition at line 40 of file walletmodel.cpp.
References addressTableModel, fForceCheckBalanceChanged, fHaveWatchOnly, CBasicKeyStore::HaveWatchOnly(), MODEL_UPDATE_DELAY, pollBalanceChanged(), pollTimer, recentRequestsTableModel, subscribeToCoreSignals(), transactionTableModel, and wallet.
◆ ~WalletModel()
WalletModel::~WalletModel | ( | ) |
Definition at line 71 of file walletmodel.cpp.
References unsubscribeFromCoreSignals().
Member Function Documentation
◆ abandonTransaction()
bool WalletModel::abandonTransaction | ( | uint256 | hash | ) | const |
Definition at line 801 of file walletmodel.cpp.
References CWallet::AbandonTransaction(), cs_main, CWallet::cs_wallet, LOCK2, and wallet.
Referenced by TransactionView::abandonTx().
◆ autoBackupWallet()
bool WalletModel::autoBackupWallet | ( | QString & | strBackupWarningRet, |
QString & | strBackupErrorRet | ||
) |
Definition at line 543 of file walletmodel.cpp.
References CWallet::AutoBackupWallet(), and wallet.
Referenced by OverviewPage::privateSendStatus().
◆ backupWallet()
bool WalletModel::backupWallet | ( | const QString & | filename | ) |
Definition at line 538 of file walletmodel.cpp.
References CWallet::BackupWallet(), and wallet.
Referenced by WalletView::backupWallet().
◆ balanceChanged
|
signal |
Referenced by checkBalanceChanged().
◆ changePassphrase()
bool WalletModel::changePassphrase | ( | const SecureString & | oldPass, |
const SecureString & | newPass | ||
) |
Definition at line 527 of file walletmodel.cpp.
References CWallet::ChangeWalletPassphrase(), CWallet::cs_wallet, CCryptoKeyStore::Lock(), LOCK, and wallet.
Referenced by AskPassphraseDialog::accept().
◆ checkBalanceChanged()
|
private |
Definition at line 176 of file walletmodel.cpp.
References balanceChanged(), cachedAnonymizedBalance, cachedBalance, cachedImmatureBalance, cachedUnconfirmedBalance, cachedWatchImmatureBalance, cachedWatchOnlyBalance, cachedWatchUnconfBalance, getAnonymizedBalance(), getBalance(), getImmatureBalance(), getUnconfirmedBalance(), getWatchBalance(), getWatchImmatureBalance(), getWatchUnconfirmedBalance(), and haveWatchOnly().
Referenced by pollBalanceChanged(), and sendCoins().
◆ coinsSent
|
signal |
Referenced by sendCoins().
◆ encryptionStatusChanged
|
signal |
Referenced by updateStatus().
◆ getAddressTableModel()
AddressTableModel * WalletModel::getAddressTableModel | ( | ) |
Definition at line 464 of file walletmodel.cpp.
References addressTableModel.
Referenced by TransactionTableModel::addressColor(), SendCoinsDialog::coinControlChangeEdited(), TransactionView::editLabel(), SendCoinsEntry::on_addressBookButton_clicked(), SignVerifyMessageDialog::on_addressBookButton_SM_clicked(), SignVerifyMessageDialog::on_addressBookButton_VM_clicked(), ReceiveCoinsDialog::on_receiveButton_clicked(), CoinControlDialog::setModel(), WalletView::setWalletModel(), SendCoinsEntry::updateLabel(), and CoinControlDialog::updateView().
◆ getAnonymizableBalance()
CAmount WalletModel::getAnonymizableBalance | ( | bool | fSkipDenominated, |
bool | fSkipUnconfirmed | ||
) | const |
Definition at line 87 of file walletmodel.cpp.
References CWallet::GetAnonymizableBalance(), and wallet.
Referenced by OverviewPage::updatePrivateSendProgress().
◆ getAnonymizedBalance()
CAmount WalletModel::getAnonymizedBalance | ( | const CCoinControl * | coinControl = nullptr | ) | const |
Definition at line 92 of file walletmodel.cpp.
References CWallet::GetAnonymizedBalance(), and wallet.
Referenced by checkBalanceChanged(), SendCoinsDialog::setModel(), OverviewPage::setWalletModel(), SendCoinsDialog::updateDisplayUnit(), and SendCoinsDialog::useAvailableBalance().
◆ getAverageAnonymizedRounds()
CAmount WalletModel::getAverageAnonymizedRounds | ( | ) | const |
Definition at line 107 of file walletmodel.cpp.
References CWallet::GetAverageAnonymizedRounds(), and wallet.
Referenced by OverviewPage::updatePrivateSendProgress().
◆ getBalance()
CAmount WalletModel::getBalance | ( | const CCoinControl * | coinControl = nullptr | ) | const |
Definition at line 76 of file walletmodel.cpp.
References CWallet::GetAvailableBalance(), CWallet::GetBalance(), and wallet.
Referenced by checkBalanceChanged(), prepareTransaction(), SendCoinsDialog::setModel(), OverviewPage::setWalletModel(), SendCoinsDialog::updateDisplayUnit(), and SendCoinsDialog::useAvailableBalance().
◆ getDefaultConfirmTarget()
int WalletModel::getDefaultConfirmTarget | ( | ) | const |
Definition at line 817 of file walletmodel.cpp.
References nTxConfirmTarget.
Referenced by SendCoinsDialog::setModel().
◆ getDenominatedBalance()
CAmount WalletModel::getDenominatedBalance | ( | bool | unconfirmed | ) | const |
Definition at line 97 of file walletmodel.cpp.
References CWallet::GetDenominatedBalance(), and wallet.
Referenced by OverviewPage::updatePrivateSendProgress().
◆ getEncryptionStatus()
WalletModel::EncryptionStatus WalletModel::getEncryptionStatus | ( | ) | const |
Definition at line 479 of file walletmodel.cpp.
References CCryptoKeyStore::IsCrypted(), CCryptoKeyStore::IsLocked(), Locked, Unencrypted, Unlocked, UnlockedForMixingOnly, and wallet.
Referenced by SendCoinsDialog::on_sendButton_clicked(), requestUnlock(), OverviewPage::togglePrivateSend(), WalletView::unlockWallet(), WalletView::updateEncryptionStatus(), and updateStatus().
◆ getImmatureBalance()
CAmount WalletModel::getImmatureBalance | ( | ) | const |
Definition at line 117 of file walletmodel.cpp.
References CWallet::GetImmatureBalance(), and wallet.
Referenced by checkBalanceChanged(), SendCoinsDialog::setModel(), OverviewPage::setWalletModel(), and SendCoinsDialog::updateDisplayUnit().
◆ getKeysLeftSinceAutoBackup()
int64_t WalletModel::getKeysLeftSinceAutoBackup | ( | ) | const |
Definition at line 553 of file walletmodel.cpp.
References CWallet::nKeysLeftSinceAutoBackup, and wallet.
Referenced by OverviewPage::privateSendStatus().
◆ getNormalizedAnonymizedBalance()
CAmount WalletModel::getNormalizedAnonymizedBalance | ( | ) | const |
Definition at line 102 of file walletmodel.cpp.
References CWallet::GetNormalizedAnonymizedBalance(), and wallet.
Referenced by OverviewPage::updatePrivateSendProgress().
◆ getNumISLocks()
int WalletModel::getNumISLocks | ( | ) | const |
Definition at line 227 of file walletmodel.cpp.
References cachedNumISLocks.
Referenced by OverviewPage::setBalance().
◆ getOptionsModel()
OptionsModel * WalletModel::getOptionsModel | ( | ) |
Definition at line 459 of file walletmodel.cpp.
References optionsModel.
Referenced by TransactionView::changedAmount(), SendCoinsDialog::coinControlUpdateLabels(), TransactionView::computeSum(), RecentRequestsTableModel::data(), TransactionTableModel::data(), TransactionView::exportClicked(), TransactionTableModel::formatTxAmount(), RecentRequestsTableModel::getAmountTitle(), ReceiveCoinsDialog::on_receiveButton_clicked(), ReceiveCoinsDialog::on_recentRequestsView_doubleClicked(), SendCoinsDialog::on_sendButton_clicked(), WalletView::processNewTransaction(), SendCoinsDialog::processSendCoinsReturn(), RecentRequestsTableModel::RecentRequestsTableModel(), SendCoinsDialog::send(), SendCoinsDialog::setBalance(), SendCoinsEntry::setModel(), TransactionView::setModel(), SendCoinsDialog::setModel(), ReceiveCoinsDialog::setModel(), CoinControlDialog::setModel(), OverviewPage::setWalletModel(), TransactionTableModel::TransactionTableModel(), TransactionTableModel::updateAmountColumnTitle(), SendCoinsEntry::updateDisplayUnit(), ReceiveCoinsDialog::updateDisplayUnit(), OverviewPage::updateDisplayUnit(), SendCoinsDialog::updateDisplayUnit(), SendCoinsDialog::updateFeeMinimizedLabel(), CoinControlDialog::updateLabels(), SendCoinsDialog::updateMinFeeLabel(), SendCoinsDialog::updateSmartFeeLabel(), CoinControlDialog::updateView(), and SendCoinsDialog::useAvailableBalance().
◆ getOutputs()
void WalletModel::getOutputs | ( | const std::vector< COutPoint > & | vOutpoints, |
std::vector< COutput > & | vOutputs | ||
) |
Definition at line 715 of file walletmodel.cpp.
References cs_main, CWallet::cs_wallet, LOCK2, CWallet::mapWallet, and wallet.
Referenced by CoinControlDialog::updateLabels().
◆ getPrivKey()
Definition at line 709 of file walletmodel.cpp.
References CWallet::GetKey(), and wallet.
Referenced by SignVerifyMessageDialog::on_signMessageButton_SM_clicked().
◆ getPubKey()
Definition at line 694 of file walletmodel.cpp.
References CWallet::GetPubKey(), and wallet.
Referenced by CoinControlDialog::updateLabels().
◆ getRealOutpointPrivateSendRounds()
int WalletModel::getRealOutpointPrivateSendRounds | ( | const COutPoint & | outpoint | ) | const |
Definition at line 232 of file walletmodel.cpp.
References CWallet::GetRealOutpointPrivateSendRounds(), and wallet.
Referenced by CoinControlDialog::updateView().
◆ getRecentRequestsTableModel()
RecentRequestsTableModel * WalletModel::getRecentRequestsTableModel | ( | ) |
Definition at line 474 of file walletmodel.cpp.
References recentRequestsTableModel.
Referenced by ReceiveCoinsDialog::copyColumnToClipboard(), ReceiveCoinsDialog::copyURI(), ReceiveCoinsDialog::on_receiveButton_clicked(), ReceiveCoinsDialog::on_recentRequestsView_doubleClicked(), ReceiveCoinsDialog::on_removeRequestButton_clicked(), ReceiveCoinsDialog::on_showRequestButton_clicked(), ReceiveCoinsDialog::selectedRow(), and ReceiveCoinsDialog::setModel().
◆ getTransactionTableModel()
TransactionTableModel * WalletModel::getTransactionTableModel | ( | ) |
Definition at line 469 of file walletmodel.cpp.
References transactionTableModel.
Referenced by TransactionView::abandonTx(), WalletView::processNewTransaction(), TransactionView::setModel(), OverviewPage::SetupTransactionList(), and WalletView::setWalletModel().
◆ getUnconfirmedBalance()
CAmount WalletModel::getUnconfirmedBalance | ( | ) | const |
Definition at line 112 of file walletmodel.cpp.
References CWallet::GetUnconfirmedBalance(), and wallet.
Referenced by checkBalanceChanged(), SendCoinsDialog::setModel(), OverviewPage::setWalletModel(), and SendCoinsDialog::updateDisplayUnit().
◆ getWatchBalance()
CAmount WalletModel::getWatchBalance | ( | ) | const |
Definition at line 127 of file walletmodel.cpp.
References CWallet::GetWatchOnlyBalance(), and wallet.
Referenced by checkBalanceChanged(), SendCoinsDialog::setModel(), OverviewPage::setWalletModel(), and SendCoinsDialog::updateDisplayUnit().
◆ getWatchImmatureBalance()
CAmount WalletModel::getWatchImmatureBalance | ( | ) | const |
Definition at line 137 of file walletmodel.cpp.
References CWallet::GetImmatureWatchOnlyBalance(), and wallet.
Referenced by checkBalanceChanged(), SendCoinsDialog::setModel(), OverviewPage::setWalletModel(), and SendCoinsDialog::updateDisplayUnit().
◆ getWatchUnconfirmedBalance()
CAmount WalletModel::getWatchUnconfirmedBalance | ( | ) | const |
Definition at line 132 of file walletmodel.cpp.
References CWallet::GetUnconfirmedWatchOnlyBalance(), and wallet.
Referenced by checkBalanceChanged(), SendCoinsDialog::setModel(), OverviewPage::setWalletModel(), and SendCoinsDialog::updateDisplayUnit().
◆ haveWatchOnly()
bool WalletModel::haveWatchOnly | ( | ) | const |
Definition at line 122 of file walletmodel.cpp.
References fHaveWatchOnly.
Referenced by checkBalanceChanged(), TransactionView::exportClicked(), TransactionView::setModel(), and OverviewPage::setWalletModel().
◆ hdEnabled()
bool WalletModel::hdEnabled | ( | ) | const |
Definition at line 812 of file walletmodel.cpp.
References CWallet::IsHDEnabled(), and wallet.
Referenced by AskPassphraseDialog::accept(), and WalletView::setWalletModel().
◆ isFullyMixed()
bool WalletModel::isFullyMixed | ( | const COutPoint & | outpoint | ) | const |
Definition at line 237 of file walletmodel.cpp.
References CWallet::IsFullyMixed(), and wallet.
Referenced by CoinControlDialog::buttonToggleLockClicked(), and CoinControlDialog::updateView().
◆ isLockedCoin()
bool WalletModel::isLockedCoin | ( | uint256 | hash, |
unsigned int | n | ||
) | const |
Definition at line 746 of file walletmodel.cpp.
References cs_main, CWallet::cs_wallet, CWallet::IsLockedCoin(), LOCK2, and wallet.
Referenced by CoinControlDialog::buttonToggleLockClicked(), CoinControlDialog::showMenu(), and CoinControlDialog::updateView().
◆ IsSpendable() [1/2]
bool WalletModel::IsSpendable | ( | const CTxDestination & | dest | ) | const |
Definition at line 699 of file walletmodel.cpp.
References IsMine(), ISMINE_SPENDABLE, and wallet.
Referenced by SendCoinsDialog::coinControlChangeEdited(), and MasternodeList::updateDIP3List().
◆ IsSpendable() [2/2]
bool WalletModel::IsSpendable | ( | const CScript & | script | ) | const |
Definition at line 704 of file walletmodel.cpp.
References IsMine(), ISMINE_SPENDABLE, and wallet.
◆ isSpent()
bool WalletModel::isSpent | ( | const COutPoint & | outpoint | ) | const |
Definition at line 729 of file walletmodel.cpp.
References cs_main, CWallet::cs_wallet, COutPoint::hash, CWallet::IsSpent(), LOCK2, COutPoint::n, and wallet.
Referenced by CoinControlDialog::updateLabels().
◆ isWalletEnabled()
|
static |
Definition at line 807 of file walletmodel.cpp.
References DEFAULT_DISABLE_WALLET, gArgs, and ArgsManager::GetBoolArg().
Referenced by BitcoinGUI::BitcoinGUI().
◆ listCoins()
void WalletModel::listCoins | ( | std::map< QString, std::vector< COutput > > & | mapCoins | ) | const |
Definition at line 736 of file walletmodel.cpp.
References EncodeDestination(), CWallet::ListCoins(), and wallet.
Referenced by CoinControlDialog::updateView().
◆ listLockedCoins()
void WalletModel::listLockedCoins | ( | std::vector< COutPoint > & | vOutpts | ) |
Definition at line 764 of file walletmodel.cpp.
References cs_main, CWallet::cs_wallet, CWallet::ListLockedCoins(), LOCK2, and wallet.
Referenced by CoinControlDialog::updateLabelLocked().
◆ listProTxCoins()
void WalletModel::listProTxCoins | ( | std::vector< COutPoint > & | vOutpts | ) |
Definition at line 770 of file walletmodel.cpp.
References cs_main, CWallet::cs_wallet, CWallet::ListProTxCoins(), LOCK2, and wallet.
Referenced by MasternodeList::updateDIP3List().
◆ loadReceiveRequests()
void WalletModel::loadReceiveRequests | ( | std::vector< std::string > & | vReceiveRequests | ) |
Definition at line 776 of file walletmodel.cpp.
References CWallet::GetDestValues(), and wallet.
Referenced by RecentRequestsTableModel::RecentRequestsTableModel().
◆ lockCoin()
void WalletModel::lockCoin | ( | COutPoint & | output | ) |
Definition at line 752 of file walletmodel.cpp.
References cs_main, CWallet::cs_wallet, LOCK2, CWallet::LockCoin(), and wallet.
Referenced by CoinControlDialog::buttonToggleLockClicked(), and CoinControlDialog::lockCoin().
◆ message
|
signal |
Referenced by prepareTransaction().
◆ notifyWatchonlyChanged
|
signal |
Referenced by updateWatchOnlyFlag().
◆ pollBalanceChanged
|
slot |
Definition at line 150 of file walletmodel.cpp.
References cachedNumBlocks, cachedPrivateSendRounds, chainActive, checkBalanceChanged(), cs_main, CWallet::cs_wallet, fForceCheckBalanceChanged, CChain::Height(), CPrivateSendClientManager::nPrivateSendRounds, privateSendClient, transactionTableModel, TRY_LOCK, TransactionTableModel::updateConfirmations(), and wallet.
Referenced by WalletModel().
◆ prepareTransaction()
WalletModel::SendCoinsReturn WalletModel::prepareTransaction | ( | WalletModelTransaction & | transaction, |
const CCoinControl & | coinControl | ||
) |
Definition at line 260 of file walletmodel.cpp.
References AbsurdFee, AmountExceedsBalance, AmountWithFeeExceedsBalance, CWallet::CreateTransaction(), CTxMemPool::cs, cs_main, CWallet::cs_wallet, DecodeDestination(), DuplicateAddress, CRecipient::fSubtractFeeFromAmount, getBalance(), WalletModelTransaction::getPossibleKeyChange(), WalletModelTransaction::getRecipients(), GetScriptForDestination(), WalletModelTransaction::getTransaction(), InvalidAddress, InvalidAmount, CCryptoKeyStore::IsLocked(), LOCK, LOCK2, maxTxFee, mempool, message(), CClientUIInterface::MSG_ERROR, WalletModelTransaction::newPossibleKeyChange(), OK, prevector< N, T, Size, Diff >::push_back(), WalletModelTransaction::reassignAmounts(), WalletModelTransaction::setTransactionFee(), TransactionCreationFailed, CMerkleTx::tx, validateAddress(), and wallet.
Referenced by SendCoinsDialog::send().
◆ requestUnlock()
WalletModel::UnlockContext WalletModel::requestUnlock | ( | bool | fForMixingOnly = false | ) |
Definition at line 640 of file walletmodel.cpp.
References getEncryptionStatus(), Locked, requireUnlock(), Unlocked, and UnlockedForMixingOnly.
Referenced by AddressTableModel::addRow(), SendCoinsDialog::on_sendButton_clicked(), SignVerifyMessageDialog::on_signMessageButton_SM_clicked(), and OverviewPage::togglePrivateSend().
◆ requireUnlock
|
signal |
Referenced by requestUnlock().
◆ saveReceiveRequest()
bool WalletModel::saveReceiveRequest | ( | const std::string & | sAddress, |
const int64_t | nId, | ||
const std::string & | sRequest | ||
) |
Definition at line 781 of file walletmodel.cpp.
References CWallet::AddDestData(), CWallet::cs_wallet, DecodeDestination(), CWallet::EraseDestData(), LOCK, and wallet.
Referenced by RecentRequestsTableModel::addNewRequest(), and RecentRequestsTableModel::removeRows().
◆ sendCoins()
WalletModel::SendCoinsReturn WalletModel::sendCoins | ( | WalletModelTransaction & | transaction | ) |
Definition at line 384 of file walletmodel.cpp.
References checkBalanceChanged(), coinsSent(), CWallet::CommitTransaction(), CTxMemPool::cs, cs_main, CWallet::cs_wallet, CDataStream::data(), DecodeDestination(), g_connman, WalletModelTransaction::getPossibleKeyChange(), WalletModelTransaction::getRecipients(), CValidationState::GetRejectReason(), WalletModelTransaction::getTransaction(), LOCK, LOCK2, CWallet::mapAddressBook, mempool, OK, PaymentRequestExpired, PROTOCOL_VERSION, SER_NETWORK, CWallet::SetAddressBook(), CDataStream::size(), TransactionCommitFailed, CMerkleTx::tx, PaymentServer::verifyExpired(), CWalletTx::vOrderForm, and wallet.
Referenced by SendCoinsDialog::send().
◆ setWalletEncrypted()
bool WalletModel::setWalletEncrypted | ( | bool | encrypted, |
const SecureString & | passphrase | ||
) |
Definition at line 499 of file walletmodel.cpp.
References CWallet::EncryptWallet(), and wallet.
Referenced by AskPassphraseDialog::accept().
◆ setWalletLocked()
bool WalletModel::setWalletLocked | ( | bool | locked, |
const SecureString & | passPhrase = SecureString() , |
||
bool | fMixing = false |
||
) |
Definition at line 513 of file walletmodel.cpp.
References CCryptoKeyStore::Lock(), CWallet::Unlock(), and wallet.
Referenced by AskPassphraseDialog::accept(), and WalletView::lockWallet().
◆ showProgress
|
signal |
◆ subscribeToCoreSignals()
|
private |
Definition at line 615 of file walletmodel.cpp.
References NotifyAddressBookChanged(), CWallet::NotifyAddressBookChanged, NotifyChainLockReceived(), CWallet::NotifyChainLockReceived, NotifyISLockReceived(), CWallet::NotifyISLockReceived, NotifyKeyStoreStatusChanged(), CCryptoKeyStore::NotifyStatusChanged, NotifyTransactionChanged(), CWallet::NotifyTransactionChanged, NotifyWatchonlyChanged(), CWallet::NotifyWatchonlyChanged, ShowProgress(), CWallet::ShowProgress, and wallet.
Referenced by WalletModel().
◆ transactionCanBeAbandoned()
bool WalletModel::transactionCanBeAbandoned | ( | uint256 | hash | ) | const |
Definition at line 796 of file walletmodel.cpp.
References CWallet::TransactionCanBeAbandoned(), and wallet.
Referenced by TransactionView::contextualMenu().
◆ unlockCoin()
void WalletModel::unlockCoin | ( | COutPoint & | output | ) |
Definition at line 758 of file walletmodel.cpp.
References cs_main, CWallet::cs_wallet, LOCK2, CWallet::UnlockCoin(), and wallet.
Referenced by CoinControlDialog::buttonToggleLockClicked(), and CoinControlDialog::unlockCoin().
◆ unsubscribeFromCoreSignals()
|
private |
Definition at line 627 of file walletmodel.cpp.
References NotifyAddressBookChanged(), CWallet::NotifyAddressBookChanged, NotifyChainLockReceived(), CWallet::NotifyChainLockReceived, NotifyISLockReceived(), CWallet::NotifyISLockReceived, NotifyKeyStoreStatusChanged(), CCryptoKeyStore::NotifyStatusChanged, NotifyTransactionChanged(), CWallet::NotifyTransactionChanged, NotifyWatchonlyChanged(), CWallet::NotifyWatchonlyChanged, ShowProgress(), CWallet::ShowProgress, and wallet.
Referenced by ~WalletModel().
◆ updateAddressBook
|
slot |
Definition at line 242 of file walletmodel.cpp.
References addressTableModel, and AddressTableModel::updateEntry().
◆ updateChainLockHeight
|
slot |
Definition at line 219 of file walletmodel.cpp.
References fForceCheckBalanceChanged, transactionTableModel, and TransactionTableModel::updateChainLockHeight().
◆ updateNumISLocks
|
slot |
Definition at line 214 of file walletmodel.cpp.
References cachedNumISLocks.
◆ updateStatus
|
slot |
Definition at line 142 of file walletmodel.cpp.
References cachedEncryptionStatus, encryptionStatusChanged(), and getEncryptionStatus().
◆ updateTransaction
|
slot |
Definition at line 208 of file walletmodel.cpp.
References fForceCheckBalanceChanged.
◆ updateWatchOnlyFlag
|
slot |
Definition at line 249 of file walletmodel.cpp.
References fHaveWatchOnly, and notifyWatchonlyChanged().
◆ validateAddress()
bool WalletModel::validateAddress | ( | const QString & | address | ) |
Definition at line 255 of file walletmodel.cpp.
References IsValidDestinationString().
Referenced by AddressTableModel::addRow(), prepareTransaction(), and SendCoinsEntry::validate().
Member Data Documentation
◆ addressTableModel
|
private |
Definition at line 244 of file walletmodel.h.
Referenced by getAddressTableModel(), updateAddressBook(), and WalletModel().
◆ cachedAnonymizedBalance
|
private |
Definition at line 252 of file walletmodel.h.
Referenced by checkBalanceChanged().
◆ cachedBalance
|
private |
Definition at line 249 of file walletmodel.h.
Referenced by checkBalanceChanged().
◆ cachedEncryptionStatus
|
private |
Definition at line 256 of file walletmodel.h.
Referenced by updateStatus().
◆ cachedImmatureBalance
|
private |
Definition at line 251 of file walletmodel.h.
Referenced by checkBalanceChanged().
◆ cachedNumBlocks
|
private |
Definition at line 257 of file walletmodel.h.
Referenced by pollBalanceChanged().
◆ cachedNumISLocks
|
private |
Definition at line 258 of file walletmodel.h.
Referenced by getNumISLocks(), and updateNumISLocks().
◆ cachedPrivateSendRounds
|
private |
Definition at line 259 of file walletmodel.h.
Referenced by pollBalanceChanged().
◆ cachedUnconfirmedBalance
|
private |
Definition at line 250 of file walletmodel.h.
Referenced by checkBalanceChanged().
◆ cachedWatchImmatureBalance
|
private |
Definition at line 255 of file walletmodel.h.
Referenced by checkBalanceChanged().
◆ cachedWatchOnlyBalance
|
private |
Definition at line 253 of file walletmodel.h.
Referenced by checkBalanceChanged().
◆ cachedWatchUnconfBalance
|
private |
Definition at line 254 of file walletmodel.h.
Referenced by checkBalanceChanged().
◆ fForceCheckBalanceChanged
|
private |
Definition at line 238 of file walletmodel.h.
Referenced by pollBalanceChanged(), updateChainLockHeight(), updateTransaction(), and WalletModel().
◆ fHaveWatchOnly
|
private |
Definition at line 237 of file walletmodel.h.
Referenced by haveWatchOnly(), updateWatchOnlyFlag(), and WalletModel().
◆ optionsModel
|
private |
Definition at line 242 of file walletmodel.h.
Referenced by getOptionsModel().
◆ pollTimer
|
private |
Definition at line 261 of file walletmodel.h.
Referenced by WalletModel().
◆ recentRequestsTableModel
|
private |
Definition at line 246 of file walletmodel.h.
Referenced by getRecentRequestsTableModel(), and WalletModel().
◆ transactionTableModel
|
private |
Definition at line 245 of file walletmodel.h.
Referenced by getTransactionTableModel(), pollBalanceChanged(), updateChainLockHeight(), and WalletModel().
◆ wallet
|
private |
Definition at line 236 of file walletmodel.h.
Referenced by abandonTransaction(), autoBackupWallet(), backupWallet(), changePassphrase(), getAnonymizableBalance(), getAnonymizedBalance(), getAverageAnonymizedRounds(), getBalance(), getDenominatedBalance(), getEncryptionStatus(), getImmatureBalance(), getKeysLeftSinceAutoBackup(), getNormalizedAnonymizedBalance(), getOutputs(), getPrivKey(), getPubKey(), getRealOutpointPrivateSendRounds(), getUnconfirmedBalance(), getWatchBalance(), getWatchImmatureBalance(), getWatchUnconfirmedBalance(), hdEnabled(), isFullyMixed(), isLockedCoin(), IsSpendable(), isSpent(), listCoins(), listLockedCoins(), listProTxCoins(), loadReceiveRequests(), lockCoin(), pollBalanceChanged(), prepareTransaction(), saveReceiveRequest(), sendCoins(), setWalletEncrypted(), setWalletLocked(), subscribeToCoreSignals(), transactionCanBeAbandoned(), unlockCoin(), unsubscribeFromCoreSignals(), WalletModel(), and WalletModel::UnlockContext::~UnlockContext().
The documentation for this class was generated from the following files:
- src/qt/walletmodel.h
- src/qt/walletmodel.cpp