![]() |
Fabcoin Core
0.16.2
P2P Digital Currency
|
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 |
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call.
Used by the rpc console UI.
Definition at line 37 of file bantablemodel.h.
| Enumerator | |
|---|---|
| Address | |
| Bantime | |
Definition at line 47 of file bantablemodel.h.
|
explicit |
| BanTableModel::~BanTableModel | ( | ) |
Definition at line 98 of file bantablemodel.cpp.
| int BanTableModel::columnCount | ( | const QModelIndex & | parent | ) | const |
Definition at line 109 of file bantablemodel.cpp.
| QVariant BanTableModel::data | ( | const QModelIndex & | index, |
| int | role | ||
| ) | const |
Definition at line 115 of file bantablemodel.cpp.
| Qt::ItemFlags BanTableModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 149 of file bantablemodel.cpp.
| QVariant BanTableModel::headerData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| int | role | ||
| ) | const |
Definition at line 137 of file bantablemodel.cpp.
| QModelIndex BanTableModel::index | ( | int | row, |
| int | column, | ||
| const QModelIndex & | parent | ||
| ) | const |
|
slot |
| int BanTableModel::rowCount | ( | const QModelIndex & | parent | ) | const |
Definition at line 103 of file bantablemodel.cpp.
| bool BanTableModel::shouldShow | ( | ) |
| void BanTableModel::sort | ( | int | column, |
| Qt::SortOrder | order | ||
| ) |
| void BanTableModel::startAutoRefresh | ( | ) |
| void BanTableModel::stopAutoRefresh | ( | ) |
|
private |
Definition at line 68 of file bantablemodel.h.
|
private |
Definition at line 69 of file bantablemodel.h.
|
private |
Definition at line 70 of file bantablemodel.h.
1.8.11