aboutsummaryrefslogtreecommitdiff
path: root/src/interface/node.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2017-04-17 14:33:47 -0400
committerJohn Newbery <[email protected]>2018-04-04 16:52:40 -0400
commit3d619e9d3658e36cba4a19a5bed33e5538317b27 (patch)
tree5d4767f191928188fae2dc82c630da52a9cf1f28 /src/interface/node.cpp
parentRemove direct bitcoin calls from qt/optionsmodel.cpp (diff)
downloaddiscoin-3d619e9d3658e36cba4a19a5bed33e5538317b27.tar.xz
discoin-3d619e9d3658e36cba4a19a5bed33e5538317b27.zip
Remove direct bitcoin calls from qt/bitcoingui.cpp
Diffstat (limited to 'src/interface/node.cpp')
-rw-r--r--src/interface/node.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/interface/node.cpp b/src/interface/node.cpp
index 877c5f57a..7bfe79ed5 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