![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Interface to Bitcoin wallet from Qt view code. More...
#include <walletmodel.h>
Classes | |
| struct | SendCoinsReturn |
| class | UnlockContext |
Public Slots | |
| void | updateStatus () |
| void | updateTransaction () |
| void | updateAddressBook (const QString &address, const QString &label, bool isMine, const QString &purpose, int status) |
| void | updateAddressBook (const QString &pubCoin, const QString &isUsed, int status) |
| void | updateWatchOnlyFlag (bool fHaveWatchonly) |
| void | pollBalanceChanged () |
Signals | |
| void | balanceChanged (const CAmount &balance, const CAmount &unconfirmedBalance, const CAmount &immatureBalance, const CAmount &watchOnlyBalance, const CAmount &watchUnconfBalance, const CAmount &watchImmatureBalance) |
| void | stakingStatusChanged (bool isStaking) |
| void | encryptionStatusChanged (int status) |
| void | requireUnlock (AskPassphraseDialog::Context context) |
| 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) |
| void | RefreshRecent () |
| void | WalletUnlocked () |
Public Member Functions | |
| WalletModel (CWallet *wallet, OptionsModel *optionsModel, QObject *parent=0) | |
| ~WalletModel () | |
| OptionsModel * | getOptionsModel () |
| AddressTableModel * | getAddressTableModel () |
| TransactionTableModel * | getTransactionTableModel () |
| QAbstractTableModel * | getTxTableModel () |
| bool | isShutdownRequested () |
| CAmount | getMinStakingAmount () const |
| CAmount | getBalance (const CCoinControl *coinControl=NULL) const |
| CAmount | getUnconfirmedBalance () const |
| CAmount | getImmatureBalance () const |
| CAmount | getLockedBalance () const |
| CAmount | getSpendableBalance () const |
| bool | haveWatchOnly () const |
| CAmount | getWatchBalance () const |
| CAmount | getWatchUnconfirmedBalance () const |
| CAmount | getWatchImmatureBalance () const |
| EncryptionStatus | getEncryptionStatus () const |
| CKey | generateNewKey () const |
| bool | setAddressBook (const CTxDestination &address, const std::string &strName, const std::string &strPurpose) |
| void | encryptKey (const CKey key, const std::string &pwd, const std::string &slt, std::vector< unsigned char > &crypted) |
| void | decryptKey (const std::vector< unsigned char > &crypted, const std::string &slt, const std::string &pwd, CKey &key) |
| void | emitBalanceChanged () |
| StakingStatusError | getStakingStatusError (QString &) |
| void | generateCoins (bool fGenerate, int nGenProcLimit) |
| bool | validateAddress (const QString &address) |
| SendCoinsReturn | prepareTransaction (WalletModelTransaction &transaction, const CCoinControl *coinControl=NULL) |
| SendCoinsReturn | sendCoins (WalletModelTransaction &transaction) |
| bool | setWalletEncrypted (bool encrypted, const SecureString &passphrase) |
| bool | setWalletLocked (bool locked, const SecureString &passPhrase=SecureString(), bool stakingOnly=false) |
| bool | lockForStakingOnly (const SecureString &passPhrase=SecureString()) |
| bool | changePassphrase (const SecureString &oldPass, const SecureString &newPass) |
| bool | isStakingOnlyUnlocked () |
| bool | backupWallet (const QString &filename) |
| UnlockContext | requestUnlock (AskPassphraseDialog::Context context, bool relock=false) |
| CWallet * | getCWallet () |
| bool | getPubKey (const CKeyID &address, CPubKey &vchPubKeyOut) const |
| bool | isMine (CBitcoinAddress address) |
| bool | getSeedPhrase (std::string &phrase) 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 |
| bool | isLockedCoin (uint256 hash, unsigned int n) const |
| void | lockCoin (COutPoint &output) |
| void | unlockCoin (COutPoint &output) |
| void | listLockedCoins (std::vector< COutPoint > &vOutpts) |
| std::string | GetUniqueWalletBackupName () |
| void | loadReceiveRequests (std::vector< std::string > &vReceiveRequests) |
| bool | saveReceiveRequest (const std::string &sAddress, const int64_t nId, const std::string &sRequest) |
Private Member Functions | |
| void | subscribeToCoreSignals () |
| void | unsubscribeFromCoreSignals () |
| bool | checkBalanceChanged () |
Interface to Bitcoin wallet from Qt view code.
Definition at line 102 of file walletmodel.h.
| Enumerator | |
|---|---|
| Unencrypted | |
| Locked | |
| Unlocked | |
| UnlockedForStakingOnly | |
Definition at line 124 of file walletmodel.h.
| Enumerator | |
|---|---|
| OK | |
| InvalidAmount | |
| InvalidAddress | |
| AmountExceedsBalance | |
| AmountWithFeeExceedsBalance | |
| DuplicateAddress | |
| TransactionCreationFailed | |
| TransactionCommitFailed | |
| StakingOnlyUnlocked | |
| InsaneFee | |
Definition at line 110 of file walletmodel.h.
|
explicit |
| WalletModel::~WalletModel | ( | ) |
| bool WalletModel::backupWallet | ( | const QString & | filename | ) |
Definition at line 436 of file walletmodel.cpp.
|
signal |
| bool WalletModel::changePassphrase | ( | const SecureString & | oldPass, |
| const SecureString & | newPass | ||
| ) |
|
private |
Definition at line 193 of file walletmodel.cpp.
|
signal |
| void WalletModel::decryptKey | ( | const std::vector< unsigned char > & | crypted, |
| const std::string & | slt, | ||
| const std::string & | pwd, | ||
| CKey & | key | ||
| ) |
| void WalletModel::emitBalanceChanged | ( | ) |
Definition at line 183 of file walletmodel.cpp.
|
signal |
| void WalletModel::encryptKey | ( | const CKey | key, |
| const std::string & | pwd, | ||
| const std::string & | slt, | ||
| std::vector< unsigned char > & | crypted | ||
| ) |
| void WalletModel::generateCoins | ( | bool | fGenerate, |
| int | nGenProcLimit | ||
| ) |
| CKey WalletModel::generateNewKey | ( | ) | const |
| AddressTableModel * WalletModel::getAddressTableModel | ( | ) |
| CAmount WalletModel::getBalance | ( | const CCoinControl * | coinControl = NULL | ) | const |
Definition at line 77 of file walletmodel.cpp.
| CWallet * WalletModel::getCWallet | ( | ) |
| WalletModel::EncryptionStatus WalletModel::getEncryptionStatus | ( | ) | const |
Definition at line 373 of file walletmodel.cpp.
| CAmount WalletModel::getImmatureBalance | ( | ) | const |
Definition at line 99 of file walletmodel.cpp.
| CAmount WalletModel::getLockedBalance | ( | ) | const |
| CAmount WalletModel::getMinStakingAmount | ( | ) | const |
Definition at line 72 of file walletmodel.cpp.
| OptionsModel * WalletModel::getOptionsModel | ( | ) |
Definition at line 586 of file walletmodel.cpp.
| bool WalletModel::getSeedPhrase | ( | std::string & | phrase | ) | const |
| CAmount WalletModel::getSpendableBalance | ( | ) | const |
Definition at line 94 of file walletmodel.cpp.
| StakingStatusError WalletModel::getStakingStatusError | ( | QString & | error | ) |
Definition at line 703 of file walletmodel.cpp.
| TransactionTableModel * WalletModel::getTransactionTableModel | ( | ) |
| QAbstractTableModel * WalletModel::getTxTableModel | ( | ) |
Definition at line 742 of file walletmodel.cpp.
| CAmount WalletModel::getUnconfirmedBalance | ( | ) | const |
Definition at line 89 of file walletmodel.cpp.
| std::string WalletModel::GetUniqueWalletBackupName | ( | ) |
| CAmount WalletModel::getWatchBalance | ( | ) | const |
Definition at line 114 of file walletmodel.cpp.
| CAmount WalletModel::getWatchImmatureBalance | ( | ) | const |
Definition at line 124 of file walletmodel.cpp.
| CAmount WalletModel::getWatchUnconfirmedBalance | ( | ) | const |
Definition at line 119 of file walletmodel.cpp.
| bool WalletModel::haveWatchOnly | ( | ) | const |
| bool WalletModel::isLockedCoin | ( | uint256 | hash, |
| unsigned int | n | ||
| ) | const |
Definition at line 650 of file walletmodel.cpp.
| bool WalletModel::isMine | ( | CBitcoinAddress | address | ) |
Definition at line 698 of file walletmodel.cpp.
| bool WalletModel::isShutdownRequested | ( | ) |
| bool WalletModel::isSpent | ( | const COutPoint & | outpoint | ) | const |
Definition at line 609 of file walletmodel.cpp.
| bool WalletModel::isStakingOnlyUnlocked | ( | ) |
| void WalletModel::listCoins | ( | std::map< QString, std::vector< COutput > > & | mapCoins | ) | const |
Definition at line 616 of file walletmodel.cpp.
| void WalletModel::listLockedCoins | ( | std::vector< COutPoint > & | vOutpts | ) |
Definition at line 668 of file walletmodel.cpp.
| void WalletModel::loadReceiveRequests | ( | std::vector< std::string > & | vReceiveRequests | ) |
Definition at line 674 of file walletmodel.cpp.
| void WalletModel::lockCoin | ( | COutPoint & | output | ) |
Definition at line 656 of file walletmodel.cpp.
| bool WalletModel::lockForStakingOnly | ( | const SecureString & | passPhrase = SecureString() | ) |
|
signal |
|
signal |
|
slot |
Definition at line 141 of file walletmodel.cpp.
| WalletModel::SendCoinsReturn WalletModel::prepareTransaction | ( | WalletModelTransaction & | transaction, |
| const CCoinControl * | coinControl = NULL |
||
| ) |
|
signal |
| WalletModel::UnlockContext WalletModel::requestUnlock | ( | AskPassphraseDialog::Context | context, |
| bool | relock = false |
||
| ) |
|
signal |
| bool WalletModel::saveReceiveRequest | ( | const std::string & | sAddress, |
| const int64_t | nId, | ||
| const std::string & | sRequest | ||
| ) |
| WalletModel::SendCoinsReturn WalletModel::sendCoins | ( | WalletModelTransaction & | transaction | ) |
| bool WalletModel::setAddressBook | ( | const CTxDestination & | address, |
| const std::string & | strName, | ||
| const std::string & | strPurpose | ||
| ) |
| bool WalletModel::setWalletEncrypted | ( | bool | encrypted, |
| const SecureString & | passphrase | ||
| ) |
Definition at line 386 of file walletmodel.cpp.
| bool WalletModel::setWalletLocked | ( | bool | locked, |
| const SecureString & | passPhrase = SecureString(), |
||
| bool | stakingOnly = false |
||
| ) |
Definition at line 397 of file walletmodel.cpp.
|
signal |
|
signal |
|
private |
Definition at line 523 of file walletmodel.cpp.
| void WalletModel::unlockCoin | ( | COutPoint & | output | ) |
Definition at line 662 of file walletmodel.cpp.
|
private |
|
slot |
|
slot |
|
slot |
|
slot |
Definition at line 238 of file walletmodel.cpp.
|
slot |
Definition at line 256 of file walletmodel.cpp.
| bool WalletModel::validateAddress | ( | const QString & | address | ) |
Definition at line 262 of file walletmodel.cpp.
|
signal |
|
private |
Definition at line 241 of file walletmodel.h.
|
private |
Definition at line 246 of file walletmodel.h.
|
private |
Definition at line 253 of file walletmodel.h.
|
private |
Definition at line 249 of file walletmodel.h.
|
private |
Definition at line 254 of file walletmodel.h.
|
private |
Definition at line 255 of file walletmodel.h.
|
private |
Definition at line 247 of file walletmodel.h.
|
private |
Definition at line 252 of file walletmodel.h.
|
private |
Definition at line 250 of file walletmodel.h.
|
private |
Definition at line 251 of file walletmodel.h.
|
private |
Definition at line 235 of file walletmodel.h.
|
private |
Definition at line 234 of file walletmodel.h.
|
private |
Definition at line 239 of file walletmodel.h.
|
private |
Definition at line 256 of file walletmodel.h.
|
private |
Definition at line 248 of file walletmodel.h.
|
private |
Definition at line 242 of file walletmodel.h.
|
private |
Definition at line 243 of file walletmodel.h.
|
private |
Definition at line 233 of file walletmodel.h.
1.8.17