interfaces: Add remove to Wallet
This commit is contained in:
parent
029d28a7aa
commit
f6122abe03
2 changed files with 7 additions and 0 deletions
|
@ -468,6 +468,10 @@ public:
|
||||||
bool IsWalletFlagSet(uint64_t flag) override { return m_wallet.IsWalletFlagSet(flag); }
|
bool IsWalletFlagSet(uint64_t flag) override { return m_wallet.IsWalletFlagSet(flag); }
|
||||||
OutputType getDefaultAddressType() override { return m_wallet.m_default_address_type; }
|
OutputType getDefaultAddressType() override { return m_wallet.m_default_address_type; }
|
||||||
OutputType getDefaultChangeType() override { return m_wallet.m_default_change_type; }
|
OutputType getDefaultChangeType() override { return m_wallet.m_default_change_type; }
|
||||||
|
void remove() override
|
||||||
|
{
|
||||||
|
RemoveWallet(m_shared_wallet);
|
||||||
|
}
|
||||||
std::unique_ptr<Handler> handleUnload(UnloadFn fn) override
|
std::unique_ptr<Handler> handleUnload(UnloadFn fn) override
|
||||||
{
|
{
|
||||||
return MakeHandler(m_wallet.NotifyUnload.connect(fn));
|
return MakeHandler(m_wallet.NotifyUnload.connect(fn));
|
||||||
|
|
|
@ -247,6 +247,9 @@ public:
|
||||||
// Get default change type.
|
// Get default change type.
|
||||||
virtual OutputType getDefaultChangeType() = 0;
|
virtual OutputType getDefaultChangeType() = 0;
|
||||||
|
|
||||||
|
// Remove wallet.
|
||||||
|
virtual void remove() = 0;
|
||||||
|
|
||||||
//! Register handler for unload message.
|
//! Register handler for unload message.
|
||||||
using UnloadFn = std::function<void()>;
|
using UnloadFn = std::function<void()>;
|
||||||
virtual std::unique_ptr<Handler> handleUnload(UnloadFn fn) = 0;
|
virtual std::unique_ptr<Handler> handleUnload(UnloadFn fn) = 0;
|
||||||
|
|
Loading…
Reference in a new issue