Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
walletmodel.h
Go to the documentation of this file.
42 explicit SendCoinsRecipient() : amount(0), fSubtractFeeFromAmount(false), nVersion(SendCoinsRecipient::CURRENT_VERSION) { }
43 explicit SendCoinsRecipient(const QString &addr, const QString &_label, const CAmount& _amount, const QString &_message):
44 address(addr), label(_label), amount(_amount), message(_message), fSubtractFeeFromAmount(false), nVersion(SendCoinsRecipient::CURRENT_VERSION) {}
165 SendCoinsReturn prepareTransaction(WalletModelTransaction &transaction, const CCoinControl& coinControl);
173 bool setWalletLocked(bool locked, const SecureString &passPhrase=SecureString(), bool fMixing=false);
220 bool saveReceiveRequest(const std::string &sAddress, const int64_t nId, const std::string &sRequest);
269 void balanceChanged(const CAmount& balance, const CAmount& unconfirmedBalance, const CAmount& immatureBalance, const CAmount& anonymizedBalance,
270 const CAmount& watchOnlyBalance, const CAmount& watchUnconfBalance, const CAmount& watchImmatureBalance);
302 void updateAddressBook(const QString &address, const QString &label, bool isMine, const QString &purpose, int status);
Definition: walletmodel.h:153
bool abandonTransaction(uint256 hash) const
Definition: walletmodel.cpp:801
void loadReceiveRequests(std::vector< std::string > &vReceiveRequests)
Definition: walletmodel.cpp:776
bool isLockedCoin(uint256 hash, unsigned int n) const
Definition: walletmodel.cpp:746
void listCoins(std::map< QString, std::vector< COutput > > &mapCoins) const
Definition: walletmodel.cpp:736
Model for list of recently generated payment requests / dash: URIs.
Definition: recentrequeststablemodel.h:58
TransactionTableModel * transactionTableModel
Definition: walletmodel.h:245
void getOutputs(const std::vector< COutPoint > &vOutpoints, std::vector< COutput > &vOutputs)
Definition: walletmodel.cpp:715
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
Definition: standard.h:80
RecentRequestsTableModel * recentRequestsTableModel
Definition: walletmodel.h:246
UnlockContext & operator=(const UnlockContext &rhs)
Definition: walletmodel.h:192
UnlockContext(WalletModel *wallet, bool valid, bool was_locked, bool was_mixing)
Definition: walletmodel.cpp:670
QString reasonCommitFailed
Definition: walletmodel.h:161
void requireUnlock(bool fForMixingOnly=false)
void unsubscribeFromCoreSignals()
Definition: walletmodel.cpp:627
void updateChainLockHeight(int chainLockHeight)
Definition: walletmodel.cpp:219
std::basic_string< char, std::char_traits< char >, secure_allocator< char > > SecureString
Definition: secure.h:57
bool SerializeToString(std::string *output) const
Definition: paymentrequestplus.cpp:50
SendCoinsReturn sendCoins(WalletModelTransaction &transaction)
Definition: walletmodel.cpp:384
bool transactionCanBeAbandoned(uint256 hash) const
Definition: walletmodel.cpp:796
void showProgress(const QString &title, int nProgress)
SendCoinsRecipient(const QString &addr, const QString &_label, const CAmount &_amount, const QString &_message)
Definition: walletmodel.h:43
AddressTableModel * getAddressTableModel()
Definition: walletmodel.cpp:464
CAmount getDenominatedBalance(bool unconfirmed) const
Definition: walletmodel.cpp:97
Definition: walletmodel.h:110
Definition: paymentrequestplus.h:28
EncryptionStatus getEncryptionStatus() const
Definition: walletmodel.cpp:479
CAmount getBalance(const CCoinControl *coinControl=nullptr) const
Definition: walletmodel.cpp:76
Definition: walletmodel.h:112
WalletModel(CWallet *wallet, OptionsModel *optionsModel, QObject *parent=0)
Definition: walletmodel.cpp:40
bool getPubKey(const CKeyID &address, CPubKey &vchPubKeyOut) const
Definition: walletmodel.cpp:694
int64_t getKeysLeftSinceAutoBackup() const
Definition: walletmodel.cpp:553
Definition: walletmodel.h:111
bool getPrivKey(const CKeyID &address, CKey &vchPrivKeyOut) const
Definition: walletmodel.cpp:709
bool changePassphrase(const SecureString &oldPass, const SecureString &newPass)
Definition: walletmodel.cpp:527
void listProTxCoins(std::vector< COutPoint > &vOutpts)
Definition: walletmodel.cpp:770
int getDefaultConfirmTarget() const
Definition: walletmodel.cpp:817
CAmount getWatchUnconfirmedBalance() const
Definition: walletmodel.cpp:132
Definition: walletmodel.h:39
SendCoinsReturn prepareTransaction(WalletModelTransaction &transaction, const CCoinControl &coinControl)
Definition: walletmodel.cpp:260
SendCoinsReturn(StatusCode _status=OK, QString _reasonCommitFailed="")
Definition: walletmodel.h:155
CAmount getAnonymizedBalance(const CCoinControl *coinControl=nullptr) const
Definition: walletmodel.cpp:92
TransactionTableModel * getTransactionTableModel()
Definition: walletmodel.cpp:469
EncryptionStatus cachedEncryptionStatus
Definition: walletmodel.h:256
An outpoint - a combination of a transaction hash and an index n into its vout.
Definition: transaction.h:26
void SerializationOp(Stream &s, Operation ser_action)
Definition: walletmodel.h:70
void CopyFrom(const UnlockContext &rhs)
Definition: walletmodel.cpp:686
UI model for the transaction table of a wallet.
Definition: transactiontablemodel.h:21
UnlockContext(const UnlockContext &obj)
Definition: walletmodel.h:191
void encryptionStatusChanged(int status)
bool validateAddress(const QString &address)
Definition: walletmodel.cpp:255
void updateWatchOnlyFlag(bool fHaveWatchonly)
Definition: walletmodel.cpp:249
CAmount getAverageAnonymizedRounds() const
Definition: walletmodel.cpp:107
CAmount cachedWatchImmatureBalance
Definition: walletmodel.h:255
RecentRequestsTableModel * getRecentRequestsTableModel()
Definition: walletmodel.cpp:474
UnlockContext requestUnlock(bool fForMixingOnly=false)
Definition: walletmodel.cpp:640
bool autoBackupWallet(QString &strBackupWarningRet, QString &strBackupErrorRet)
Definition: walletmodel.cpp:543
void listLockedCoins(std::vector< COutPoint > &vOutpts)
Definition: walletmodel.cpp:764
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:25
CAmount getNormalizedAnonymizedBalance() const
Definition: walletmodel.cpp:102
CAmount getUnconfirmedBalance() const
Definition: walletmodel.cpp:112
Definition: wallet.h:566
bool setWalletEncrypted(bool encrypted, const SecureString &passphrase)
Definition: walletmodel.cpp:499
int getRealOutpointPrivateSendRounds(const COutPoint &outpoint) const
Definition: walletmodel.cpp:232
Definition: walletmodel.h:124
void message(const QString &title, const QString &message, unsigned int style)
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
Definition: wallet.h:715
void balanceChanged(const CAmount &balance, const CAmount &unconfirmedBalance, const CAmount &immatureBalance, const CAmount &anonymizedBalance, const CAmount &watchOnlyBalance, const CAmount &watchUnconfBalance, const CAmount &watchImmatureBalance)
void notifyWatchonlyChanged(bool fHaveWatchonly)
Data model for a walletmodel transaction.
Definition: walletmodeltransaction.h:21
void coinsSent(CWallet *wallet, SendCoinsRecipient recipient, QByteArray transaction)
Definition: walletmodel.h:182
Definition: walletmodel.h:127
CAmount getWatchImmatureBalance() const
Definition: walletmodel.cpp:137
bool saveReceiveRequest(const std::string &sAddress, const int64_t nId, const std::string &sRequest)
Definition: walletmodel.cpp:781
Definition: walletmodel.h:115
void updateAddressBook(const QString &address, const QString &label, bool isMine, const QString &purpose, int status)
Definition: walletmodel.cpp:242
Definition: walletmodel.h:125
CAmount getAnonymizableBalance(bool fSkipDenominated, bool fSkipUnconfirmed) const
Definition: walletmodel.cpp:87
Definition: walletmodel.h:118
bool isFullyMixed(const COutPoint &outpoint) const
Definition: walletmodel.cpp:237
bool setWalletLocked(bool locked, const SecureString &passPhrase=SecureString(), bool fMixing=false)
Definition: walletmodel.cpp:513
bool IsSpendable(const CTxDestination &dest) const
Definition: walletmodel.cpp:699