Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
peertablemodel.cpp
Go to the documentation of this file.
18 bool NodeLessThan::operator()(const CNodeCombinedStats &left, const CNodeCombinedStats &right) const
87 stats.fNodeStateStatsAvailable = GetNodeStateStats(stats.nodeStats.nodeid, stats.nodeStateStats);
93 qStableSort(cachedNodeStats.begin(), cachedNodeStats.end(), NodeLessThan(sortColumn, sortOrder));
121 columns << tr("NodeId") << tr("Node/Service") << tr("Ping") << tr("Sent") << tr("Received") << tr("User Agent");
QVariant data(const QModelIndex &index, int role) const
Definition: peertablemodel.cpp:162
bool operator()(const CNodeCombinedStats &left, const CNodeCombinedStats &right) const
Definition: peertablemodel.cpp:18
Definition: peertablemodel.h:23
void refreshPeers()
Pull a full list of peers from vNodes into our cache.
Definition: peertablemodel.cpp:59
Definition: peertablemodel.h:63
bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats)
Get statistics from node state.
Definition: net_processing.cpp:880
Definition: peertablemodel.h:59
Qt::ItemFlags flags(const QModelIndex &index) const
Definition: peertablemodel.cpp:211
Qt::SortOrder sortOrder
Order (ascending or descending) to sort nodes by.
Definition: peertablemodel.cpp:54
int columnCount(const QModelIndex &parent) const
Definition: peertablemodel.cpp:156
Definition: net.h:717
bool fNodeStateStatsAvailable
Definition: peertablemodel.h:26
QList< CNodeCombinedStats > cachedNodeStats
Local cache of peer information.
Definition: peertablemodel.cpp:50
const CNodeCombinedStats * getNodeStats(int idx)
Definition: peertablemodel.cpp:230
QModelIndex index(int row, int column, const QModelIndex &parent) const
Definition: peertablemodel.cpp:220
Definition: peertablemodel.cpp:46
Definition: peertablemodel.h:58
Definition: peertablemodel.h:29
Definition: peertablemodel.h:61
Definition: peertablemodel.h:62
Definition: peertablemodel.h:60
PeerTableModel(ClientModel *parent=0)
Definition: peertablemodel.cpp:116
int rowCount(const QModelIndex &parent) const
Definition: peertablemodel.cpp:150
QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition: peertablemodel.cpp:199