5 #ifndef BITCOIN_QT_WALLETMODEL_H 6 #define BITCOIN_QT_WALLETMODEL_H 13 #if defined(HAVE_CONFIG_H) 90 template <
typename Stream,
typename Operation>
92 std::string sAddress =
address.toStdString();
93 std::string sLabel =
label.toStdString();
94 std::string sMessage =
message.toStdString();
110 if (ser_action.ForRead())
112 address = QString::fromStdString(sAddress);
113 label = QString::fromStdString(sLabel);
114 message = QString::fromStdString(sMessage);
211 bool saveReceiveRequest(
const std::string &sAddress,
const int64_t nId,
const std::string &sRequest);
271 void message(
const QString &title,
const QString &
message,
unsigned int style);
291 void updateAddressBook(
const QString &address,
const QString &label,
bool isMine,
const QString &purpose,
int status);
298 #endif // BITCOIN_QT_WALLETMODEL_H
void loadReceiveRequests(std::vector< std::string > &vReceiveRequests)
Model for list of recently generated payment requests / bitcoin: URIs.
TransactionTableModel * transactionTableModel
interfaces::Wallet & wallet() const
void coinsSent(WalletModel *wallet, SendCoinsRecipient recipient, QByteArray transaction)
RecentRequestsTableModel * recentRequestsTableModel
UnlockContext & operator=(const UnlockContext &rhs)
std::unique_ptr< interfaces::Handler > m_handler_address_book_changed
static bool isWalletEnabled()
QString reasonCommitFailed
WalletModel(std::unique_ptr< interfaces::Wallet > wallet, interfaces::Node &node, const PlatformStyle *platformStyle, OptionsModel *optionsModel, QObject *parent=0)
static const int CURRENT_VERSION
UnlockContext requestUnlock()
std::unique_ptr< interfaces::Handler > m_handler_unload
void unsubscribeFromCoreSignals()
std::basic_string< char, std::char_traits< char >, secure_allocator< char > > SecureString
bool SerializeToString(std::string *output) const
SendCoinsReturn sendCoins(WalletModelTransaction &transaction)
void showProgress(const QString &title, int nProgress)
std::unique_ptr< interfaces::Handler > m_handler_status_changed
bool IsInitialized() const
SendCoinsRecipient(const QString &addr, const QString &_label, const CAmount &_amount, const QString &_message)
AddressTableModel * getAddressTableModel()
EncryptionStatus getEncryptionStatus() const
bool bumpFee(uint256 hash, uint256 &new_hash)
UnlockContext(WalletModel *wallet, bool valid, bool relock)
int64_t CAmount
Amount in satoshis (Can be negative)
Collection of wallet balances.
bool changePassphrase(const SecureString &oldPass, const SecureString &newPass)
An encapsulated public key.
Interface for accessing a wallet.
bool privateKeysDisabled() const
std::unique_ptr< interfaces::Wallet > m_wallet
SendCoinsReturn prepareTransaction(WalletModelTransaction &transaction, const CCoinControl &coinControl)
SendCoinsReturn(StatusCode _status=OK, QString _reasonCommitFailed="")
void encryptionStatusChanged()
OptionsModel * optionsModel
QString getWalletName() const
TransactionTableModel * getTransactionTableModel()
EncryptionStatus cachedEncryptionStatus
An outpoint - a combination of a transaction hash and an index n into its vout.
interfaces::Node & node() const
void SerializationOp(Stream &s, Operation ser_action)
void CopyFrom(const UnlockContext &rhs)
UI model for the transaction table of a wallet.
bool parse(const QByteArray &data)
Qt model of the address book in the core.
bool setWalletLocked(bool locked, const SecureString &passPhrase=SecureString())
std::unique_ptr< interfaces::Handler > m_handler_show_progress
UnlockContext(const UnlockContext &obj)
bool validateAddress(const QString &address)
void updateWatchOnlyFlag(bool fHaveWatchonly)
bool fForceCheckBalanceChanged
AddressTableModel * getAddressTableModel() const
RecentRequestsTableModel * getRecentRequestsTableModel()
Interface from Qt to configuration data structure for Bitcoin client.
Interface to Bitcoin wallet from Qt view code.
interfaces::WalletBalances m_cached_balances
bool setWalletEncrypted(bool encrypted, const SecureString &passphrase)
interfaces::Node & m_node
void message(const QString &title, const QString &message, unsigned int style)
A reference to a CKey: the Hash360 of its serialized public key.
void notifyWatchonlyChanged(bool fHaveWatchonly)
Data model for a walletmodel transaction.
AddressTableModel * addressTableModel
bool fSubtractFeeFromAmount
std::unique_ptr< interfaces::Handler > m_handler_transaction_changed
void checkBalanceChanged(const interfaces::WalletBalances &new_balances)
std::string sPaymentRequest
bool saveReceiveRequest(const std::string &sAddress, const int64_t nId, const std::string &sRequest)
QString authenticatedMerchant
void updateAddressBook(const QString &address, const QString &label, bool isMine, const QString &purpose, int status)
Top-level interface for a bitcoin node (bsha3d process).
void balanceChanged(const interfaces::WalletBalances &balances)
std::unique_ptr< interfaces::Handler > m_handler_watch_only_changed
void pollBalanceChanged()
OptionsModel * getOptionsModel()
void subscribeToCoreSignals()