Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.cpp
Show First 20 Lines • Show All 384 Lines • ▼ Show 20 Lines | static void NotifyWatchonlyChanged(WalletModel *walletmodel, | ||||
QMetaObject::invokeMethod(walletmodel, "updateWatchOnlyFlag", | QMetaObject::invokeMethod(walletmodel, "updateWatchOnlyFlag", | ||||
Qt::QueuedConnection, | Qt::QueuedConnection, | ||||
Q_ARG(bool, fHaveWatchonly)); | Q_ARG(bool, fHaveWatchonly)); | ||||
} | } | ||||
void WalletModel::subscribeToCoreSignals() { | void WalletModel::subscribeToCoreSignals() { | ||||
// Connect signals to wallet | // Connect signals to wallet | ||||
m_handler_status_changed = m_wallet->handleStatusChanged( | m_handler_status_changed = m_wallet->handleStatusChanged( | ||||
boost::bind(&NotifyKeyStoreStatusChanged, this)); | std::bind(&NotifyKeyStoreStatusChanged, this)); | ||||
m_handler_address_book_changed = m_wallet->handleAddressBookChanged( | m_handler_address_book_changed = m_wallet->handleAddressBookChanged( | ||||
boost::bind(NotifyAddressBookChanged, this, _1, _2, _3, _4, _5)); | std::bind(NotifyAddressBookChanged, this, std::placeholders::_1, | ||||
std::placeholders::_2, std::placeholders::_3, | |||||
std::placeholders::_4, std::placeholders::_5)); | |||||
m_handler_transaction_changed = m_wallet->handleTransactionChanged( | m_handler_transaction_changed = m_wallet->handleTransactionChanged( | ||||
boost::bind(NotifyTransactionChanged, this, _1, _2)); | std::bind(NotifyTransactionChanged, this, std::placeholders::_1, | ||||
m_handler_show_progress = | std::placeholders::_2)); | ||||
m_wallet->handleShowProgress(boost::bind(ShowProgress, this, _1, _2)); | m_handler_show_progress = m_wallet->handleShowProgress(std::bind( | ||||
ShowProgress, this, std::placeholders::_1, std::placeholders::_2)); | |||||
m_handler_watch_only_changed = m_wallet->handleWatchOnlyChanged( | m_handler_watch_only_changed = m_wallet->handleWatchOnlyChanged( | ||||
boost::bind(NotifyWatchonlyChanged, this, _1)); | std::bind(NotifyWatchonlyChanged, this, std::placeholders::_1)); | ||||
} | } | ||||
void WalletModel::unsubscribeFromCoreSignals() { | void WalletModel::unsubscribeFromCoreSignals() { | ||||
// Disconnect signals from wallet | // Disconnect signals from wallet | ||||
m_handler_status_changed->disconnect(); | m_handler_status_changed->disconnect(); | ||||
m_handler_address_book_changed->disconnect(); | m_handler_address_book_changed->disconnect(); | ||||
m_handler_transaction_changed->disconnect(); | m_handler_transaction_changed->disconnect(); | ||||
m_handler_show_progress->disconnect(); | m_handler_show_progress->disconnect(); | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |