Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.h
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | |||||
/** Interface to Bitcoin wallet from Qt view code. */ | /** Interface to Bitcoin wallet from Qt view code. */ | ||||
class WalletModel : public QObject { | class WalletModel : public QObject { | ||||
Q_OBJECT | Q_OBJECT | ||||
public: | public: | ||||
explicit WalletModel(std::unique_ptr<interfaces::Wallet> wallet, | explicit WalletModel(std::unique_ptr<interfaces::Wallet> wallet, | ||||
interfaces::Node &node, | interfaces::Node &node, | ||||
const PlatformStyle *platformStyle, CWallet *cwallet, | const PlatformStyle *platformStyle, | ||||
OptionsModel *optionsModel, QObject *parent = nullptr); | OptionsModel *optionsModel, QObject *parent = nullptr); | ||||
~WalletModel(); | ~WalletModel(); | ||||
// Returned by sendCoins | // Returned by sendCoins | ||||
enum StatusCode { | enum StatusCode { | ||||
OK, | OK, | ||||
InvalidAmount, | InvalidAmount, | ||||
InvalidAddress, | InvalidAddress, | ||||
▲ Show 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | private: | ||||
std::unique_ptr<interfaces::Wallet> m_wallet; | std::unique_ptr<interfaces::Wallet> m_wallet; | ||||
std::unique_ptr<interfaces::Handler> m_handler_status_changed; | std::unique_ptr<interfaces::Handler> m_handler_status_changed; | ||||
std::unique_ptr<interfaces::Handler> m_handler_address_book_changed; | std::unique_ptr<interfaces::Handler> m_handler_address_book_changed; | ||||
std::unique_ptr<interfaces::Handler> m_handler_transaction_changed; | std::unique_ptr<interfaces::Handler> m_handler_transaction_changed; | ||||
std::unique_ptr<interfaces::Handler> m_handler_show_progress; | std::unique_ptr<interfaces::Handler> m_handler_show_progress; | ||||
std::unique_ptr<interfaces::Handler> m_handler_watch_only_changed; | std::unique_ptr<interfaces::Handler> m_handler_watch_only_changed; | ||||
interfaces::Node &m_node; | interfaces::Node &m_node; | ||||
CWallet *cwallet; | |||||
bool fHaveWatchOnly; | bool fHaveWatchOnly; | ||||
bool fForceCheckBalanceChanged; | bool fForceCheckBalanceChanged; | ||||
// Wallet has an options model for wallet-specific options (transaction fee, | // Wallet has an options model for wallet-specific options (transaction fee, | ||||
// for example) | // for example) | ||||
OptionsModel *optionsModel; | OptionsModel *optionsModel; | ||||
AddressTableModel *addressTableModel; | AddressTableModel *addressTableModel; | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |