diff options
Diffstat (limited to 'src/interface/node.cpp')
-rw-r--r-- | src/interface/node.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/interface/node.cpp b/src/interface/node.cpp index 877c5f57a8..7bfe79ed50 100644 --- a/src/interface/node.cpp +++ b/src/interface/node.cpp @@ -45,6 +45,7 @@ class NodeImpl : public Node Shutdown(); } void startShutdown() override { StartShutdown(); } + bool shutdownRequested() override { return ShutdownRequested(); } void mapPort(bool use_upnp) override { if (use_upnp) { @@ -59,6 +60,14 @@ class NodeImpl : public Node { return MakeHandler(::uiInterface.InitMessage.connect(fn)); } + std::unique_ptr<Handler> handleMessageBox(MessageBoxFn fn) override + { + return MakeHandler(::uiInterface.ThreadSafeMessageBox.connect(fn)); + } + std::unique_ptr<Handler> handleQuestion(QuestionFn fn) override + { + return MakeHandler(::uiInterface.ThreadSafeQuestion.connect(fn)); + } }; } // namespace |