MCPcopy Create free account
hub / github.com/ElementsProject/elements / subscribeToCoreSignals

Method subscribeToCoreSignals

src/qt/walletmodel.cpp:455–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455void WalletModel::subscribeToCoreSignals()
456{
457 // Connect signals to wallet
458 m_handler_unload = m_wallet->handleUnload(std::bind(&NotifyUnload, this));
459 m_handler_status_changed = m_wallet->handleStatusChanged(std::bind(&NotifyKeyStoreStatusChanged, this));
460 m_handler_address_book_changed = m_wallet->handleAddressBookChanged(std::bind(NotifyAddressBookChanged, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5));
461 m_handler_transaction_changed = m_wallet->handleTransactionChanged(std::bind(NotifyTransactionChanged, this, std::placeholders::_1, std::placeholders::_2));
462 m_handler_show_progress = m_wallet->handleShowProgress(std::bind(ShowProgress, this, std::placeholders::_1, std::placeholders::_2));
463 m_handler_watch_only_changed = m_wallet->handleWatchOnlyChanged(std::bind(NotifyWatchonlyChanged, this, std::placeholders::_1));
464 m_handler_can_get_addrs_changed = m_wallet->handleCanGetAddressesChanged(std::bind(NotifyCanGetAddressesChanged, this));
465}
466
467void WalletModel::unsubscribeFromCoreSignals()
468{

Callers

nothing calls this directly

Calls 7

handleUnloadMethod · 0.80
handleStatusChangedMethod · 0.80
handleShowProgressMethod · 0.45

Tested by

no test coverage detected