5#ifndef BITCOIN_QT_PEERTABLEMODEL_H
6#define BITCOIN_QT_PEERTABLEMODEL_H
11#include <QAbstractTableModel>
45 void startAutoRefresh();
46 void stopAutoRefresh();
62 StatsRole = Qt::UserRole,
67 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
68 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
69 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
70 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
71 QModelIndex index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
72 Qt::ItemFlags
flags(
const QModelIndex &index)
const override;
80 QList<CNodeCombinedStats> m_peers_data{};
82 const QStringList columns{
113 QTimer* timer{
nullptr};
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call.
interfaces::Node & m_node
Top-level interface for a bitcoin node (bitcoind process).
CNodeStateStats nodeStateStats
bool fNodeStateStatsAvailable