Changeset View
Changeset View
Standalone View
Standalone View
src/noui.cpp
// Copyright (c) 2010 Satoshi Nakamoto | // Copyright (c) 2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <noui.h> | #include <noui.h> | ||||
#include <ui_interface.h> | #include <ui_interface.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <boost/signals2/connection.hpp> | |||||
#include <cstdint> | #include <cstdint> | ||||
#include <cstdio> | #include <cstdio> | ||||
#include <string> | #include <string> | ||||
static bool noui_ThreadSafeMessageBox(const std::string &message, | static bool noui_ThreadSafeMessageBox(const std::string &message, | ||||
const std::string &caption, | const std::string &caption, | ||||
unsigned int style) { | unsigned int style) { | ||||
bool fSecure = style & CClientUIInterface::SECURE; | bool fSecure = style & CClientUIInterface::SECURE; | ||||
Show All 29 Lines | |||||
} | } | ||||
static void noui_InitMessage(const std::string &message) { | static void noui_InitMessage(const std::string &message) { | ||||
LogPrintf("init message: %s\n", message); | LogPrintf("init message: %s\n", message); | ||||
} | } | ||||
void noui_connect() { | void noui_connect() { | ||||
// Connect bitcoind signal handlers | // Connect bitcoind signal handlers | ||||
uiInterface.ThreadSafeMessageBox.connect(noui_ThreadSafeMessageBox); | uiInterface.ThreadSafeMessageBox_connect(noui_ThreadSafeMessageBox); | ||||
uiInterface.ThreadSafeQuestion.connect(noui_ThreadSafeQuestion); | uiInterface.ThreadSafeQuestion_connect(noui_ThreadSafeQuestion); | ||||
uiInterface.InitMessage.connect(noui_InitMessage); | uiInterface.InitMessage_connect(noui_InitMessage); | ||||
} | } |