qt: Revamp ClientModel code to handle {Block|Header}Tip core signals

No behavior change.
This commit is contained in:
Hennadii Stepanov
2022-04-10 18:55:36 +02:00
parent 48f6d39659
commit 9bd1565f65
2 changed files with 19 additions and 19 deletions

View File

@@ -23,6 +23,7 @@ enum class SynchronizationState;
namespace interfaces {
class Handler;
class Node;
struct BlockTip;
}
QT_BEGIN_NAMESPACE
@@ -104,6 +105,7 @@ private:
//! A thread to interact with m_node asynchronously
QThread* const m_thread;
void TipChanged(SynchronizationState sync_state, interfaces::BlockTip tip, double verification_progress, bool header);
void subscribeToCoreSignals();
void unsubscribeFromCoreSignals();