Raven Core
3.0.0
P2P Digital Currency
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
z
+
Functions
b
c
d
f
g
h
i
m
o
p
q
s
v
Variables
Typedefs
Enumerations
Enumerator
+
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
f
i
k
l
m
o
p
r
s
t
v
+
Enumerations
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
c
d
f
o
p
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
q
r
s
t
u
v
w
z
+
Variables
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
w
z
+
Typedefs
b
c
h
i
k
m
n
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
f
g
h
i
j
m
n
o
q
r
s
t
w
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
r
s
t
u
+
Macros
_
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
•
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
// Copyright (c) 2017-2019 The Raven Core developers
3
// Distributed under the MIT software license, see the accompanying
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6
#ifndef RAVEN_QT_TRAFFICGRAPHWIDGET_H
7
#define RAVEN_QT_TRAFFICGRAPHWIDGET_H
8
9
#include <QWidget>
10
#include <QQueue>
11
12
class
ClientModel
;
13
14
QT_BEGIN_NAMESPACE
15
class
QPaintEvent;
16
class
QTimer;
17
QT_END_NAMESPACE
18
19
class
TrafficGraphWidget
:
public
QWidget
20
{
21
Q_OBJECT
22
23
public
:
24
explicit
TrafficGraphWidget
(QWidget *parent = 0);
25
void
setClientModel
(
ClientModel
*model);
26
int
getGraphRangeMins
()
const
;
27
28
protected
:
29
void
paintEvent
(QPaintEvent *);
30
31
public
Q_SLOTS:
32
void
updateRates
();
33
void
setGraphRangeMins
(
int
mins);
34
void
clear
();
35
36
private
:
37
void
paintPath
(QPainterPath &path, QQueue<float> &samples);
38
39
QTimer *
timer
;
40
float
fMax
;
41
int
nMins
;
42
QQueue<float>
vSamplesIn
;
43
QQueue<float>
vSamplesOut
;
44
quint64
nLastBytesIn
;
45
quint64
nLastBytesOut
;
46
ClientModel
*
clientModel
;
47
};
48
49
#endif // RAVEN_QT_TRAFFICGRAPHWIDGET_H
TrafficGraphWidget
Definition:
trafficgraphwidget.h:19
TrafficGraphWidget::paintPath
void paintPath(QPainterPath &path, QQueue< float > &samples)
Definition:
trafficgraphwidget.cpp:49
TrafficGraphWidget::clientModel
ClientModel * clientModel
Definition:
trafficgraphwidget.h:46
TrafficGraphWidget::vSamplesIn
QQueue< float > vSamplesIn
Definition:
trafficgraphwidget.h:42
TrafficGraphWidget::vSamplesOut
QQueue< float > vSamplesOut
Definition:
trafficgraphwidget.h:43
TrafficGraphWidget::paintEvent
void paintEvent(QPaintEvent *)
Definition:
trafficgraphwidget.cpp:65
TrafficGraphWidget::timer
QTimer * timer
Definition:
trafficgraphwidget.h:39
TrafficGraphWidget::fMax
float fMax
Definition:
trafficgraphwidget.h:40
TrafficGraphWidget::getGraphRangeMins
int getGraphRangeMins() const
Definition:
trafficgraphwidget.cpp:44
ClientModel
Model for Raven network client.
Definition:
clientmodel.h:39
TrafficGraphWidget::updateRates
void updateRates()
Definition:
trafficgraphwidget.cpp:123
TrafficGraphWidget::nLastBytesIn
quint64 nLastBytesIn
Definition:
trafficgraphwidget.h:44
TrafficGraphWidget::nLastBytesOut
quint64 nLastBytesOut
Definition:
trafficgraphwidget.h:45
TrafficGraphWidget::nMins
int nMins
Definition:
trafficgraphwidget.h:41
TrafficGraphWidget::clear
void clear()
Definition:
trafficgraphwidget.cpp:164
TrafficGraphWidget::setGraphRangeMins
void setGraphRangeMins(int mins)
Definition:
trafficgraphwidget.cpp:154
TrafficGraphWidget::setClientModel
void setClientModel(ClientModel *model)
Definition:
trafficgraphwidget.cpp:35
TrafficGraphWidget::TrafficGraphWidget
TrafficGraphWidget(QWidget *parent=0)
Definition:
trafficgraphwidget.cpp:20
Generated on Mon Jul 29 2019 02:32:20 for Raven Core by
1.8.13