Changeset View
Changeset View
Standalone View
Standalone View
src/qt/splashscreen.cpp
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | InitMessage(splash, title + std::string("\n") + | ||||
(resume_possible | (resume_possible | ||||
? _("(press q to shutdown and continue later)") | ? _("(press q to shutdown and continue later)") | ||||
: _("press q to shutdown")) + | : _("press q to shutdown")) + | ||||
strprintf("\n%d", nProgress) + "%"); | strprintf("\n%d", nProgress) + "%"); | ||||
} | } | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
void SplashScreen::ConnectWallet(std::unique_ptr<interfaces::Wallet> wallet) { | void SplashScreen::ConnectWallet(std::unique_ptr<interfaces::Wallet> wallet) { | ||||
m_connected_wallet_handlers.emplace_back(wallet->handleShowProgress( | m_connected_wallet_handlers.emplace_back(wallet->handleShowProgress( | ||||
boost::bind(ShowProgress, this, _1, _2, false))); | std::bind(ShowProgress, this, std::placeholders::_1, | ||||
std::placeholders::_2, false))); | |||||
m_connected_wallets.emplace_back(std::move(wallet)); | m_connected_wallets.emplace_back(std::move(wallet)); | ||||
} | } | ||||
#endif | #endif | ||||
void SplashScreen::subscribeToCoreSignals() { | void SplashScreen::subscribeToCoreSignals() { | ||||
// Connect signals to client | // Connect signals to client | ||||
m_handler_init_message = | m_handler_init_message = m_node.handleInitMessage( | ||||
m_node.handleInitMessage(boost::bind(InitMessage, this, _1)); | std::bind(InitMessage, this, std::placeholders::_1)); | ||||
m_handler_show_progress = | m_handler_show_progress = m_node.handleShowProgress( | ||||
m_node.handleShowProgress(boost::bind(ShowProgress, this, _1, _2, _3)); | std::bind(ShowProgress, this, std::placeholders::_1, | ||||
std::placeholders::_2, std::placeholders::_3)); | |||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
m_handler_load_wallet = m_node.handleLoadWallet( | m_handler_load_wallet = m_node.handleLoadWallet( | ||||
[this](std::unique_ptr<interfaces::Wallet> wallet) { | [this](std::unique_ptr<interfaces::Wallet> wallet) { | ||||
ConnectWallet(std::move(wallet)); | ConnectWallet(std::move(wallet)); | ||||
}); | }); | ||||
#endif | #endif | ||||
} | } | ||||
Show All 32 Lines |