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.
5 #ifndef BITCOIN_QT_TRAFFICGRAPHWIDGET_H
6 #define BITCOIN_QT_TRAFFICGRAPHWIDGET_H
18 class TrafficGraphWidget
: public QWidget
23 explicit TrafficGraphWidget(QWidget
*parent
= 0);
24 void setClientModel(ClientModel
*model
);
25 int getGraphRangeMins() const;
28 void paintEvent(QPaintEvent
*);
32 void setGraphRangeMins(int mins
);
36 void paintPath(QPainterPath
&path
, QQueue
<float> &samples
);
41 QQueue
<float> vSamplesIn
;
42 QQueue
<float> vSamplesOut
;
44 quint64 nLastBytesOut
;
45 ClientModel
*clientModel
;
48 #endif // BITCOIN_QT_TRAFFICGRAPHWIDGET_H