Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.h
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | public: | ||||
virtual std::string getWalletDir() = 0; | virtual std::string getWalletDir() = 0; | ||||
//! Return available wallets in wallet directory. | //! Return available wallets in wallet directory. | ||||
virtual std::vector<std::string> listWalletDir() = 0; | virtual std::vector<std::string> listWalletDir() = 0; | ||||
//! Return interfaces for accessing wallets (if any). | //! Return interfaces for accessing wallets (if any). | ||||
virtual std::vector<std::unique_ptr<Wallet>> getWallets() = 0; | virtual std::vector<std::unique_ptr<Wallet>> getWallets() = 0; | ||||
//! Attempts to load a wallet from file or directory. | |||||
//! The loaded wallet is also notified to handlers previously registered | |||||
//! with handleLoadWallet. | |||||
virtual std::unique_ptr<Wallet> loadWallet(const CChainParams ¶ms, | |||||
const std::string &name, | |||||
std::string &error, | |||||
std::string &warning) const = 0; | |||||
//! Register handler for init messages. | //! Register handler for init messages. | ||||
using InitMessageFn = std::function<void(const std::string &message)>; | using InitMessageFn = std::function<void(const std::string &message)>; | ||||
virtual std::unique_ptr<Handler> handleInitMessage(InitMessageFn fn) = 0; | virtual std::unique_ptr<Handler> handleInitMessage(InitMessageFn fn) = 0; | ||||
//! Register handler for message box messages. | //! Register handler for message box messages. | ||||
using MessageBoxFn = | using MessageBoxFn = | ||||
std::function<bool(const std::string &message, | std::function<bool(const std::string &message, | ||||
const std::string &caption, unsigned int style)>; | const std::string &caption, unsigned int style)>; | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |