Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call. More...
#include <bantablemodel.h>
Public Types | |
enum | ColumnIndex { Address = 0, Bantime = 1 } |
Public Slots | |
void | refresh () |
Public Member Functions | |
BanTableModel (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 | |
ClientModel * | clientModel |
QStringList | columns |
std::unique_ptr< BanTablePriv > | priv |
Detailed Description
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call.
Used by the rpc console UI.
Definition at line 39 of file bantablemodel.h.
Member Enumeration Documentation
◆ ColumnIndex
Enumerator | |
---|---|
Address | |
Bantime |
Definition at line 49 of file bantablemodel.h.
Constructor & Destructor Documentation
◆ BanTableModel()
|
explicit |
Definition at line 85 of file bantablemodel.cpp.
◆ ~BanTableModel()
BanTableModel::~BanTableModel | ( | ) |
Definition at line 98 of file bantablemodel.cpp.
Member Function Documentation
◆ columnCount()
int BanTableModel::columnCount | ( | const QModelIndex & | parent | ) | const |
Definition at line 109 of file bantablemodel.cpp.
References columns.
◆ data()
QVariant BanTableModel::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
Definition at line 115 of file bantablemodel.cpp.
References Address, CCombinedBan::banEntry, Bantime, index(), CBanEntry::nBanUntil, CCombinedBan::subnet, and CSubNet::ToString().
Referenced by index().
◆ flags()
Qt::ItemFlags BanTableModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 149 of file bantablemodel.cpp.
References index().
◆ headerData()
QVariant BanTableModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role | ||
) | const |
Definition at line 137 of file bantablemodel.cpp.
References columns.
◆ index()
QModelIndex BanTableModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent | ||
) | const |
◆ refresh
|
slot |
Definition at line 168 of file bantablemodel.cpp.
References priv.
Referenced by RPCConsole::banSelectedNode(), BanTableModel(), sort(), RPCConsole::unbanSelectedNode(), and ClientModel::updateBanlist().
◆ rowCount()
int BanTableModel::rowCount | ( | const QModelIndex & | parent | ) | const |
Definition at line 103 of file bantablemodel.cpp.
References priv.
◆ shouldShow()
bool BanTableModel::shouldShow | ( | ) |
Definition at line 182 of file bantablemodel.cpp.
References priv.
Referenced by RPCConsole::showOrHideBanTableIfRequired().
◆ sort()
void BanTableModel::sort | ( | int | column, |
Qt::SortOrder | order | ||
) |
Definition at line 175 of file bantablemodel.cpp.
◆ startAutoRefresh()
void BanTableModel::startAutoRefresh | ( | ) |
◆ stopAutoRefresh()
void BanTableModel::stopAutoRefresh | ( | ) |
Member Data Documentation
◆ clientModel
|
private |
Definition at line 70 of file bantablemodel.h.
◆ columns
|
private |
Definition at line 71 of file bantablemodel.h.
Referenced by BanTableModel(), columnCount(), and headerData().
◆ priv
|
private |
Definition at line 72 of file bantablemodel.h.
Referenced by BanTableModel(), index(), refresh(), rowCount(), shouldShow(), and sort().
The documentation for this class was generated from the following files:
- src/qt/bantablemodel.h
- src/qt/bantablemodel.cpp