aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-06-03 14:52:58 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-06-03 14:52:58 +0300
commit2facbe77e485e8a824a08d862aa63f3f179480e9 (patch)
tree381d6c0411c4242c3e602fc16fe77472a2e1ea00 /src/wallet/wallet2_api.h
parentscripts for faster test wallets generation (diff)
downloadmonero-2facbe77e485e8a824a08d862aa63f3f179480e9.tar.xz
Wallet API : WalletManager::findWallets() added
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r--src/wallet/wallet2_api.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h
index 7841c299d..b98bb8661 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -190,12 +190,27 @@ struct WalletManager
*/
virtual bool closeWallet(Wallet *wallet) = 0;
- //! checks if wallet with the given name already exists
+ /*
+ * ! checks if wallet with the given name already exists
+ */
+
+ /*!
+ * @brief TODO: delme walletExists - check if the given filename is the wallet
+ * @param path - filename
+ * @return
+ */
virtual bool walletExists(const std::string &path) = 0;
+ /*!
+ * \brief findWallets - searches for the wallet files by given path name recursively
+ * \param path - starting point to search
+ * \return - list of strings with found wallets (absolute paths);
+ */
+ virtual std::vector<std::string> findWallets(const std::string &path) = 0;
+
+ //! returns verbose error string regarding last error;
virtual std::string errorString() const = 0;
-// //! set
-// virtual void setDaemonAddress(const std::string &address) = 0;
+
};