diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-06-05 11:17:28 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-06-18 16:35:29 +0100 |
commit | 0ee77b20771fe34f8dbde6b16d7e2637859baec3 (patch) | |
tree | a3f137f35a5d1361bea86273a047a53c1d793d10 /src/interfaces/wallet.h | |
parent | 9f9b50d5feb1e604283c463e289e83b63a849a8c (diff) |
ui: Support wallets unloaded dynamically
Diffstat (limited to 'src/interfaces/wallet.h')
-rw-r--r-- | src/interfaces/wallet.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h index 82ae0b14b5..ce42e14eea 100644 --- a/src/interfaces/wallet.h +++ b/src/interfaces/wallet.h @@ -242,6 +242,10 @@ public: // Get default change type. virtual OutputType getDefaultChangeType() = 0; + //! Register handler for unload message. + using UnloadFn = std::function<void()>; + virtual std::unique_ptr<Handler> handleUnload(UnloadFn fn) = 0; + //! Register handler for show progress messages. using ShowProgressFn = std::function<void(const std::string& title, int progress)>; virtual std::unique_ptr<Handler> handleShowProgress(ShowProgressFn fn) = 0; |