5#ifndef BITCOIN_QT_BANTABLEMODEL_H
6#define BITCOIN_QT_BANTABLEMODEL_H
11#include <QAbstractTableModel>
55 int rowCount(
const QModelIndex &parent)
const override;
56 int columnCount(
const QModelIndex &parent)
const override;
57 QVariant
data(
const QModelIndex &
index,
int role)
const override;
58 QVariant
headerData(
int section, Qt::Orientation orientation,
59 int role)
const override;
60 QModelIndex
index(
int row,
int column,
61 const QModelIndex &parent)
const override;
62 Qt::ItemFlags
flags(
const QModelIndex &
index)
const override;
63 void sort(
int column, Qt::SortOrder order)
override;
74 std::unique_ptr<BanTablePriv>
priv;
Qt model providing information about connected 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
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).