Bitcoin
|
#include <walletmodel.h>
Classes | |
struct | SendCoinsReturn |
class | UnlockContext |
Public Types | |
enum | StatusCode { OK, InvalidAmount, InvalidAddress, AmountExceedsBalance, AmountWithFeeExceedsBalance, DuplicateAddress, TransactionCreationFailed, TransactionCommitFailed, AbsurdFee, PaymentRequestExpired } |
enum | EncryptionStatus { Unencrypted, Locked, Unlocked } |
Public Slots | |
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 () |
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 |
interfaces::Node & | m_node |
bool | fHaveWatchOnly |
bool | fForceCheckBalanceChanged {false} |
OptionsModel * | optionsModel |
AddressTableModel * | addressTableModel |
TransactionTableModel * | transactionTableModel |
RecentRequestsTableModel * | recentRequestsTableModel |
interfaces::WalletBalances | m_cached_balances |
EncryptionStatus | cachedEncryptionStatus |
int | cachedNumBlocks |
QTimer * | pollTimer |
Interface to Bitcoin wallet from Qt view code.
|
explicit |
WalletModel::~WalletModel | ( | ) |
|
signal |
bool WalletModel::canGetAddresses | ( | ) | const |
|
signal |
bool WalletModel::changePassphrase | ( | const SecureString & | oldPass, |
const SecureString & | newPass | ||
) |
|
private |
|
signal |
|
signal |
AddressTableModel * WalletModel::getAddressTableModel | ( | ) |
|
inline |
QString WalletModel::getDisplayName | ( | ) | const |
WalletModel::EncryptionStatus WalletModel::getEncryptionStatus | ( | ) | const |
OptionsModel * WalletModel::getOptionsModel | ( | ) |
RecentRequestsTableModel * WalletModel::getRecentRequestsTableModel | ( | ) |
TransactionTableModel * WalletModel::getTransactionTableModel | ( | ) |
QString WalletModel::getWalletName | ( | ) | const |
bool WalletModel::isMultiwallet | ( | ) |
|
static |
void WalletModel::loadReceiveRequests | ( | std::vector< std::string > & | vReceiveRequests | ) |
|
signal |
|
inline |
|
signal |
|
slot |
WalletModel::SendCoinsReturn WalletModel::prepareTransaction | ( | WalletModelTransaction & | transaction, |
const CCoinControl & | coinControl | ||
) |
bool WalletModel::privateKeysDisabled | ( | ) | const |
WalletModel::UnlockContext WalletModel::requestUnlock | ( | ) |
|
signal |
bool WalletModel::saveReceiveRequest | ( | const std::string & | sAddress, |
const int64_t | nId, | ||
const std::string & | sRequest | ||
) |
WalletModel::SendCoinsReturn WalletModel::sendCoins | ( | WalletModelTransaction & | transaction | ) |
bool WalletModel::setWalletEncrypted | ( | bool | encrypted, |
const SecureString & | passphrase | ||
) |
bool WalletModel::setWalletLocked | ( | bool | locked, |
const SecureString & | passPhrase = SecureString() |
||
) |
|
signal |
|
private |
|
signal |
|
private |
|
slot |
|
slot |
|
slot |
|
slot |
bool WalletModel::validateAddress | ( | const QString & | address | ) |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |