5 #ifndef FABCOIN_QT_PEERTABLEMODEL_H 6 #define FABCOIN_QT_PEERTABLEMODEL_H 11 #include <QAbstractTableModel> 12 #include <QStringList> 31 column(nColumn), order(fOrder) {}
51 int getRowByNodeId(
NodeId nodeid);
52 void startAutoRefresh();
53 void stopAutoRefresh();
64 int rowCount(
const QModelIndex &parent)
const;
65 int columnCount(
const QModelIndex &parent)
const;
66 QVariant
data(
const QModelIndex &index,
int role)
const;
67 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
68 QModelIndex index(
int row,
int column,
const QModelIndex &parent)
const;
69 Qt::ItemFlags flags(
const QModelIndex &index)
const;
70 void sort(
int column, Qt::SortOrder order);
79 std::unique_ptr<PeerTablePriv>
priv;
83 #endif // FABCOIN_QT_PEERTABLEMODEL_H
CNodeStateStats nodeStateStats
h160 Address
An Ethereum address: 20 bytes.
NodeLessThan(int nColumn, Qt::SortOrder fOrder)
bool fNodeStateStatsAvailable
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call...
std::unique_ptr< PeerTablePriv > priv
Model for Fabcoin network client.
ClientModel * clientModel