Changeset View
Changeset View
Standalone View
Standalone View
src/qt/peertablemodel.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
public: | public: | ||||
explicit PeerTableModel(ClientModel *parent = 0); | explicit PeerTableModel(ClientModel *parent = 0); | ||||
~PeerTableModel(); | ~PeerTableModel(); | ||||
const CNodeCombinedStats *getNodeStats(int idx); | const CNodeCombinedStats *getNodeStats(int idx); | ||||
int getRowByNodeId(NodeId nodeid); | int getRowByNodeId(NodeId nodeid); | ||||
void startAutoRefresh(); | void startAutoRefresh(); | ||||
void stopAutoRefresh(); | void stopAutoRefresh(); | ||||
enum ColumnIndex { NetNodeId = 0, Address = 1, Subversion = 2, Ping = 3 }; | enum ColumnIndex { | ||||
NetNodeId = 0, | |||||
Address = 1, | |||||
Ping = 2, | |||||
Sent = 3, | |||||
Received = 4, | |||||
Subversion = 5, | |||||
}; | |||||
/** @name Methods overridden from QAbstractTableModel | /** @name Methods overridden from QAbstractTableModel | ||||
@{*/ | @{*/ | ||||
int rowCount(const QModelIndex &parent) const override; | int rowCount(const QModelIndex &parent) const override; | ||||
int columnCount(const QModelIndex &parent) const override; | int columnCount(const QModelIndex &parent) const override; | ||||
QVariant data(const QModelIndex &index, int role) const override; | QVariant data(const QModelIndex &index, int role) const override; | ||||
QVariant headerData(int section, Qt::Orientation orientation, | QVariant headerData(int section, Qt::Orientation orientation, | ||||
int role) const override; | int role) const override; | ||||
Show All 17 Lines |