diff options
| author | João Barbosa <[email protected]> | 2018-06-05 11:17:28 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2018-06-18 16:35:29 +0100 |
| commit | 0ee77b20771fe34f8dbde6b16d7e2637859baec3 (patch) | |
| tree | a3f137f35a5d1361bea86273a047a53c1d793d10 /src/interfaces/wallet.h | |
| parent | doc: Add release notes for unloadwallet RPC (diff) | |
| download | discoin-0ee77b20771fe34f8dbde6b16d7e2637859baec3.tar.xz discoin-0ee77b20771fe34f8dbde6b16d7e2637859baec3.zip | |
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 82ae0b14b..ce42e14ee 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; |