aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-06-10 12:51:09 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-06-23 16:01:41 +0300
commita5374897f89837d1373f6dcc4c92053320e5b9db (patch)
treecbd91c0749e1d0f2a7bdc8e017677010461fccdc /src/wallet/wallet2_api.h
parentremoved unused "using" (diff)
downloadmonero-a5374897f89837d1373f6dcc4c92053320e5b9db.tar.xz
Wallet::filename, Wallet::keysFilename, tests for move wallet
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2_api.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h
index b98bb8661..bf5ddc3c7 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -135,7 +135,24 @@ struct Wallet
virtual std::string errorString() const = 0;
virtual bool setPassword(const std::string &password) = 0;
virtual std::string address() const = 0;
+ /*!
+ * \brief store - stores wallet to file.
+ * \param path - main filename to store wallet to. additionally stores address file and keys file.
+ * to store to the same file - just pass empty string;
+ * \return
+ */
virtual bool store(const std::string &path) = 0;
+ /*!
+ * \brief filename - returns wallet filename
+ * \return
+ */
+ virtual std::string filename() const = 0;
+ /*!
+ * \brief keysFilename - returns keys filename. usually this formed as "wallet_filename".keys
+ * \return
+ */
+ virtual std::string keysFilename() const = 0;
+
virtual bool init(const std::string &daemon_address, uint64_t upper_transaction_size_limit) = 0;
virtual bool connectToDaemon() = 0;
virtual void setTrustedDaemon(bool arg) = 0;