Interface to Raven wallet from Qt view code.
More...
#include <walletmodel.h>
|
| enum | StatusCode {
OK,
InvalidAmount,
InvalidAddress,
AmountExceedsBalance,
AmountWithFeeExceedsBalance,
DuplicateAddress,
TransactionCreationFailed,
TransactionCommitFailed,
AbsurdFee,
PaymentRequestExpired
} |
| |
| enum | EncryptionStatus { Unencrypted,
Locked,
Unlocked
} |
| |
|
| void | balanceChanged (const CAmount &balance, const CAmount &unconfirmedBalance, const CAmount &immatureBalance, const CAmount &watchOnlyBalance, const CAmount &watchUnconfBalance, const CAmount &watchImmatureBalance) |
| |
| void | encryptionStatusChanged (int status) |
| |
| void | requireUnlock () |
| |
| void | message (const QString &title, const QString &message, unsigned int style) |
| |
| void | coinsSent (CWallet *wallet, SendCoinsRecipient recipient, QByteArray transaction) |
| |
| void | assetsSent (CWallet *wallet, SendAssetsRecipient recipient, QByteArray transaction) |
| |
| void | showProgress (const QString &title, int nProgress) |
| |
| void | notifyWatchonlyChanged (bool fHaveWatchonly) |
| |
|
| | WalletModel (const PlatformStyle *platformStyle, CWallet *wallet, OptionsModel *optionsModel, QObject *parent=0) |
| |
| | ~WalletModel () |
| |
| OptionsModel * | getOptionsModel () |
| |
| AddressTableModel * | getAddressTableModel () |
| |
| TransactionTableModel * | getTransactionTableModel () |
| |
| AssetTableModel * | getAssetTableModel () |
| |
| RecentRequestsTableModel * | getRecentRequestsTableModel () |
| |
| CAmount | getBalance (const CCoinControl *coinControl=nullptr) const |
| |
| CAmount | getUnconfirmedBalance () const |
| |
| CAmount | getImmatureBalance () 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) |
| |
| SendCoinsReturn | sendAssets (CWalletTx &tx, QList< SendAssetsRecipient > &recipients, CReserveKey &reservekey) |
| |
| bool | setWalletEncrypted (bool encrypted, const SecureString &passphrase) |
| |
| bool | setWalletLocked (bool locked, const SecureString &passPhrase=SecureString()) |
| |
| bool | changePassphrase (const SecureString &oldPass, const SecureString &newPass) |
| |
| bool | backupWallet (const QString &filename) |
| |
| UnlockContext | requestUnlock () |
| |
| bool | getPubKey (const CKeyID &address, CPubKey &vchPubKeyOut) const |
| |
| bool | IsSpendable (const CTxDestination &dest) 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 |
| |
| void | listAssets (std::map< QString, std::map< QString, std::vector< COutput > > > &mapCoins) const |
| | RVN START. More...
|
| |
| bool | isLockedCoin (uint256 hash, unsigned int n) const |
| | RVN END. More...
|
| |
| void | lockCoin (COutPoint &output) |
| |
| void | unlockCoin (COutPoint &output) |
| |
| void | listLockedCoins (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 | transactionCanBeBumped (uint256 hash) const |
| |
| bool | bumpFee (uint256 hash) |
| |
| bool | hdEnabled () const |
| |
| int | getDefaultConfirmTarget () const |
| |
| bool | getDefaultWalletRbf () const |
| |
| CWallet * | getWallet () const |
| |
Interface to Raven wallet from Qt view code.
Definition at line 165 of file walletmodel.h.
◆ EncryptionStatus
| Enumerator |
|---|
| Unencrypted | |
| Locked | |
| Unlocked | |
Definition at line 187 of file walletmodel.h.
◆ StatusCode
| Enumerator |
|---|
| OK | |
| InvalidAmount | |
| InvalidAddress | |
| AmountExceedsBalance | |
| AmountWithFeeExceedsBalance | |
| DuplicateAddress | |
| TransactionCreationFailed | |
| TransactionCommitFailed | |
| AbsurdFee | |
| PaymentRequestExpired | |
Definition at line 173 of file walletmodel.h.
◆ WalletModel()
◆ ~WalletModel()
| WalletModel::~WalletModel |
( |
| ) |
|
◆ abandonTransaction()
| bool WalletModel::abandonTransaction |
( |
uint256 |
hash | ) |
const |
◆ assetsSent
◆ backupWallet()
| bool WalletModel::backupWallet |
( |
const QString & |
filename | ) |
|
◆ balanceChanged
| void WalletModel::balanceChanged |
( |
const CAmount & |
balance, |
|
|
const CAmount & |
unconfirmedBalance, |
|
|
const CAmount & |
immatureBalance, |
|
|
const CAmount & |
watchOnlyBalance, |
|
|
const CAmount & |
watchUnconfBalance, |
|
|
const CAmount & |
watchImmatureBalance |
|
) |
| |
|
signal |
◆ bumpFee()
| bool WalletModel::bumpFee |
( |
uint256 |
hash | ) |
|
◆ changePassphrase()
◆ checkBalanceChanged()
| void WalletModel::checkBalanceChanged |
( |
| ) |
|
|
private |
◆ coinsSent
◆ encryptionStatusChanged
| void WalletModel::encryptionStatusChanged |
( |
int |
status | ) |
|
|
signal |
◆ getAddressTableModel()
◆ getAssetTableModel()
◆ getBalance()
◆ getDefaultConfirmTarget()
| int WalletModel::getDefaultConfirmTarget |
( |
| ) |
const |
◆ getDefaultWalletRbf()
| bool WalletModel::getDefaultWalletRbf |
( |
| ) |
const |
◆ getEncryptionStatus()
◆ getImmatureBalance()
| CAmount WalletModel::getImmatureBalance |
( |
| ) |
const |
◆ getOptionsModel()
◆ getOutputs()
| void WalletModel::getOutputs |
( |
const std::vector< COutPoint > & |
vOutpoints, |
|
|
std::vector< COutput > & |
vOutputs |
|
) |
| |
◆ getPrivKey()
| bool WalletModel::getPrivKey |
( |
const CKeyID & |
address, |
|
|
CKey & |
vchPrivKeyOut |
|
) |
| const |
◆ getPubKey()
| bool WalletModel::getPubKey |
( |
const CKeyID & |
address, |
|
|
CPubKey & |
vchPubKeyOut |
|
) |
| const |
◆ getRecentRequestsTableModel()
◆ getTransactionTableModel()
◆ getUnconfirmedBalance()
| CAmount WalletModel::getUnconfirmedBalance |
( |
| ) |
const |
◆ getWallet()
| CWallet * WalletModel::getWallet |
( |
| ) |
const |
◆ getWatchBalance()
| CAmount WalletModel::getWatchBalance |
( |
| ) |
const |
◆ getWatchImmatureBalance()
| CAmount WalletModel::getWatchImmatureBalance |
( |
| ) |
const |
◆ getWatchUnconfirmedBalance()
| CAmount WalletModel::getWatchUnconfirmedBalance |
( |
| ) |
const |
◆ haveWatchOnly()
| bool WalletModel::haveWatchOnly |
( |
| ) |
const |
◆ hdEnabled()
| bool WalletModel::hdEnabled |
( |
| ) |
const |
◆ isLockedCoin()
| bool WalletModel::isLockedCoin |
( |
uint256 |
hash, |
|
|
unsigned int |
n |
|
) |
| const |
◆ IsSpendable()
◆ isSpent()
| bool WalletModel::isSpent |
( |
const COutPoint & |
outpoint | ) |
const |
◆ isWalletEnabled()
| bool WalletModel::isWalletEnabled |
( |
| ) |
|
|
static |
◆ listAssets()
| void WalletModel::listAssets |
( |
std::map< QString, std::map< QString, std::vector< COutput > > > & |
mapCoins | ) |
const |
◆ listCoins()
| void WalletModel::listCoins |
( |
std::map< QString, std::vector< COutput > > & |
mapCoins | ) |
const |
◆ listLockedCoins()
| void WalletModel::listLockedCoins |
( |
std::vector< COutPoint > & |
vOutpts | ) |
|
◆ loadReceiveRequests()
| void WalletModel::loadReceiveRequests |
( |
std::vector< std::string > & |
vReceiveRequests | ) |
|
◆ lockCoin()
| void WalletModel::lockCoin |
( |
COutPoint & |
output | ) |
|
◆ message
| void WalletModel::message |
( |
const QString & |
title, |
|
|
const QString & |
message, |
|
|
unsigned int |
style |
|
) |
| |
|
signal |
◆ notifyWatchonlyChanged
| void WalletModel::notifyWatchonlyChanged |
( |
bool |
fHaveWatchonly | ) |
|
|
signal |
◆ pollBalanceChanged
| void WalletModel::pollBalanceChanged |
( |
| ) |
|
|
slot |
◆ prepareTransaction()
◆ requestUnlock()
◆ requireUnlock
| void WalletModel::requireUnlock |
( |
| ) |
|
|
signal |
◆ saveReceiveRequest()
| bool WalletModel::saveReceiveRequest |
( |
const std::string & |
sAddress, |
|
|
const int64_t |
nId, |
|
|
const std::string & |
sRequest |
|
) |
| |
◆ sendAssets()
◆ sendCoins()
◆ setWalletEncrypted()
| bool WalletModel::setWalletEncrypted |
( |
bool |
encrypted, |
|
|
const SecureString & |
passphrase |
|
) |
| |
◆ setWalletLocked()
◆ showProgress
| void WalletModel::showProgress |
( |
const QString & |
title, |
|
|
int |
nProgress |
|
) |
| |
|
signal |
◆ subscribeToCoreSignals()
| void WalletModel::subscribeToCoreSignals |
( |
| ) |
|
|
private |
◆ transactionCanBeAbandoned()
| bool WalletModel::transactionCanBeAbandoned |
( |
uint256 |
hash | ) |
const |
◆ transactionCanBeBumped()
| bool WalletModel::transactionCanBeBumped |
( |
uint256 |
hash | ) |
const |
◆ unlockCoin()
| void WalletModel::unlockCoin |
( |
COutPoint & |
output | ) |
|
◆ unsubscribeFromCoreSignals()
| void WalletModel::unsubscribeFromCoreSignals |
( |
| ) |
|
|
private |
◆ updateAddressBook
| void WalletModel::updateAddressBook |
( |
const QString & |
address, |
|
|
const QString & |
label, |
|
|
bool |
isMine, |
|
|
const QString & |
purpose, |
|
|
int |
status |
|
) |
| |
|
slot |
◆ updateStatus
| void WalletModel::updateStatus |
( |
| ) |
|
|
slot |
◆ updateTransaction
| void WalletModel::updateTransaction |
( |
| ) |
|
|
slot |
◆ updateWatchOnlyFlag
| void WalletModel::updateWatchOnlyFlag |
( |
bool |
fHaveWatchonly | ) |
|
|
slot |
◆ validateAddress()
| bool WalletModel::validateAddress |
( |
const QString & |
address | ) |
|
◆ addressTableModel
◆ assetTableModel
◆ cachedBalance
◆ cachedEncryptionStatus
◆ cachedImmatureBalance
| CAmount WalletModel::cachedImmatureBalance |
|
private |
◆ cachedNumBlocks
| int WalletModel::cachedNumBlocks |
|
private |
◆ cachedUnconfirmedBalance
| CAmount WalletModel::cachedUnconfirmedBalance |
|
private |
◆ cachedWatchImmatureBalance
| CAmount WalletModel::cachedWatchImmatureBalance |
|
private |
◆ cachedWatchOnlyBalance
| CAmount WalletModel::cachedWatchOnlyBalance |
|
private |
◆ cachedWatchUnconfBalance
| CAmount WalletModel::cachedWatchUnconfBalance |
|
private |
◆ fForceCheckBalanceChanged
| bool WalletModel::fForceCheckBalanceChanged |
|
private |
◆ fHaveWatchOnly
| bool WalletModel::fHaveWatchOnly |
|
private |
◆ optionsModel
◆ pollTimer
| QTimer* WalletModel::pollTimer |
|
private |
◆ recentRequestsTableModel
◆ transactionTableModel
◆ wallet
The documentation for this class was generated from the following files: