![]() |
Bitcoin ABC 0.32.4
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 , PaymentRequestExpired } |
| enum | EncryptionStatus { Unencrypted , Locked , Unlocked } |
Public Slots | |
| void | startPollBalance () |
| void | updateStatus () |
| void | updateTransaction () |
| New transaction, or transaction changed status. More... | |
| void | updateAddressBook (const QString &address, const QString &label, bool isMine, const QString &purpose, int status) |
| New, updated or removed address book entry. More... | |
| void | updateWatchOnlyFlag (bool fHaveWatchonly) |
| Watch-only added. More... | |
| void | pollBalanceChanged () |
| Current, immature or unconfirmed balance might have changed - emit 'balanceChanged' if so. More... | |
Signals | |
| void | balanceChanged (const interfaces::WalletBalances &balances) |
| void | encryptionStatusChanged () |
| void | requireUnlock () |
| void | message (const QString &title, const QString &message, unsigned int style) |
| void | coinsSent (interfaces::Wallet &wallet, SendCoinsRecipient recipient, QByteArray transaction) |
| void | showProgress (const QString &title, int nProgress) |
| void | notifyWatchonlyChanged (bool fHaveWatchonly) |
| void | unload () |
| void | canGetAddressesChanged () |
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 |
| BlockHash | m_cached_last_update_tip {} |
Interface to Bitcoin wallet from Qt view code.
Definition at line 47 of file walletmodel.h.
| Enumerator | |
|---|---|
| Unencrypted | |
| Locked | |
| Unlocked | |
Definition at line 71 of file walletmodel.h.
| Enumerator | |
|---|---|
| OK | |
| InvalidAmount | |
| InvalidAddress | |
| AmountExceedsBalance | |
| AmountWithFeeExceedsBalance | |
| DuplicateAddress | |
| TransactionCreationFailed | |
| AbsurdFee | |
| PaymentRequestExpired | |
Definition at line 58 of file walletmodel.h.
|
explicit |
| WalletModel::~WalletModel | ( | ) |
|
signal |
|
signal |
| bool WalletModel::changePassphrase | ( | const SecureString & | oldPass, |
| const SecureString & | newPass | ||
| ) |
|
private |
Definition at line 103 of file walletmodel.cpp.
|
inline |
Definition at line 151 of file walletmodel.h.
|
signal |
|
signal |
| AddressTableModel * WalletModel::getAddressTableModel | ( | ) |
|
inline |
Definition at line 161 of file walletmodel.h.
| const CChainParams & WalletModel::getChainParams | ( | ) | const |
Definition at line 530 of file walletmodel.cpp.
| QString WalletModel::getDisplayName | ( | ) | const |
Definition at line 521 of file walletmodel.cpp.
| WalletModel::EncryptionStatus WalletModel::getEncryptionStatus | ( | ) | const |
| BlockHash WalletModel::getLastBlockProcessed | ( | ) | const |
Definition at line 534 of file walletmodel.cpp.
| OptionsModel * WalletModel::getOptionsModel | ( | ) |
| RecentRequestsTableModel * WalletModel::getRecentRequestsTableModel | ( | ) |
| TransactionTableModel * WalletModel::getTransactionTableModel | ( | ) |
| QString WalletModel::getWalletName | ( | ) | const |
| bool WalletModel::isMultiwallet | ( | ) |
Definition at line 526 of file walletmodel.cpp.
|
static |
Definition at line 513 of file walletmodel.cpp.
| void WalletModel::loadReceiveRequests | ( | std::vector< std::string > & | vReceiveRequests | ) |
|
signal |
|
inline |
|
signal |
|
slot |
Current, immature or unconfirmed balance might have changed - emit 'balanceChanged' if so.
Definition at line 72 of file walletmodel.cpp.
| WalletModel::SendCoinsReturn WalletModel::prepareTransaction | ( | WalletModelTransaction & | transaction, |
| const CCoinControl & | coinControl | ||
| ) |
Definition at line 134 of file walletmodel.cpp.
| WalletModel::UnlockContext WalletModel::requestUnlock | ( | ) |
Definition at line 464 of file walletmodel.cpp.
|
signal |
| bool WalletModel::saveReceiveRequest | ( | const std::string & | sAddress, |
| const int64_t | nId, | ||
| const std::string & | sRequest | ||
| ) |
Definition at line 499 of file walletmodel.cpp.
| WalletModel::SendCoinsReturn WalletModel::sendCoins | ( | WalletModelTransaction & | transaction | ) |
Definition at line 251 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 432 of file walletmodel.cpp.
|
signal |
|
private |
|
slot |
New, updated or removed address book entry.
Definition at line 116 of file walletmodel.cpp.
|
slot |
|
slot |
New transaction, or transaction changed status.
Definition at line 111 of file walletmodel.cpp.
|
slot |
Watch-only added.
Definition at line 124 of file walletmodel.cpp.
| bool WalletModel::validateAddress | ( | const QString & | address | ) |
Definition at line 129 of file walletmodel.cpp.
|
inline |
|
private |
Definition at line 186 of file walletmodel.h.
|
private |
Definition at line 192 of file walletmodel.h.
|
private |
Definition at line 180 of file walletmodel.h.
|
private |
Definition at line 179 of file walletmodel.h.
|
private |
Definition at line 191 of file walletmodel.h.
|
private |
Definition at line 196 of file walletmodel.h.
|
private |
Definition at line 176 of file walletmodel.h.
|
private |
Definition at line 171 of file walletmodel.h.
|
private |
Definition at line 175 of file walletmodel.h.
|
private |
Definition at line 173 of file walletmodel.h.
|
private |
Definition at line 170 of file walletmodel.h.
|
private |
Definition at line 172 of file walletmodel.h.
|
private |
Definition at line 169 of file walletmodel.h.
|
private |
Definition at line 174 of file walletmodel.h.
|
private |
Definition at line 177 of file walletmodel.h.
|
private |
Definition at line 168 of file walletmodel.h.
|
private |
Definition at line 184 of file walletmodel.h.
|
private |
Definition at line 188 of file walletmodel.h.
|
private |
Definition at line 193 of file walletmodel.h.
|
private |
Definition at line 187 of file walletmodel.h.