Bitcoin ABC 0.26.3
P2P Digital Currency
|
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call. More...
#include <peertablemodel.h>
Public Types | |
enum | ColumnIndex { NetNodeId = 0 , Address = 1 , Network = 2 , Ping = 3 , Sent = 4 , Received = 5 , Subversion = 6 } |
Public Member Functions | |
PeerTableModel (interfaces::Node &node, QObject *parent) | |
~PeerTableModel () | |
const CNodeCombinedStats * | getNodeStats (int idx) |
int | getRowByNodeId (NodeId nodeid) |
void | startAutoRefresh () |
void | stopAutoRefresh () |
Methods overridden from QAbstractTableModel | |
interfaces::Node & | m_node |
const QStringList | columns |
std::unique_ptr< PeerTablePriv > | priv |
QTimer * | timer |
int | rowCount (const QModelIndex &parent) const override |
int | columnCount (const QModelIndex &parent) const override |
QVariant | data (const QModelIndex &index, int role) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
QModelIndex | index (int row, int column, const QModelIndex &parent) const override |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
void | sort (int column, Qt::SortOrder order) override |
void | refresh () |
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call.
Used by the rpc console UI.
Definition at line 48 of file peertablemodel.h.
Enumerator | |
---|---|
NetNodeId | |
Address | |
Network | |
Ping | |
Sent | |
Received | |
Subversion |
Definition at line 59 of file peertablemodel.h.
|
explicit |
PeerTableModel::~PeerTableModel | ( | ) |
Definition at line 116 of file peertablemodel.cpp.
|
override |
|
override |
Definition at line 138 of file peertablemodel.cpp.
|
override |
const CNodeCombinedStats * PeerTableModel::getNodeStats | ( | int | idx | ) |
|
override |
Definition at line 201 of file peertablemodel.cpp.
|
slot |
Definition at line 216 of file peertablemodel.cpp.
|
override |
void PeerTableModel::startAutoRefresh | ( | ) |
void PeerTableModel::stopAutoRefresh | ( | ) |
|
private |
Definition at line 87 of file peertablemodel.h.
|
private |
Definition at line 86 of file peertablemodel.h.
|
private |
Definition at line 90 of file peertablemodel.h.
|
private |
Definition at line 91 of file peertablemodel.h.