5#ifndef BITCOIN_QT_BANTABLEMODEL_H
6#define BITCOIN_QT_BANTABLEMODEL_H
13#include <QAbstractTableModel>
60 int rowCount(
const QModelIndex &parent)
const override;
61 int columnCount(
const QModelIndex &parent)
const override;
62 QVariant
data(
const QModelIndex &
index,
int role)
const override;
63 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const override;
64 QModelIndex
index(
int row,
int column,
const QModelIndex &parent)
const override;
65 Qt::ItemFlags
flags(
const QModelIndex &
index)
const override;
66 void sort(
int column, Qt::SortOrder order)
override;
79 std::unique_ptr<BanTablePriv>
priv;
Qt model providing information about banned peers, similar to the "getpeerinfo" RPC call.
std::unique_ptr< BanTablePriv > priv
QVariant data(const QModelIndex &index, int role) const override
Qt::ItemFlags flags(const QModelIndex &index) const override
interfaces::Node & m_node
int columnCount(const QModelIndex &parent) const override
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
void sort(int column, Qt::SortOrder order) override
int rowCount(const QModelIndex &parent) const override
bool unban(const QModelIndex &index)
QModelIndex index(int row, int column, const QModelIndex &parent) const override
BanTableModel(interfaces::Node &node, QObject *parent)
BannedNodeLessThan(int nColumn, Qt::SortOrder fOrder)
bool operator()(const CCombinedBan &left, const CCombinedBan &right) const
Top-level interface for a bitcoin node (bitcoind process).