Bitcoin Core  0.15.99
P2P Digital Currency
Public Types | Public Slots | Public Member Functions | Private Attributes | List of all members
BanTableModel Class Reference

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

#include <bantablemodel.h>

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

Public Types

enum  ColumnIndex { Address = 0, Bantime = 1 }
 

Public Slots

void refresh ()
 

Public Member Functions

 BanTableModel (interfaces::Node &node, ClientModel *parent=0)
 
 ~BanTableModel ()
 
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)
 
bool shouldShow ()
 

Private Attributes

interfaces::Nodem_node
 
ClientModelclientModel
 
QStringList columns
 
std::unique_ptr< BanTablePrivpriv
 

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 bantablemodel.h.

Member Enumeration Documentation

◆ ColumnIndex

Enumerator
Address 
Bantime 

Definition at line 53 of file bantablemodel.h.

Constructor & Destructor Documentation

◆ BanTableModel()

BanTableModel::BanTableModel ( interfaces::Node node,
ClientModel parent = 0 
)
explicit

Definition at line 83 of file bantablemodel.cpp.

Here is the call graph for this function:

◆ ~BanTableModel()

BanTableModel::~BanTableModel ( )

Definition at line 97 of file bantablemodel.cpp.

Member Function Documentation

◆ columnCount()

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

Definition at line 108 of file bantablemodel.cpp.

◆ data()

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

Definition at line 114 of file bantablemodel.cpp.

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

◆ flags()

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

Definition at line 148 of file bantablemodel.cpp.

◆ headerData()

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

Definition at line 136 of file bantablemodel.cpp.

◆ index()

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

Definition at line 157 of file bantablemodel.cpp.

Here is the call graph for this function:

◆ refresh

void BanTableModel::refresh ( )
slot

Definition at line 167 of file bantablemodel.cpp.

Here is the caller graph for this function:

◆ rowCount()

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

Definition at line 102 of file bantablemodel.cpp.

◆ shouldShow()

bool BanTableModel::shouldShow ( )

Definition at line 181 of file bantablemodel.cpp.

Here is the caller graph for this function:

◆ sort()

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

Definition at line 174 of file bantablemodel.cpp.

Here is the call graph for this function:

◆ startAutoRefresh()

void BanTableModel::startAutoRefresh ( )

◆ stopAutoRefresh()

void BanTableModel::stopAutoRefresh ( )

Member Data Documentation

◆ clientModel

ClientModel* BanTableModel::clientModel
private

Definition at line 75 of file bantablemodel.h.

◆ columns

QStringList BanTableModel::columns
private

Definition at line 76 of file bantablemodel.h.

◆ m_node

interfaces::Node& BanTableModel::m_node
private

Definition at line 74 of file bantablemodel.h.

◆ priv

std::unique_ptr<BanTablePriv> BanTableModel::priv
private

Definition at line 77 of file bantablemodel.h.


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