5 #ifndef BITCOIN_QT_WALLETMODEL_H 6 #define BITCOIN_QT_WALLETMODEL_H 8 #if defined(HAVE_CONFIG_H) 87 bool validateAddress(
const QString &address);
94 reasonCommitFailed(_reasonCommitFailed)
108 bool setWalletEncrypted(
const SecureString& passphrase);
138 void loadReceiveRequests(std::vector<std::string>& vReceiveRequests);
139 bool saveReceiveRequest(
const std::string &sAddress,
const int64_t nId,
const std::string &sRequest);
143 static bool isWalletEnabled();
150 QString getWalletName()
const;
151 QString getDisplayName()
const;
153 bool isMultiwallet();
157 void refresh(
bool pk_hash_only =
false);
159 uint256 getLastBlockProcessed()
const;
174 bool fForceCheckBalanceChanged{
false};
192 void subscribeToCoreSignals();
193 void unsubscribeFromCoreSignals();
201 void encryptionStatusChanged();
206 void requireUnlock();
209 void message(
const QString &title,
const QString &message,
unsigned int style);
215 void showProgress(
const QString &title,
int nProgress);
218 void notifyWatchonlyChanged(
bool fHaveWatchonly);
224 void canGetAddressesChanged();
228 void startPollBalance();
233 void updateTransaction();
235 void updateAddressBook(
const QString &address,
const QString &label,
bool isMine,
const QString &purpose,
int status);
237 void updateWatchOnlyFlag(
bool fHaveWatchonly);
239 void pollBalanceChanged();
242 #endif // BITCOIN_QT_WALLETMODEL_H UnlockContext(UnlockContext &&obj)
Model for list of recently generated payment requests / bitcoin: URIs.
TransactionTableModel * transactionTableModel
interfaces::Wallet & wallet() const
RecentRequestsTableModel * recentRequestsTableModel
std::unique_ptr< interfaces::Handler > m_handler_address_book_changed
QString reasonCommitFailed
std::unique_ptr< interfaces::Handler > m_handler_unload
std::shared_ptr< CWallet > m_wallet
std::basic_string< char, std::char_traits< char >, secure_allocator< char > > SecureString
std::unique_ptr< interfaces::Handler > m_handler_status_changed
Collection of wallet balances.
An encapsulated public key.
Interface for accessing a wallet.
std::unique_ptr< interfaces::Wallet > m_wallet
SendCoinsReturn(StatusCode _status=OK, QString _reasonCommitFailed="")
OptionsModel * optionsModel
EncryptionStatus cachedEncryptionStatus
An outpoint - a combination of a transaction hash and an index n into its vout.
interfaces::Node & node() const
UI model for the transaction table of a wallet.
Model for Bitcoin network client.
Qt model of the address book in the core.
std::unique_ptr< interfaces::Handler > m_handler_show_progress
UnlockContext & operator=(UnlockContext &&rhs)
ClientModel * m_client_model
std::unique_ptr< interfaces::Handler > m_handler_can_get_addrs_changed
AddressTableModel * getAddressTableModel() const
Interface from Qt to configuration data structure for Bitcoin client.
Interface to Bitcoin wallet from Qt view code.
interfaces::WalletBalances m_cached_balances
interfaces::Node & m_node
A reference to a CKey: the Hash160 of its serialized public key.
Data model for a walletmodel transaction.
AddressTableModel * addressTableModel
std::unique_ptr< interfaces::Handler > m_handler_transaction_changed
Top-level interface for a bitcoin node (bitcoind process).
std::unique_ptr< interfaces::Handler > m_handler_watch_only_changed
ClientModel & clientModel() const