Changeset View
Changeset View
Standalone View
Standalone View
src/qt/peertablemodel.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Qt model providing information about connected peers, similar to the | * Qt model providing information about connected peers, similar to the | ||||
* "getpeerinfo" RPC call. Used by the rpc console UI. | * "getpeerinfo" RPC call. Used by the rpc console UI. | ||||
*/ | */ | ||||
class PeerTableModel : public QAbstractTableModel { | class PeerTableModel : public QAbstractTableModel { | ||||
Q_OBJECT | Q_OBJECT | ||||
public: | public: | ||||
explicit PeerTableModel(interfaces::Node &node, ClientModel *parent = 0); | explicit PeerTableModel(interfaces::Node &node, | ||||
ClientModel *parent = nullptr); | |||||
~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 { | enum ColumnIndex { | ||||
NetNodeId = 0, | NetNodeId = 0, | ||||
Show All 32 Lines |