Bitcoin Core 28.99.0
P2P Digital Currency
Public Slots | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
TrafficGraphWidget Class Reference

#include <trafficgraphwidget.h>

Inheritance diagram for TrafficGraphWidget:
[legend]
Collaboration diagram for TrafficGraphWidget:
[legend]

Public Slots

void updateRates ()
 
void setGraphRange (std::chrono::minutes new_range)
 
void clear ()
 

Public Member Functions

 TrafficGraphWidget (QWidget *parent=nullptr)
 
void setClientModel (ClientModel *model)
 
std::chrono::minutes getGraphRange () const
 

Protected Member Functions

void paintEvent (QPaintEvent *) override
 

Private Member Functions

void paintPath (QPainterPath &path, QQueue< float > &samples)
 

Private Attributes

QTimer * timer {nullptr}
 
float fMax {0.0f}
 
std::chrono::minutes m_range {0}
 
QQueue< float > vSamplesIn
 
QQueue< float > vSamplesOut
 
quint64 nLastBytesIn {0}
 
quint64 nLastBytesOut {0}
 
ClientModelclientModel {nullptr}
 

Detailed Description

Definition at line 20 of file trafficgraphwidget.h.

Constructor & Destructor Documentation

◆ TrafficGraphWidget()

TrafficGraphWidget::TrafficGraphWidget ( QWidget *  parent = nullptr)
explicit

Definition at line 22 of file trafficgraphwidget.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ clear

void TrafficGraphWidget::clear ( )
slot

Definition at line 158 of file trafficgraphwidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGraphRange()

std::chrono::minutes TrafficGraphWidget::getGraphRange ( ) const

Definition at line 40 of file trafficgraphwidget.cpp.

◆ paintEvent()

void TrafficGraphWidget::paintEvent ( QPaintEvent *  )
overrideprotected

Definition at line 58 of file trafficgraphwidget.cpp.

Here is the call graph for this function:

◆ paintPath()

void TrafficGraphWidget::paintPath ( QPainterPath &  path,
QQueue< float > &  samples 
)
private

Definition at line 42 of file trafficgraphwidget.cpp.

Here is the caller graph for this function:

◆ setClientModel()

void TrafficGraphWidget::setClientModel ( ClientModel model)

Definition at line 31 of file trafficgraphwidget.cpp.

Here is the call graph for this function:

◆ setGraphRange

void TrafficGraphWidget::setGraphRange ( std::chrono::minutes  new_range)
slot

Definition at line 148 of file trafficgraphwidget.cpp.

Here is the call graph for this function:

◆ updateRates

void TrafficGraphWidget::updateRates ( )
slot

Definition at line 117 of file trafficgraphwidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ clientModel

ClientModel* TrafficGraphWidget::clientModel {nullptr}
private

Definition at line 47 of file trafficgraphwidget.h.

◆ fMax

float TrafficGraphWidget::fMax {0.0f}
private

Definition at line 41 of file trafficgraphwidget.h.

◆ m_range

std::chrono::minutes TrafficGraphWidget::m_range {0}
private

Definition at line 42 of file trafficgraphwidget.h.

◆ nLastBytesIn

quint64 TrafficGraphWidget::nLastBytesIn {0}
private

Definition at line 45 of file trafficgraphwidget.h.

◆ nLastBytesOut

quint64 TrafficGraphWidget::nLastBytesOut {0}
private

Definition at line 46 of file trafficgraphwidget.h.

◆ timer

QTimer* TrafficGraphWidget::timer {nullptr}
private

Definition at line 40 of file trafficgraphwidget.h.

◆ vSamplesIn

QQueue<float> TrafficGraphWidget::vSamplesIn
private

Definition at line 43 of file trafficgraphwidget.h.

◆ vSamplesOut

QQueue<float> TrafficGraphWidget::vSamplesOut
private

Definition at line 44 of file trafficgraphwidget.h.


The documentation for this class was generated from the following files: