5 #ifndef BITCOIN_QT_CLIENTMODEL_H 6 #define BITCOIN_QT_CLIENTMODEL_H 123 void bytesChanged(quint64 totalBytesIn, quint64 totalBytesOut);
126 void message(
const QString &title,
const QString &
message,
unsigned int style);
132 #endif // BITCOIN_QT_CLIENTMODEL_H QString formatClientStartupTime() const
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
PeerTableModel * peerTableModel
QString formatSubVersion() const
Block tip (could be a header or not, depends on the subscribed signal).
interfaces::Node & m_node
SynchronizationState
Current sync state passed to tip changed callbacks.
std::vector< std::unique_ptr< interfaces::Handler > > m_event_handlers
bool isReleaseVersion() const
std::atomic< int64_t > cachedBestHeaderTime
QString blocksDir() const
QThread *const m_thread
A thread to interact with m_node asynchronously.
void networkActiveChanged(bool networkActive)
BanTableModel * banTableModel
ClientModel(interfaces::Node &node, OptionsModel *optionsModel, QObject *parent=nullptr)
OptionsModel * getOptionsModel()
std::atomic< int > cachedBestHeaderHeight
PeerTableModel * getPeerTableModel()
void numConnectionsChanged(int count)
QString getStatusBarWarnings() const
Return warnings to be displayed in status bar.
void alertsChanged(const QString &warnings)
void bytesChanged(quint64 totalBytesIn, quint64 totalBytesOut)
uint256 getBestBlockHash() EXCLUSIVE_LOCKS_REQUIRED(!m_cached_tip_mutex)
BlockSource getBlockSource() const
Returns the block source of the current importing/syncing state.
std::atomic< int > m_cached_num_blocks
void mempoolSizeChanged(long count, size_t mempoolSizeInBytes, size_t mempoolMaxSizeInBytes)
int getNumConnections(unsigned int flags=CONNECTIONS_ALL) const
Return number of connections, default is in- and outbound (total)
std::map< CNetAddr, LocalServiceInfo > getNetLocalAddresses() const
PeerTableSortProxy * m_peer_table_sort_proxy
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call...
void unsubscribeFromCoreSignals()
void numBlocksChanged(int count, const QDateTime &blockDate, double nVerificationProgress, SyncType header, SynchronizationState sync_state)
BanTableModel * getBanTableModel()
interfaces::Node & node() const
void subscribeToCoreSignals()
void TipChanged(SynchronizationState sync_state, interfaces::BlockTip tip, double verification_progress, SyncType synctype) EXCLUSIVE_LOCKS_REQUIRED(!m_cached_tip_mutex)
Model for Bitcoin network client.
#define EXCLUSIVE_LOCKS_REQUIRED(...)
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 banned peers, similar to the "getpeerinfo" RPC call...
OptionsModel * optionsModel
uint256 m_cached_tip_blocks GUARDED_BY(m_cached_tip_mutex)
PeerTableSortProxy * peerTableSortProxy()
int getHeaderTipHeight() const
int64_t getHeaderTipTime() const
Top-level interface for a bitcoin node (bitcoind process).
void showProgress(const QString &title, int nProgress)
QString formatFullVersion() const
bool getProxyInfo(std::string &ip_port) const