Fabcoin Core
0.16.2
P2P Digital Currency
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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 FABCOIN_QT_TRAFFICGRAPHWIDGET_H
6
#define FABCOIN_QT_TRAFFICGRAPHWIDGET_H
7
8
#include <QWidget>
9
#include <QQueue>
10
11
class
ClientModel
;
12
13
QT_BEGIN_NAMESPACE
14
class
QPaintEvent;
15
class
QTimer;
16
QT_END_NAMESPACE
17
18
class
TrafficGraphWidget
:
public
QWidget
19
{
20
Q_OBJECT
21
22
public
:
23
explicit
TrafficGraphWidget
(QWidget *parent = 0);
24
void
setClientModel
(
ClientModel
*model);
25
int
getGraphRangeMins
()
const
;
26
27
protected
:
28
void
paintEvent
(QPaintEvent *);
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 // FABCOIN_QT_TRAFFICGRAPHWIDGET_H
TrafficGraphWidget
Definition:
trafficgraphwidget.h:18
TrafficGraphWidget::paintPath
void paintPath(QPainterPath &path, QQueue< float > &samples)
Definition:
trafficgraphwidget.cpp:48
TrafficGraphWidget::clientModel
ClientModel * clientModel
Definition:
trafficgraphwidget.h:45
TrafficGraphWidget::vSamplesIn
QQueue< float > vSamplesIn
Definition:
trafficgraphwidget.h:41
TrafficGraphWidget::vSamplesOut
QQueue< float > vSamplesOut
Definition:
trafficgraphwidget.h:42
TrafficGraphWidget::paintEvent
void paintEvent(QPaintEvent *)
Definition:
trafficgraphwidget.cpp:64
TrafficGraphWidget::timer
QTimer * timer
Definition:
trafficgraphwidget.h:38
TrafficGraphWidget::fMax
float fMax
Definition:
trafficgraphwidget.h:39
TrafficGraphWidget::getGraphRangeMins
int getGraphRangeMins() const
Definition:
trafficgraphwidget.cpp:43
ClientModel
Model for Fabcoin network client.
Definition:
clientmodel.h:38
TrafficGraphWidget::updateRates
void updateRates()
Definition:
trafficgraphwidget.cpp:122
TrafficGraphWidget::nLastBytesIn
quint64 nLastBytesIn
Definition:
trafficgraphwidget.h:43
TrafficGraphWidget::nLastBytesOut
quint64 nLastBytesOut
Definition:
trafficgraphwidget.h:44
TrafficGraphWidget::nMins
int nMins
Definition:
trafficgraphwidget.h:40
TrafficGraphWidget::clear
void clear()
Definition:
trafficgraphwidget.cpp:163
TrafficGraphWidget::setGraphRangeMins
void setGraphRangeMins(int mins)
Definition:
trafficgraphwidget.cpp:153
TrafficGraphWidget::setClientModel
void setClientModel(ClientModel *model)
Definition:
trafficgraphwidget.cpp:34
TrafficGraphWidget::TrafficGraphWidget
TrafficGraphWidget(QWidget *parent=0)
Definition:
trafficgraphwidget.cpp:19
Generated on Mon Oct 22 2018 15:15:38 for Fabcoin Core by
1.8.11