Fabcoin Core
0.16.2
P2P Digital Currency
|
Interface to Fabcoin 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 () |
void | updateContractBook (const QString &address, const QString &label, const QString &abi, int status) |
Signals | |
void | balanceChanged (const CAmount &balance, const CAmount &unconfirmedBalance, const CAmount &immatureBalance, const CAmount &stake, const CAmount &watchOnlyBalance, const CAmount &watchUnconfBalance, const CAmount &watchImmatureBalance, const CAmount &watchOnlyStake) |
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 | showProgress (const QString &title, int nProgress) |
void | notifyWatchonlyChanged (bool fHaveWatchonly) |
Static Public Member Functions | |
static bool | isWalletEnabled () |
Private Member Functions | |
void | subscribeToCoreSignals () |
void | unsubscribeFromCoreSignals () |
void | checkBalanceChanged () |
void | checkTokenBalanceChanged () |
Interface to Fabcoin wallet from Qt view code.
Definition at line 103 of file walletmodel.h.
Enumerator | |
---|---|
Unencrypted | |
Locked | |
Unlocked |
Definition at line 125 of file walletmodel.h.
Enumerator | |
---|---|
OK | |
InvalidAmount | |
InvalidAddress | |
AmountExceedsBalance | |
AmountWithFeeExceedsBalance | |
DuplicateAddress | |
TransactionCreationFailed | |
TransactionCommitFailed | |
AbsurdFee | |
PaymentRequestExpired |
Definition at line 111 of file walletmodel.h.
|
explicit |
WalletModel::~WalletModel | ( | ) |
bool WalletModel::abandonTransaction | ( | uint256 | hash | ) | const |
Definition at line 815 of file walletmodel.cpp.
bool WalletModel::addTokenEntry | ( | const CTokenInfo & | token | ) |
Definition at line 921 of file walletmodel.cpp.
bool WalletModel::addTokenTxEntry | ( | const CTokenTx & | tokenTx, |
bool | fFlushOnClose = true |
||
) |
Definition at line 926 of file walletmodel.cpp.
bool WalletModel::backupWallet | ( | const QString & | filename | ) |
Definition at line 525 of file walletmodel.cpp.
bool WalletModel::bumpFee | ( | uint256 | hash | ) |
Definition at line 828 of file walletmodel.cpp.
bool WalletModel::changePassphrase | ( | const SecureString & | oldPass, |
const SecureString & | newPass | ||
) |
Definition at line 514 of file walletmodel.cpp.
|
private |
Definition at line 185 of file walletmodel.cpp.
|
private |
Definition at line 219 of file walletmodel.cpp.
|
signal |
|
signal |
bool WalletModel::existTokenEntry | ( | const CTokenInfo & | token | ) |
Definition at line 931 of file walletmodel.cpp.
AddressTableModel * WalletModel::getAddressTableModel | ( | ) |
CAmount WalletModel::getBalance | ( | const CCoinControl * | coinControl = nullptr | ) | const |
Definition at line 86 of file walletmodel.cpp.
ContractTableModel * WalletModel::getContractTableModel | ( | ) |
int WalletModel::getDefaultConfirmTarget | ( | ) | const |
bool WalletModel::getDefaultWalletRbf | ( | ) | const |
WalletModel::EncryptionStatus WalletModel::getEncryptionStatus | ( | ) | const |
Definition at line 470 of file walletmodel.cpp.
CAmount WalletModel::getImmatureBalance | ( | ) | const |
Definition at line 112 of file walletmodel.cpp.
std::vector< CTokenInfo > WalletModel::getInvalidTokens | ( | ) |
Definition at line 956 of file walletmodel.cpp.
OptionsModel * WalletModel::getOptionsModel | ( | ) |
Definition at line 710 of file walletmodel.cpp.
Definition at line 700 of file walletmodel.cpp.
RecentRequestsTableModel * WalletModel::getRecentRequestsTableModel | ( | ) |
QString WalletModel::getRestoreParam | ( | ) |
Definition at line 951 of file walletmodel.cpp.
QString WalletModel::getRestorePath | ( | ) |
Definition at line 946 of file walletmodel.cpp.
CAmount WalletModel::getStake | ( | ) | const |
TokenItemModel * WalletModel::getTokenItemModel | ( | ) |
TokenTransactionTableModel * WalletModel::getTokenTransactionTableModel | ( | ) |
TransactionTableModel * WalletModel::getTransactionTableModel | ( | ) |
CAmount WalletModel::getUnconfirmedBalance | ( | ) | const |
Definition at line 107 of file walletmodel.cpp.
CAmount WalletModel::getWatchBalance | ( | ) | const |
Definition at line 122 of file walletmodel.cpp.
CAmount WalletModel::getWatchImmatureBalance | ( | ) | const |
Definition at line 132 of file walletmodel.cpp.
CAmount WalletModel::getWatchStake | ( | ) | const |
CAmount WalletModel::getWatchUnconfirmedBalance | ( | ) | const |
Definition at line 127 of file walletmodel.cpp.
bool WalletModel::hasWalletBackup | ( | ) |
bool WalletModel::haveWatchOnly | ( | ) | const |
bool WalletModel::hdEnabled | ( | ) | const |
Definition at line 906 of file walletmodel.cpp.
bool WalletModel::isLockedCoin | ( | uint256 | hash, |
unsigned int | n | ||
) | const |
Definition at line 766 of file walletmodel.cpp.
bool WalletModel::isMineAddress | ( | const std::string & | strAddress | ) |
Definition at line 974 of file walletmodel.cpp.
bool WalletModel::IsSpendable | ( | const CTxDestination & | dest | ) | const |
Definition at line 705 of file walletmodel.cpp.
bool WalletModel::isSpent | ( | const COutPoint & | outpoint | ) | const |
Definition at line 729 of file walletmodel.cpp.
bool WalletModel::isUnspentAddress | ( | const std::string & | address | ) | const |
Definition at line 735 of file walletmodel.cpp.
|
static |
Definition at line 901 of file walletmodel.cpp.
void WalletModel::listCoins | ( | std::map< QString, std::vector< COutput > > & | mapCoins | ) | const |
Definition at line 756 of file walletmodel.cpp.
void WalletModel::listLockedCoins | ( | std::vector< COutPoint > & | vOutpts | ) |
Definition at line 784 of file walletmodel.cpp.
void WalletModel::loadReceiveRequests | ( | std::vector< std::string > & | vReceiveRequests | ) |
Definition at line 790 of file walletmodel.cpp.
void WalletModel::lockCoin | ( | COutPoint & | output | ) |
Definition at line 772 of file walletmodel.cpp.
|
signal |
|
signal |
|
slot |
Definition at line 145 of file walletmodel.cpp.
WalletModel::SendCoinsReturn WalletModel::prepareTransaction | ( | WalletModelTransaction & | transaction, |
const CCoinControl & | coinControl | ||
) |
Definition at line 252 of file walletmodel.cpp.
bool WalletModel::removeTokenEntry | ( | const std::string & | sHash | ) |
Definition at line 941 of file walletmodel.cpp.
WalletModel::UnlockContext WalletModel::requestUnlock | ( | ) |
Definition at line 645 of file walletmodel.cpp.
|
signal |
bool WalletModel::restoreWallet | ( | const QString & | filename, |
const QString & | param | ||
) |
Definition at line 543 of file walletmodel.cpp.
bool WalletModel::saveReceiveRequest | ( | const std::string & | sAddress, |
const int64_t | nId, | ||
const std::string & | sRequest | ||
) |
Definition at line 795 of file walletmodel.cpp.
WalletModel::SendCoinsReturn WalletModel::sendCoins | ( | WalletModelTransaction & | transaction | ) |
Definition at line 364 of file walletmodel.cpp.
bool WalletModel::setWalletEncrypted | ( | bool | encrypted, |
const SecureString & | passphrase | ||
) |
Definition at line 486 of file walletmodel.cpp.
bool WalletModel::setWalletLocked | ( | bool | locked, |
const SecureString & | passPhrase = SecureString() |
||
) |
Definition at line 500 of file walletmodel.cpp.
|
signal |
Definition at line 279 of file moc_walletmodel.cpp.
|
private |
bool WalletModel::transactionCanBeAbandoned | ( | uint256 | hash | ) | const |
Definition at line 810 of file walletmodel.cpp.
bool WalletModel::transactionCanBeBumped | ( | uint256 | hash | ) | const |
Definition at line 821 of file walletmodel.cpp.
void WalletModel::unlockCoin | ( | COutPoint & | output | ) |
Definition at line 778 of file walletmodel.cpp.
|
private |
|
slot |
|
slot |
|
slot |
|
slot |
Definition at line 227 of file walletmodel.cpp.
|
slot |
Definition at line 240 of file walletmodel.cpp.
bool WalletModel::validateAddress | ( | const QString & | address | ) |
Definition at line 246 of file walletmodel.cpp.
|
private |
Definition at line 261 of file walletmodel.h.
|
private |
Definition at line 269 of file walletmodel.h.
|
private |
Definition at line 277 of file walletmodel.h.
|
private |
Definition at line 271 of file walletmodel.h.
|
private |
Definition at line 278 of file walletmodel.h.
|
private |
Definition at line 272 of file walletmodel.h.
|
private |
Definition at line 270 of file walletmodel.h.
|
private |
Definition at line 275 of file walletmodel.h.
|
private |
Definition at line 273 of file walletmodel.h.
|
private |
Definition at line 276 of file walletmodel.h.
|
private |
Definition at line 274 of file walletmodel.h.
|
private |
Definition at line 262 of file walletmodel.h.
|
private |
Definition at line 255 of file walletmodel.h.
|
private |
Definition at line 254 of file walletmodel.h.
|
private |
Definition at line 259 of file walletmodel.h.
|
private |
Definition at line 280 of file walletmodel.h.
|
private |
Definition at line 264 of file walletmodel.h.
|
private |
Definition at line 283 of file walletmodel.h.
|
private |
Definition at line 282 of file walletmodel.h.
|
private |
Definition at line 265 of file walletmodel.h.
|
private |
Definition at line 266 of file walletmodel.h.
|
private |
Definition at line 263 of file walletmodel.h.
|
private |
Definition at line 253 of file walletmodel.h.