5 #ifndef BITCOIN_QT_PEERTABLEMODEL_H 6 #define BITCOIN_QT_PEERTABLEMODEL_H 13 #include <QAbstractTableModel> 14 #include <QStringList> 36 column(nColumn), order(fOrder) {}
56 int getRowByNodeId(
NodeId nodeid);
57 void startAutoRefresh();
58 void stopAutoRefresh();
71 int rowCount(
const QModelIndex &parent)
const override;
72 int columnCount(
const QModelIndex &parent)
const override;
73 QVariant data(
const QModelIndex &index,
int role)
const override;
74 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
75 QModelIndex index(
int row,
int column,
const QModelIndex &parent)
const override;
76 Qt::ItemFlags
flags(
const QModelIndex &index)
const override;
77 void sort(
int column, Qt::SortOrder order)
override;
86 std::unique_ptr<PeerTablePriv>
priv;
90 #endif // BITCOIN_QT_PEERTABLEMODEL_H
CNodeStateStats nodeStateStats
NodeLessThan(int nColumn, Qt::SortOrder fOrder)
bool fNodeStateStatsAvailable
interfaces::Node & m_node
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call...
std::unique_ptr< PeerTablePriv > priv
Top-level interface for a bitcoin node (bitcoind process).