![]() |
BSHA3
0.17.99
P2P Blockchain, based on Bitcoin
|
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, 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 () |
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 |
interfaces::Node & | m_node |
bool | fHaveWatchOnly |
bool | fForceCheckBalanceChanged |
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.
Definition at line 125 of file walletmodel.h.
Enumerator | |
---|---|
Unencrypted | |
Locked | |
Unlocked |
Definition at line 147 of file walletmodel.h.
Enumerator | |
---|---|
OK | |
InvalidAmount | |
InvalidAddress | |
AmountExceedsBalance | |
AmountWithFeeExceedsBalance | |
DuplicateAddress | |
TransactionCreationFailed | |
TransactionCommitFailed | |
AbsurdFee | |
PaymentRequestExpired |
Definition at line 133 of file walletmodel.h.
|
explicit |
WalletModel::~WalletModel | ( | ) |
|
signal |
Definition at line 506 of file walletmodel.cpp.
bool WalletModel::changePassphrase | ( | const SecureString & | oldPass, |
const SecureString & | newPass | ||
) |
Definition at line 371 of file walletmodel.cpp.
|
private |
Definition at line 96 of file walletmodel.cpp.
|
signal |
|
signal |
AddressTableModel * WalletModel::getAddressTableModel | ( | ) |
|
inline |
Definition at line 225 of file walletmodel.h.
WalletModel::EncryptionStatus WalletModel::getEncryptionStatus | ( | ) | const |
OptionsModel * WalletModel::getOptionsModel | ( | ) |
RecentRequestsTableModel * WalletModel::getRecentRequestsTableModel | ( | ) |
TransactionTableModel * WalletModel::getTransactionTableModel | ( | ) |
QString WalletModel::getWalletName | ( | ) | const |
bool WalletModel::isMultiwallet | ( | ) |
Definition at line 581 of file walletmodel.cpp.
|
static |
Definition at line 566 of file walletmodel.cpp.
void WalletModel::loadReceiveRequests | ( | std::vector< std::string > & | vReceiveRequests | ) |
|
signal |
|
inline |
|
signal |
|
slot |
Definition at line 71 of file walletmodel.cpp.
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 | ||
) |
Definition at line 343 of file walletmodel.cpp.
bool WalletModel::setWalletLocked | ( | bool | locked, |
const SecureString & | passPhrase = SecureString() |
||
) |
Definition at line 357 of file walletmodel.cpp.
|
signal |
|
private |
Definition at line 428 of file walletmodel.cpp.
|
signal |
|
private |
|
slot |
|
slot |
|
slot |
Definition at line 104 of file walletmodel.cpp.
|
slot |
Definition at line 117 of file walletmodel.cpp.
bool WalletModel::validateAddress | ( | const QString & | address | ) |
Definition at line 123 of file walletmodel.cpp.
|
inline |
|
private |
Definition at line 243 of file walletmodel.h.
|
private |
Definition at line 249 of file walletmodel.h.
|
private |
Definition at line 250 of file walletmodel.h.
|
private |
Definition at line 237 of file walletmodel.h.
|
private |
Definition at line 236 of file walletmodel.h.
|
private |
Definition at line 248 of file walletmodel.h.
|
private |
Definition at line 230 of file walletmodel.h.
|
private |
Definition at line 232 of file walletmodel.h.
|
private |
Definition at line 229 of file walletmodel.h.
|
private |
Definition at line 231 of file walletmodel.h.
|
private |
Definition at line 228 of file walletmodel.h.
|
private |
Definition at line 233 of file walletmodel.h.
|
private |
Definition at line 234 of file walletmodel.h.
|
private |
Definition at line 227 of file walletmodel.h.
|
private |
Definition at line 241 of file walletmodel.h.
|
private |
Definition at line 252 of file walletmodel.h.
|
private |
Definition at line 245 of file walletmodel.h.
|
private |
Definition at line 244 of file walletmodel.h.