Remove direct bitcoin calls from qt/bitcoingui.cpp

This commit is contained in:
Russell Yanofsky 2017-04-17 14:33:47 -04:00 committed by John Newbery
parent c0f2756be5
commit 3d619e9d36
5 changed files with 45 additions and 8 deletions

View file

@ -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