6 #ifndef PIVX_QT_PEERTABLEMODEL_H
7 #define PIVX_QT_PEERTABLEMODEL_H
12 #include <QAbstractTableModel>
13 #include <QStringList>
63 int rowCount(
const QModelIndex& parent)
const;
65 QVariant
data(
const QModelIndex&
index,
int role)
const;
66 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
67 QModelIndex
index(
int row,
int column,
const QModelIndex& parent)
const;
68 Qt::ItemFlags
flags(
const QModelIndex&
index)
const;
69 void sort(
int column, Qt::SortOrder order);
Model for PIVX network client.
bool operator()(const CNodeCombinedStats &left, const CNodeCombinedStats &right) const
NodeLessThan(int nColumn, Qt::SortOrder fOrder)
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call.
QModelIndex index(int row, int column, const QModelIndex &parent) const
ClientModel * clientModel
QVariant data(const QModelIndex &index, int role) const
int rowCount(const QModelIndex &parent) const
PeerTableModel(ClientModel *parent=0)
const CNodeCombinedStats * getNodeStats(int idx)
int getRowByNodeId(NodeId nodeid)
QVariant headerData(int section, Qt::Orientation orientation, int role) const
void sort(int column, Qt::SortOrder order)
Qt::ItemFlags flags(const QModelIndex &index) const
int columnCount(const QModelIndex &parent) const
CNodeStateStats nodeStateStats
bool fNodeStateStatsAvailable