Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call.
More...
#include <peertablemodel.h>
|
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.
◆ ColumnIndex
Enumerator |
---|
NetNodeId | |
Address | |
Network | |
Ping | |
Sent | |
Received | |
Subversion | |
Definition at line 59 of file peertablemodel.h.
◆ PeerTableModel()
◆ ~PeerTableModel()
PeerTableModel::~PeerTableModel |
( |
| ) |
|
◆ columnCount()
int PeerTableModel::columnCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
◆ data()
QVariant PeerTableModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ flags()
Qt::ItemFlags PeerTableModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ getNodeStats()
◆ getRowByNodeId()
int PeerTableModel::getRowByNodeId |
( |
NodeId |
nodeid | ) |
|
◆ headerData()
QVariant PeerTableModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ index()
QModelIndex PeerTableModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent |
|
) |
| const |
|
override |
◆ refresh
void PeerTableModel::refresh |
( |
| ) |
|
|
slot |
◆ rowCount()
int PeerTableModel::rowCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
◆ sort()
void PeerTableModel::sort |
( |
int |
column, |
|
|
Qt::SortOrder |
order |
|
) |
| |
|
override |
◆ startAutoRefresh()
void PeerTableModel::startAutoRefresh |
( |
| ) |
|
◆ stopAutoRefresh()
void PeerTableModel::stopAutoRefresh |
( |
| ) |
|
◆ columns
const QStringList PeerTableModel::columns |
|
private |
Initial value:{tr("Peer Id"), tr("Address"), tr("Network"),
tr("Ping"), tr("Sent"), tr("Received"),
tr("User Agent")}
Definition at line 87 of file peertablemodel.h.
◆ m_node
◆ priv
◆ timer
QTimer* PeerTableModel::timer |
|
private |
The documentation for this class was generated from the following files: