Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletutil.h
// Copyright (c) 2017 The Bitcoin Core developers | // Copyright (c) 2017 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_WALLET_WALLETUTIL_H | #ifndef BITCOIN_WALLET_WALLETUTIL_H | ||||
#define BITCOIN_WALLET_WALLETUTIL_H | #define BITCOIN_WALLET_WALLETUTIL_H | ||||
#include <fs.h> | #include <util/system.h> | ||||
#include <vector> | |||||
//! Get the path of the wallet directory. | //! Get the path of the wallet directory. | ||||
fs::path GetWalletDir(); | fs::path GetWalletDir(); | ||||
//! Get wallets in wallet directory. | |||||
std::vector<fs::path> ListWalletDir(); | |||||
//! The WalletLocation class provides wallet information. | //! The WalletLocation class provides wallet information. | ||||
class WalletLocation final { | class WalletLocation final { | ||||
std::string m_name; | std::string m_name; | ||||
fs::path m_path; | fs::path m_path; | ||||
public: | public: | ||||
explicit WalletLocation() {} | explicit WalletLocation() {} | ||||
explicit WalletLocation(const std::string &name); | explicit WalletLocation(const std::string &name); | ||||
Show All 12 Lines |