6 #ifndef RAVEN_QT_PEERTABLEMODEL_H 7 #define RAVEN_QT_PEERTABLEMODEL_H 12 #include <QAbstractTableModel> 13 #include <QStringList> 32 column(nColumn), order(fOrder) {}
52 int getRowByNodeId(
NodeId nodeid);
53 void startAutoRefresh();
54 void stopAutoRefresh();
67 int rowCount(
const QModelIndex &parent)
const;
68 int columnCount(
const QModelIndex &parent)
const;
69 QVariant data(
const QModelIndex &index,
int role)
const;
70 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
71 QModelIndex index(
int row,
int column,
const QModelIndex &parent)
const;
72 Qt::ItemFlags
flags(
const QModelIndex &index)
const;
73 void sort(
int column, Qt::SortOrder order);
82 std::unique_ptr<PeerTablePriv>
priv;
86 #endif // RAVEN_QT_PEERTABLEMODEL_H
CNodeStateStats nodeStateStats
NodeLessThan(int nColumn, Qt::SortOrder fOrder)
bool fNodeStateStatsAvailable
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call...
std::unique_ptr< PeerTablePriv > priv
Model for Raven network client.
ClientModel * clientModel