Fabcoin Core
0.16.2
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, Subversion = 2, Ping = 3 } |
Public Slots | |
void | refresh () |
Public Member Functions | |
PeerTableModel (ClientModel *parent=0) | |
~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 | |
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.
Definition at line 43 of file peertablemodel.h.
Enumerator | |
---|---|
NetNodeId | |
Address | |
Subversion | |
Ping |
Definition at line 55 of file peertablemodel.h.
|
explicit |
PeerTableModel::~PeerTableModel | ( | ) |
Definition at line 131 of file peertablemodel.cpp.
int PeerTableModel::columnCount | ( | const QModelIndex & | parent | ) | const |
Definition at line 152 of file peertablemodel.cpp.
QVariant PeerTableModel::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
Definition at line 158 of file peertablemodel.cpp.
Qt::ItemFlags PeerTableModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 197 of file peertablemodel.cpp.
const CNodeCombinedStats * PeerTableModel::getNodeStats | ( | int | idx | ) |
int PeerTableModel::getRowByNodeId | ( | NodeId | nodeid | ) |
QVariant PeerTableModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role | ||
) | const |
Definition at line 185 of file peertablemodel.cpp.
QModelIndex PeerTableModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent | ||
) | const |
|
slot |
int PeerTableModel::rowCount | ( | const QModelIndex & | parent | ) | const |
Definition at line 146 of file peertablemodel.cpp.
void PeerTableModel::sort | ( | int | column, |
Qt::SortOrder | order | ||
) |
void PeerTableModel::startAutoRefresh | ( | ) |
void PeerTableModel::stopAutoRefresh | ( | ) |
|
private |
Definition at line 77 of file peertablemodel.h.
|
private |
Definition at line 78 of file peertablemodel.h.
|
private |
Definition at line 79 of file peertablemodel.h.
|
private |
Definition at line 80 of file peertablemodel.h.