Bitcoin
|
#include <bantablemodel.h>
Public Types | |
enum | ColumnIndex { Address = 0, Bantime = 1 } |
Public Slots | |
void | refresh () |
Public Member Functions | |
BanTableModel (interfaces::Node &node, ClientModel *parent=nullptr) | |
~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::Node & | m_node |
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.
|
explicit |
BanTableModel::~BanTableModel | ( | ) |
int BanTableModel::columnCount | ( | const QModelIndex & | parent | ) | const |
QVariant BanTableModel::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
Qt::ItemFlags BanTableModel::flags | ( | const QModelIndex & | index | ) | const |
QVariant BanTableModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role | ||
) | const |
QModelIndex BanTableModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent | ||
) | const |
|
slot |
int BanTableModel::rowCount | ( | const QModelIndex & | parent | ) | const |
bool BanTableModel::shouldShow | ( | ) |
void BanTableModel::sort | ( | int | column, |
Qt::SortOrder | order | ||
) |
void BanTableModel::startAutoRefresh | ( | ) |
void BanTableModel::stopAutoRefresh | ( | ) |
|
private |
|
private |
|
private |
|
private |