![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
Qt model providing information about banned peers, similar to the "getpeerinfo" RPC call. More...
#include <bantablemodel.h>
Public Types | |
| enum | ColumnIndex { Address = 0 , Bantime = 1 } |
Public Member Functions | |
| BanTableModel (interfaces::Node &node, QObject *parent) | |
| ~BanTableModel () | |
| void | startAutoRefresh () |
| void | stopAutoRefresh () |
Methods overridden from QAbstractTableModel | |
| interfaces::Node & | m_node |
| QStringList | columns |
| std::unique_ptr< BanTablePriv > | priv |
| int | rowCount (const QModelIndex &parent) const override |
| int | columnCount (const QModelIndex &parent) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
| QModelIndex | index (int row, int column, const QModelIndex &parent) const override |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| void | sort (int column, Qt::SortOrder order) override |
| bool | shouldShow () |
| bool | unban (const QModelIndex &index) |
| void | refresh () |
Qt model providing information about banned peers, similar to the "getpeerinfo" RPC call.
Used by the rpc console UI.
Definition at line 43 of file bantablemodel.h.
| Enumerator | |
|---|---|
| Address | |
| Bantime | |
Definition at line 53 of file bantablemodel.h.
|
explicit |
|
default |
|
override |
Definition at line 102 of file bantablemodel.cpp.
|
override |
Definition at line 110 of file bantablemodel.cpp.
|
override |
|
override |
Definition at line 153 of file bantablemodel.cpp.
|
slot |
Definition at line 163 of file bantablemodel.cpp.
|
override |
Definition at line 94 of file bantablemodel.cpp.
| bool BanTableModel::shouldShow | ( | ) |
| void BanTableModel::startAutoRefresh | ( | ) |
| void BanTableModel::stopAutoRefresh | ( | ) |
| bool BanTableModel::unban | ( | const QModelIndex & | index | ) |
Definition at line 182 of file bantablemodel.cpp.
|
private |
Definition at line 78 of file bantablemodel.h.
|
private |
Definition at line 77 of file bantablemodel.h.
|
private |
Definition at line 79 of file bantablemodel.h.