5#ifndef BITCOIN_QT_BANTABLEMODEL_H
6#define BITCOIN_QT_BANTABLEMODEL_H
11#include <QAbstractTableModel>
59 int role)
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
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
BannedNodeLessThan(int nColumn, Qt::SortOrder fOrder)
bool operator()(const CCombinedBan &left, const CCombinedBan &right) const
Top-level interface for a bitcoin node (bitcoind process).
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...