![]() |
Bitcoin Core
24.1.0
P2P Digital Currency
|
Interface to Bitcoin wallet from Qt view code. More...
#include <walletmodel.h>
Classes | |
| struct | SendCoinsReturn |
| class | UnlockContext |
Public Types | |
| enum | StatusCode { OK, InvalidAmount, InvalidAddress, AmountExceedsBalance, AmountWithFeeExceedsBalance, DuplicateAddress, TransactionCreationFailed, AbsurdFee } |
| enum | EncryptionStatus { NoKeys, Unencrypted, Locked, Unlocked } |
Public Slots | |
| void | startPollBalance () |
| void | updateStatus () |
| void | updateTransaction () |
| 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 interfaces::WalletBalances &balances) |
| void | encryptionStatusChanged () |
| void | requireUnlock () |
| void | message (const QString &title, const QString &message, unsigned int style) |
| void | coinsSent (WalletModel *wallet, SendCoinsRecipient recipient, QByteArray transaction) |
| void | showProgress (const QString &title, int nProgress) |
| void | notifyWatchonlyChanged (bool fHaveWatchonly) |
| void | unload () |
| void | canGetAddressesChanged () |
| void | timerTimeout () |
Static Public Member Functions | |
| static bool | isWalletEnabled () |
Private Member Functions | |
| void | subscribeToCoreSignals () |
| void | unsubscribeFromCoreSignals () |
| void | checkBalanceChanged (const interfaces::WalletBalances &new_balances) |
Private Attributes | |
| std::unique_ptr< interfaces::Wallet > | m_wallet |
| std::unique_ptr< interfaces::Handler > | m_handler_unload |
| std::unique_ptr< interfaces::Handler > | m_handler_status_changed |
| std::unique_ptr< interfaces::Handler > | m_handler_address_book_changed |
| std::unique_ptr< interfaces::Handler > | m_handler_transaction_changed |
| std::unique_ptr< interfaces::Handler > | m_handler_show_progress |
| std::unique_ptr< interfaces::Handler > | m_handler_watch_only_changed |
| std::unique_ptr< interfaces::Handler > | m_handler_can_get_addrs_changed |
| ClientModel * | m_client_model |
| interfaces::Node & | m_node |
| bool | fHaveWatchOnly |
| bool | fForceCheckBalanceChanged {false} |
| OptionsModel * | optionsModel |
| AddressTableModel * | addressTableModel |
| TransactionTableModel * | transactionTableModel |
| RecentRequestsTableModel * | recentRequestsTableModel |
| interfaces::WalletBalances | m_cached_balances |
| EncryptionStatus | cachedEncryptionStatus |
| QTimer * | timer |
| uint256 | m_cached_last_update_tip {} |
Interface to Bitcoin wallet from Qt view code.
Definition at line 52 of file walletmodel.h.
| Enumerator | |
|---|---|
| NoKeys | |
| Unencrypted | |
| Locked | |
| Unlocked | |
Definition at line 72 of file walletmodel.h.
| Enumerator | |
|---|---|
| OK | |
| InvalidAmount | |
| InvalidAddress | |
| AmountExceedsBalance | |
| AmountWithFeeExceedsBalance | |
| DuplicateAddress | |
| TransactionCreationFailed | |
| AbsurdFee | |
Definition at line 60 of file walletmodel.h.
|
explicit |
| WalletModel::~WalletModel | ( | ) |
|
signal |
Definition at line 486 of file walletmodel.cpp.
|
signal |
| bool WalletModel::changePassphrase | ( | const SecureString & | oldPass, |
| const SecureString & | newPass | ||
| ) |
|
private |
Definition at line 125 of file walletmodel.cpp.
|
inline |
Definition at line 146 of file walletmodel.h.
|
signal |
| bool WalletModel::displayAddress | ( | std::string | sAddress | ) | const |
|
signal |
| AddressTableModel * WalletModel::getAddressTableModel | ( | ) | const |
| CAmount WalletModel::getAvailableBalance | ( | const wallet::CCoinControl * | control | ) |
Definition at line 617 of file walletmodel.cpp.
| interfaces::WalletBalances WalletModel::getCachedBalance | ( | ) | const |
| QString WalletModel::getDisplayName | ( | ) | const |
Definition at line 596 of file walletmodel.cpp.
| WalletModel::EncryptionStatus WalletModel::getEncryptionStatus | ( | ) | const |
| uint256 WalletModel::getLastBlockProcessed | ( | ) | const |
Definition at line 612 of file walletmodel.cpp.
| OptionsModel * WalletModel::getOptionsModel | ( | ) | const |
| RecentRequestsTableModel * WalletModel::getRecentRequestsTableModel | ( | ) | const |
| TransactionTableModel * WalletModel::getTransactionTableModel | ( | ) | const |
| QString WalletModel::getWalletName | ( | ) | const |
| bool WalletModel::isMultiwallet | ( | ) | const |
Definition at line 602 of file walletmodel.cpp.
|
static |
Definition at line 586 of file walletmodel.cpp.
|
signal |
|
inline |
|
signal |
|
slot |
Definition at line 97 of file walletmodel.cpp.
| WalletModel::SendCoinsReturn WalletModel::prepareTransaction | ( | WalletModelTransaction & | transaction, |
| const wallet::CCoinControl & | coinControl | ||
| ) |
Definition at line 162 of file walletmodel.cpp.
| void WalletModel::refresh | ( | bool | pk_hash_only = false | ) |
| WalletModel::UnlockContext WalletModel::requestUnlock | ( | ) |
Definition at line 450 of file walletmodel.cpp.
|
signal |
| void WalletModel::sendCoins | ( | WalletModelTransaction & | transaction | ) |
Definition at line 248 of file walletmodel.cpp.
| void WalletModel::setClientModel | ( | ClientModel * | client_model | ) |
| bool WalletModel::setWalletEncrypted | ( | const SecureString & | passphrase | ) |
| bool WalletModel::setWalletLocked | ( | bool | locked, |
| const SecureString & | passPhrase = SecureString() |
||
| ) |
|
signal |
|
slot |
|
private |
Definition at line 425 of file walletmodel.cpp.
|
signal |
|
signal |
|
private |
|
slot |
|
slot |
|
slot |
Definition at line 138 of file walletmodel.cpp.
|
slot |
Definition at line 151 of file walletmodel.cpp.
| bool WalletModel::validateAddress | ( | const QString & | address | ) | const |
Definition at line 157 of file walletmodel.cpp.
|
inline |
Definition at line 145 of file walletmodel.h.
|
private |
Definition at line 184 of file walletmodel.h.
|
private |
Definition at line 190 of file walletmodel.h.
|
private |
Definition at line 178 of file walletmodel.h.
|
private |
Definition at line 177 of file walletmodel.h.
|
private |
Definition at line 189 of file walletmodel.h.
|
private |
Definition at line 194 of file walletmodel.h.
|
private |
Definition at line 174 of file walletmodel.h.
|
private |
Definition at line 169 of file walletmodel.h.
|
private |
Definition at line 173 of file walletmodel.h.
|
private |
Definition at line 171 of file walletmodel.h.
|
private |
Definition at line 168 of file walletmodel.h.
|
private |
Definition at line 170 of file walletmodel.h.
|
private |
Definition at line 167 of file walletmodel.h.
|
private |
Definition at line 172 of file walletmodel.h.
|
private |
Definition at line 175 of file walletmodel.h.
|
private |
Definition at line 166 of file walletmodel.h.
|
private |
Definition at line 182 of file walletmodel.h.
|
private |
Definition at line 186 of file walletmodel.h.
|
private |
Definition at line 191 of file walletmodel.h.
|
private |
Definition at line 185 of file walletmodel.h.
1.8.14