5 #ifndef BITCOIN_QT_CLIENTMODEL_H 6 #define BITCOIN_QT_CLIENTMODEL_H 61 int getNumBlocks()
const;
63 int getHeaderTipHeight()
const;
64 int64_t getHeaderTipTime()
const;
69 QString getStatusBarWarnings()
const;
71 QString formatFullVersion()
const;
72 QString formatSubVersion()
const;
73 bool isReleaseVersion()
const;
74 QString formatClientStartupTime()
const;
75 QString dataDir()
const;
76 QString blocksDir()
const;
78 bool getProxyInfo(std::string& ip_port)
const;
83 mutable std::atomic<int> m_cached_num_blocks{-1};
104 void subscribeToCoreSignals();
105 void unsubscribeFromCoreSignals();
108 void numConnectionsChanged(
int count);
109 void numBlocksChanged(
int count,
const QDateTime& blockDate,
double nVerificationProgress,
bool header,
SynchronizationState sync_state);
110 void mempoolSizeChanged(
long count,
size_t mempoolSizeInBytes);
111 void networkActiveChanged(
bool networkActive);
112 void alertsChanged(
const QString &warnings);
113 void bytesChanged(quint64 totalBytesIn, quint64 totalBytesOut);
116 void message(
const QString &title,
const QString &message,
unsigned int style);
119 void showProgress(
const QString &title,
int nProgress);
122 void updateNumConnections(
int numConnections);
123 void updateNetworkActive(
bool networkActive);
125 void updateBanlist();
128 #endif // BITCOIN_QT_CLIENTMODEL_H PeerTableModel * peerTableModel
interfaces::Node & m_node
SynchronizationState
Current sync state passed to tip changed callbacks.
std::atomic< int64_t > cachedBestHeaderTime
QThread *const m_thread
A thread to interact with m_node asynchronously.
BanTableModel * banTableModel
std::unique_ptr< interfaces::Handler > m_handler_show_progress
std::atomic< int > cachedBestHeaderHeight
std::unique_ptr< interfaces::Handler > m_handler_notify_block_tip
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call...
interfaces::Node & node() const
std::unique_ptr< interfaces::Handler > m_handler_banned_list_changed
Model for Bitcoin network client.
std::unique_ptr< interfaces::Handler > m_handler_notify_header_tip
std::unique_ptr< interfaces::Handler > m_handler_notify_num_connections_changed
Interface from Qt to configuration data structure for Bitcoin client.
The block chain is a tree shaped structure starting with the genesis block at the root...
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call...
OptionsModel * optionsModel
std::unique_ptr< interfaces::Handler > m_handler_notify_network_active_changed
std::unique_ptr< interfaces::Handler > m_handler_notify_alert_changed
Top-level interface for a bitcoin node (bitcoind process).