Bitcoin ABC
0.31.1
P2P Digital Currency
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
f
g
h
i
k
m
n
o
p
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
h
i
l
m
n
p
q
r
s
t
u
v
w
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
!
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
!
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
m
n
o
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Properties
Related Functions
:
a
b
c
d
e
f
g
i
o
p
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
b
c
d
e
h
i
k
l
m
n
p
r
s
t
u
v
Enumerations
b
c
d
e
f
g
h
i
j
m
n
o
p
r
s
t
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
x
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
qt
trafficgraphwidget.h
Go to the documentation of this file.
1
// Copyright (c) 2011-2015 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_QT_TRAFFICGRAPHWIDGET_H
6
#define BITCOIN_QT_TRAFFICGRAPHWIDGET_H
7
8
#include <QQueue>
9
#include <QWidget>
10
11
class
ClientModel
;
12
13
QT_BEGIN_NAMESPACE
14
class
QPaintEvent;
15
class
QPainterPath;
16
class
QTimer;
17
QT_END_NAMESPACE
18
19
class
TrafficGraphWidget
:
public
QWidget {
20
Q_OBJECT
21
22
public
:
23
explicit
TrafficGraphWidget
(QWidget *parent =
nullptr
);
24
void
setClientModel
(
ClientModel
*model);
25
int
getGraphRangeMins
()
const
;
26
27
protected
:
28
void
paintEvent
(QPaintEvent *)
override
;
29
30
public
Q_SLOTS:
31
void
updateRates
();
32
void
setGraphRangeMins
(
int
mins);
33
void
clear
();
34
35
private
:
36
void
paintPath
(QPainterPath &path, QQueue<float> &samples);
37
38
QTimer *
timer
;
39
float
fMax
;
40
int
nMins
;
41
QQueue<float>
vSamplesIn
;
42
QQueue<float>
vSamplesOut
;
43
quint64
nLastBytesIn
;
44
quint64
nLastBytesOut
;
45
ClientModel
*
clientModel
;
46
};
47
48
#endif
// BITCOIN_QT_TRAFFICGRAPHWIDGET_H
ClientModel
Model for Bitcoin network client.
Definition:
clientmodel.h:43
TrafficGraphWidget
Definition:
trafficgraphwidget.h:19
TrafficGraphWidget::fMax
float fMax
Definition:
trafficgraphwidget.h:39
TrafficGraphWidget::paintEvent
void paintEvent(QPaintEvent *) override
Definition:
trafficgraphwidget.cpp:56
TrafficGraphWidget::updateRates
void updateRates()
Definition:
trafficgraphwidget.cpp:120
TrafficGraphWidget::clientModel
ClientModel * clientModel
Definition:
trafficgraphwidget.h:45
TrafficGraphWidget::TrafficGraphWidget
TrafficGraphWidget(QWidget *parent=nullptr)
Definition:
trafficgraphwidget.cpp:22
TrafficGraphWidget::clear
void clear()
Definition:
trafficgraphwidget.cpp:167
TrafficGraphWidget::timer
QTimer * timer
Definition:
trafficgraphwidget.h:38
TrafficGraphWidget::getGraphRangeMins
int getGraphRangeMins() const
Definition:
trafficgraphwidget.cpp:37
TrafficGraphWidget::setClientModel
void setClientModel(ClientModel *model)
Definition:
trafficgraphwidget.cpp:29
TrafficGraphWidget::nLastBytesOut
quint64 nLastBytesOut
Definition:
trafficgraphwidget.h:44
TrafficGraphWidget::setGraphRangeMins
void setGraphRangeMins(int mins)
Definition:
trafficgraphwidget.cpp:158
TrafficGraphWidget::vSamplesOut
QQueue< float > vSamplesOut
Definition:
trafficgraphwidget.h:42
TrafficGraphWidget::nMins
int nMins
Definition:
trafficgraphwidget.h:40
TrafficGraphWidget::paintPath
void paintPath(QPainterPath &path, QQueue< float > &samples)
Definition:
trafficgraphwidget.cpp:41
TrafficGraphWidget::nLastBytesIn
quint64 nLastBytesIn
Definition:
trafficgraphwidget.h:43
TrafficGraphWidget::vSamplesIn
QQueue< float > vSamplesIn
Definition:
trafficgraphwidget.h:41
Generated on Thu Apr 10 2025 22:04:33 for Bitcoin ABC by
1.9.4