Bitcoin
|
#include <peertablemodel.h>
Public Types | |
enum | ColumnIndex { NetNodeId = 0, Address = 1, Ping = 2, Sent = 3, Received = 4, Subversion = 5 } |
Public Slots | |
void | refresh () |
Public Member Functions | |
PeerTableModel (interfaces::Node &node, ClientModel *parent=nullptr) | |
~PeerTableModel () | |
const CNodeCombinedStats * | getNodeStats (int idx) |
int | getRowByNodeId (NodeId nodeid) |
void | startAutoRefresh () |
void | stopAutoRefresh () |
Methods overridden from QAbstractTableModel | |
int | rowCount (const QModelIndex &parent) const |
int | columnCount (const QModelIndex &parent) const |
QVariant | data (const QModelIndex &index, int role) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
QModelIndex | index (int row, int column, const QModelIndex &parent) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
void | sort (int column, Qt::SortOrder order) |
Private Attributes | |
interfaces::Node & | m_node |
ClientModel * | clientModel |
QStringList | columns |
std::unique_ptr< PeerTablePriv > | priv |
QTimer * | timer |
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call. Used by the rpc console UI.
|
explicit |
PeerTableModel::~PeerTableModel | ( | ) |
int PeerTableModel::columnCount | ( | const QModelIndex & | parent | ) | const |
QVariant PeerTableModel::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
Qt::ItemFlags PeerTableModel::flags | ( | const QModelIndex & | index | ) | const |
const CNodeCombinedStats * PeerTableModel::getNodeStats | ( | int | idx | ) |
int PeerTableModel::getRowByNodeId | ( | NodeId | nodeid | ) |
QVariant PeerTableModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role | ||
) | const |
QModelIndex PeerTableModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent | ||
) | const |
|
slot |
int PeerTableModel::rowCount | ( | const QModelIndex & | parent | ) | const |
void PeerTableModel::sort | ( | int | column, |
Qt::SortOrder | order | ||
) |
void PeerTableModel::startAutoRefresh | ( | ) |
void PeerTableModel::stopAutoRefresh | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |