Anoncoin  0.9.4
P2P Digital Currency
Public Types | Public Slots | Public Member Functions | Private Attributes | 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 { Address = 0, Subversion = 1, Ping = 2 }
 

Public Slots

void refresh ()
 

Public Member Functions

 PeerTableModel (ClientModel *parent=0)
 
const CNodeCombinedStatsgetNodeStats (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

ClientModelclientModel
 
QStringList columns
 
PeerTablePrivpriv
 
QTimer * timer
 

Detailed Description

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

Used by the rpc console UI.

Definition at line 50 of file peertablemodel.h.

Member Enumeration Documentation

Enumerator
Address 
Subversion 
Ping 

Definition at line 61 of file peertablemodel.h.

Constructor & Destructor Documentation

PeerTableModel::PeerTableModel ( ClientModel parent = 0)
explicit

Definition at line 115 of file peertablemodel.cpp.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 150 of file peertablemodel.cpp.

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

Definition at line 156 of file peertablemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 193 of file peertablemodel.cpp.

const CNodeCombinedStats * PeerTableModel::getNodeStats ( int  idx)

Definition at line 217 of file peertablemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int PeerTableModel::getRowByNodeId ( NodeId  nodeid)

Definition at line 229 of file peertablemodel.cpp.

Here is the caller graph for this function:

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

Definition at line 181 of file peertablemodel.cpp.

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

Definition at line 202 of file peertablemodel.cpp.

Here is the call graph for this function:

void PeerTableModel::refresh ( )
slot

Definition at line 222 of file peertablemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 144 of file peertablemodel.cpp.

Here is the call graph for this function:

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

Definition at line 238 of file peertablemodel.cpp.

Here is the call graph for this function:

void PeerTableModel::startAutoRefresh ( )

Definition at line 134 of file peertablemodel.cpp.

Here is the caller graph for this function:

void PeerTableModel::stopAutoRefresh ( )

Definition at line 139 of file peertablemodel.cpp.

Here is the caller graph for this function:

Member Data Documentation

ClientModel* PeerTableModel::clientModel
private

Definition at line 82 of file peertablemodel.h.

QStringList PeerTableModel::columns
private

Definition at line 83 of file peertablemodel.h.

PeerTablePriv* PeerTableModel::priv
private

Definition at line 84 of file peertablemodel.h.

QTimer* PeerTableModel::timer
private

Definition at line 85 of file peertablemodel.h.


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