Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 1,248 Lines • ▼ Show 20 Lines | QMetaObject::invokeMethod(gui, "message", | ||||
Q_ARG(QString, QString::fromStdString(message)), | Q_ARG(QString, QString::fromStdString(message)), | ||||
Q_ARG(unsigned int, style), Q_ARG(bool *, &ret)); | Q_ARG(unsigned int, style), Q_ARG(bool *, &ret)); | ||||
return ret; | return ret; | ||||
} | } | ||||
void BitcoinGUI::subscribeToCoreSignals() { | void BitcoinGUI::subscribeToCoreSignals() { | ||||
// Connect signals to client | // Connect signals to client | ||||
m_handler_message_box = m_node.handleMessageBox( | m_handler_message_box = m_node.handleMessageBox( | ||||
boost::bind(ThreadSafeMessageBox, this, _1, _2, _3)); | std::bind(ThreadSafeMessageBox, this, std::placeholders::_1, | ||||
std::placeholders::_2, std::placeholders::_3)); | |||||
m_handler_question = m_node.handleQuestion( | m_handler_question = m_node.handleQuestion( | ||||
boost::bind(ThreadSafeMessageBox, this, _1, _3, _4)); | std::bind(ThreadSafeMessageBox, this, std::placeholders::_1, | ||||
std::placeholders::_3, std::placeholders::_4)); | |||||
} | } | ||||
void BitcoinGUI::unsubscribeFromCoreSignals() { | void BitcoinGUI::unsubscribeFromCoreSignals() { | ||||
// Disconnect signals from client | // Disconnect signals from client | ||||
m_handler_message_box->disconnect(); | m_handler_message_box->disconnect(); | ||||
m_handler_question->disconnect(); | m_handler_question->disconnect(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |