aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-09-20 20:40:58 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-09-20 20:40:58 +0300
commitd5d0856ce608b8411e45691c8f4e6125d835e430 (patch)
tree9531f5c3ace9de0333cc8b9b152d46c1ef24f128 /src/wallet/wallet2_api.h
parentwallet2_api: fixed deadlock while closing wallet (diff)
downloadmonero-d5d0856ce608b8411e45691c8f4e6125d835e430.tar.xz
wallet2_api: getter and setter for "refresh interval"
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2_api.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h
index e880b1c68..2d2877856 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -223,10 +223,25 @@ struct Wallet
* @return - true if refreshed successfully;
*/
virtual bool refresh() = 0;
+
/**
* @brief refreshAsync - refreshes wallet asynchronously.
*/
virtual void refreshAsync() = 0;
+
+ /**
+ * @brief setAutoRefreshInterval - setup interval for automatic refresh.
+ * @param seconds - interval in seconds. if zero or less than zero - automatic refresh disabled;
+ */
+ virtual void setAutoRefreshInterval(int seconds) = 0;
+
+ /**
+ * @brief autoRefreshInterval - returns automatic refresh interval in seconds
+ * @return
+ */
+ virtual int autoRefreshInterval() const = 0;
+
+
/*!
* \brief createTransaction creates transaction. if dst_addr is an integrated address, payment_id is ignored
* \param dst_addr destination address as string