5#ifndef BITCOIN_QT_PEERTABLEMODEL_H 
    6#define BITCOIN_QT_PEERTABLEMODEL_H 
   11#include <QAbstractTableModel> 
   45    void startAutoRefresh();
 
   46    void stopAutoRefresh();
 
   61        StatsRole = Qt::UserRole,
 
   66    int rowCount(
const QModelIndex& parent = QModelIndex()) 
const override;
 
   67    int columnCount(
const QModelIndex& parent = QModelIndex()) 
const override;
 
   68    QVariant data(
const QModelIndex& index, 
int role = Qt::DisplayRole) 
const override;
 
   69    QVariant headerData(
int section, Qt::Orientation orientation, 
int role = Qt::DisplayRole) 
const override;
 
   70    QModelIndex index(
int row, 
int column, 
const QModelIndex& parent = QModelIndex()) 
const override;
 
   71    Qt::ItemFlags 
flags(
const QModelIndex &index) 
const override;
 
   79    QList<CNodeCombinedStats> m_peers_data{};
 
   81    const QStringList columns{
 
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