Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.h
Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | public: | ||||
UnlockContext requestUnlock(); | UnlockContext requestUnlock(); | ||||
void loadReceiveRequests(std::vector<std::string> &vReceiveRequests); | void loadReceiveRequests(std::vector<std::string> &vReceiveRequests); | ||||
bool saveReceiveRequest(const std::string &sAddress, const int64_t nId, | bool saveReceiveRequest(const std::string &sAddress, const int64_t nId, | ||||
const std::string &sRequest); | const std::string &sRequest); | ||||
static bool isWalletEnabled(); | static bool isWalletEnabled(); | ||||
bool privateKeysDisabled() const; | bool privateKeysDisabled() const; | ||||
bool canGetAddresses() const; | |||||
interfaces::Node &node() const { return m_node; } | interfaces::Node &node() const { return m_node; } | ||||
interfaces::Wallet &wallet() const { return *m_wallet; } | interfaces::Wallet &wallet() const { return *m_wallet; } | ||||
const CChainParams &getChainParams() const; | const CChainParams &getChainParams() const; | ||||
QString getWalletName() const; | QString getWalletName() const; | ||||
QString getDisplayName() const; | QString getDisplayName() const; | ||||
bool isMultiwallet(); | bool isMultiwallet(); | ||||
AddressTableModel *getAddressTableModel() const { | AddressTableModel *getAddressTableModel() const { | ||||
return addressTableModel; | return addressTableModel; | ||||
} | } | ||||
private: | private: | ||||
std::unique_ptr<interfaces::Wallet> m_wallet; | std::unique_ptr<interfaces::Wallet> m_wallet; | ||||
std::unique_ptr<interfaces::Handler> m_handler_unload; | std::unique_ptr<interfaces::Handler> m_handler_unload; | ||||
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; | ||||
std::unique_ptr<interfaces::Handler> m_handler_can_get_addrs_changed; | |||||
interfaces::Node &m_node; | interfaces::Node &m_node; | ||||
bool fHaveWatchOnly; | bool fHaveWatchOnly; | ||||
bool fForceCheckBalanceChanged{false}; | bool fForceCheckBalanceChanged{false}; | ||||
// 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; | ||||
Show All 37 Lines | Q_SIGNALS: | ||||
void showProgress(const QString &title, int nProgress); | void showProgress(const QString &title, int nProgress); | ||||
// Watch-only address added | // Watch-only address added | ||||
void notifyWatchonlyChanged(bool fHaveWatchonly); | void notifyWatchonlyChanged(bool fHaveWatchonly); | ||||
// Signal that wallet is about to be removed | // Signal that wallet is about to be removed | ||||
void unload(); | void unload(); | ||||
// Notify that there are now keys in the keypool | |||||
void canGetAddressesChanged(); | |||||
public Q_SLOTS: | public Q_SLOTS: | ||||
/** Wallet status might have changed. */ | /** Wallet status might have changed. */ | ||||
void updateStatus(); | void updateStatus(); | ||||
/** New transaction, or transaction changed status. */ | /** New transaction, or transaction changed status. */ | ||||
void updateTransaction(); | void updateTransaction(); | ||||
/** New, updated or removed address book entry. */ | /** New, updated or removed address book entry. */ | ||||
void updateAddressBook(const QString &address, const QString &label, | void updateAddressBook(const QString &address, const QString &label, | ||||
bool isMine, const QString &purpose, int status); | bool isMine, const QString &purpose, int status); | ||||
Show All 10 Lines |