Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call.
More...
#include <peertablemodel.h>
|
QList< CNodeCombinedStats > | m_peers_data {} |
| Internal peer data structure. More...
|
|
interfaces::Node & | m_node |
|
const QStringList | columns |
|
QTimer * | timer {nullptr} |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
|
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
|
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
|
Qt::ItemFlags | flags (const QModelIndex &index) const 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 38 of file peertablemodel.h.
◆ anonymous enum
◆ ColumnIndex
Enumerator |
---|
NetNodeId | |
Age | |
Address | |
Direction | |
ConnectionType | |
Network | |
Ping | |
Sent | |
Received | |
Subversion | |
Definition at line 48 of file peertablemodel.h.
◆ PeerTableModel()
◆ ~PeerTableModel()
PeerTableModel::~PeerTableModel |
( |
| ) |
|
|
default |
◆ columnCount()
int PeerTableModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ data()
QVariant PeerTableModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ flags()
Qt::ItemFlags PeerTableModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ headerData()
QVariant PeerTableModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ index()
QModelIndex PeerTableModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
|
override |
◆ refresh
void PeerTableModel::refresh |
( |
| ) |
|
|
slot |
◆ rowCount()
int PeerTableModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ startAutoRefresh()
void PeerTableModel::startAutoRefresh |
( |
| ) |
|
◆ stopAutoRefresh()
void PeerTableModel::stopAutoRefresh |
( |
| ) |
|
◆ columns
const QStringList PeerTableModel::columns |
|
private |
Initial value:{
tr("Peer"),
tr("Age"),
tr("Address"),
tr("Direction"),
tr("Type"),
tr("Network"),
tr("Ping"),
tr("Sent"),
tr("Received"),
tr("User Agent")}
Definition at line 82 of file peertablemodel.h.
◆ m_node
◆ m_peers_data
◆ timer
QTimer* PeerTableModel::timer {nullptr} |
|
private |
The documentation for this class was generated from the following files: