Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.h
Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | public: | ||||
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. | //! Attempts to load a wallet from file or directory. | ||||
//! The loaded wallet is also notified to handlers previously registered | //! The loaded wallet is also notified to handlers previously registered | ||||
//! with handleLoadWallet. | //! with handleLoadWallet. | ||||
virtual std::unique_ptr<Wallet> loadWallet(const CChainParams ¶ms, | virtual std::unique_ptr<Wallet> | ||||
const std::string &name, | loadWallet(const CChainParams ¶ms, const std::string &name, | ||||
std::string &error, | std::string &error, | ||||
std::string &warning) const = 0; | std::vector<std::string> &warnings) const = 0; | ||||
//! Create a wallet from file | //! Create a wallet from file | ||||
virtual WalletCreationStatus | virtual WalletCreationStatus | ||||
createWallet(const CChainParams ¶ms, const SecureString &passphrase, | createWallet(const CChainParams ¶ms, const SecureString &passphrase, | ||||
uint64_t wallet_creation_flags, const std::string &name, | uint64_t wallet_creation_flags, const std::string &name, | ||||
std::string &error, std::string &warning, | std::string &error, std::vector<std::string> &warnings, | ||||
std::unique_ptr<Wallet> &result) = 0; | std::unique_ptr<Wallet> &result) = 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 = | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |