6 #ifndef ANONCOIN_QT_PEERTABLEMODEL_H
7 #define ANONCOIN_QT_PEERTABLEMODEL_H
11 #if defined(HAVE_CONFIG_H)
18 #include <QAbstractTableModel>
19 #include <QStringList>
69 int rowCount(
const QModelIndex &parent)
const;
71 QVariant
data(
const QModelIndex &
index,
int role)
const;
72 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
73 QModelIndex
index(
int row,
int column,
const QModelIndex &parent)
const;
74 Qt::ItemFlags
flags(
const QModelIndex &
index)
const;
75 void sort(
int column, Qt::SortOrder order);
88 #endif // ANONCOIN_QT_PEERTABLEMODEL_H
int getRowByNodeId(NodeId nodeid)
int rowCount(const QModelIndex &parent) const
CNodeStateStats nodeStateStats
int columnCount(const QModelIndex &parent) const
NodeLessThan(int nColumn, Qt::SortOrder fOrder)
QVariant headerData(int section, Qt::Orientation orientation, int role) const
bool fNodeStateStatsAvailable
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call...
Qt::ItemFlags flags(const QModelIndex &index) const
const CNodeCombinedStats * getNodeStats(int idx)
bool operator()(const CNodeCombinedStats &left, const CNodeCombinedStats &right) const
Model for Anoncoin network client.
QVariant data(const QModelIndex &index, int role) const
ClientModel * clientModel
QModelIndex index(int row, int column, const QModelIndex &parent) const
void sort(int column, Qt::SortOrder order)
PeerTableModel(ClientModel *parent=0)