PIVX Core  5.6.99
P2P Digital Currency
Public Types | Public Member Functions | List of all members
PeerTableModel Class Reference

Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call. More...

#include <peertablemodel.h>

Inheritance diagram for PeerTableModel:
[legend]
Collaboration diagram for PeerTableModel:
[legend]

Public Types

enum  ColumnIndex { NetNodeId = 0 , Address = 1 , Subversion = 2 , Ping = 3 }
 

Public Member Functions

 PeerTableModel (ClientModel *parent=0)
 
const CNodeCombinedStatsgetNodeStats (int idx)
 
int getRowByNodeId (NodeId nodeid)
 
void startAutoRefresh ()
 
void stopAutoRefresh ()
 

Methods overridden from QAbstractTableModel

ClientModelclientModel
 
QStringList columns
 
PeerTablePrivpriv
 
QTimer * timer
 
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)
 
void refresh ()
 

Detailed Description

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.

Member Enumeration Documentation

◆ ColumnIndex

Enumerator
NetNodeId 
Address 
Subversion 
Ping 

Definition at line 54 of file peertablemodel.h.

Constructor & Destructor Documentation

◆ PeerTableModel()

PeerTableModel::PeerTableModel ( ClientModel parent = 0)
explicit

Definition at line 111 of file peertablemodel.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ columnCount()

int PeerTableModel::columnCount ( const QModelIndex &  parent) const

Definition at line 145 of file peertablemodel.cpp.

◆ data()

QVariant PeerTableModel::data ( const QModelIndex &  index,
int  role 
) const

Definition at line 152 of file peertablemodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flags()

Qt::ItemFlags PeerTableModel::flags ( const QModelIndex &  index) const

Definition at line 188 of file peertablemodel.cpp.

Here is the call graph for this function:

◆ getNodeStats()

const CNodeCombinedStats * PeerTableModel::getNodeStats ( int  idx)

Definition at line 209 of file peertablemodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRowByNodeId()

int PeerTableModel::getRowByNodeId ( NodeId  nodeid)

Definition at line 221 of file peertablemodel.cpp.

Here is the caller graph for this function:

◆ headerData()

QVariant PeerTableModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const

Definition at line 178 of file peertablemodel.cpp.

◆ index()

QModelIndex PeerTableModel::index ( int  row,
int  column,
const QModelIndex &  parent 
) const

Definition at line 197 of file peertablemodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ refresh

void PeerTableModel::refresh ( )
slot

Definition at line 214 of file peertablemodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rowCount()

int PeerTableModel::rowCount ( const QModelIndex &  parent) const

Definition at line 139 of file peertablemodel.cpp.

Here is the call graph for this function:

◆ sort()

void PeerTableModel::sort ( int  column,
Qt::SortOrder  order 
)

Definition at line 230 of file peertablemodel.cpp.

Here is the call graph for this function:

◆ startAutoRefresh()

void PeerTableModel::startAutoRefresh ( )

Definition at line 129 of file peertablemodel.cpp.

Here is the caller graph for this function:

◆ stopAutoRefresh()

void PeerTableModel::stopAutoRefresh ( )

Definition at line 134 of file peertablemodel.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ clientModel

ClientModel* PeerTableModel::clientModel
private

Definition at line 76 of file peertablemodel.h.

◆ columns

QStringList PeerTableModel::columns
private

Definition at line 77 of file peertablemodel.h.

◆ priv

PeerTablePriv* PeerTableModel::priv
private

Definition at line 78 of file peertablemodel.h.

◆ timer

QTimer* PeerTableModel::timer
private

Definition at line 79 of file peertablemodel.h.


The documentation for this class was generated from the following files: