diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-09-20 20:40:58 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-09-20 20:40:58 +0300 |
commit | d5d0856ce608b8411e45691c8f4e6125d835e430 (patch) | |
tree | 9531f5c3ace9de0333cc8b9b152d46c1ef24f128 /src/wallet/wallet2_api.h | |
parent | wallet2_api: fixed deadlock while closing wallet (diff) | |
download | monero-d5d0856ce608b8411e45691c8f4e6125d835e430.tar.xz |
wallet2_api: getter and setter for "refresh interval"
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r-- | src/wallet/wallet2_api.h | 15 |
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 |