UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
bandwidth_widget.hpp
Go to the documentation of this file.
1#ifndef BANDWIDTH_WIDGET_c035f927c51f
2#define BANDWIDTH_WIDGET_c035f927c51f
3
4#include <QWidget>
5#include <QLabel>
6#include <QTimer>
7#include <QElapsedTimer>
8
9#include <string_view>
10
11#include "ssrc_container.hpp"
12
13class BandwidthWidget : public QLabel{
14 Q_OBJECT
15public:
16 BandwidthWidget(QWidget *parent = nullptr);
17 ~BandwidthWidget() = default;
18
19 void updateVal();
20 void parseLine(std::string_view line);
21 void reset();
22
23private slots:
24 void timeout();
25
26private:
27 QTimer timer;
28 QElapsedTimer elapsedTimer;
29
31 long long bitsPerSecond;
32 std::string type;
33 };
34
36
37 const int timeout_msec = 2500;
38};
39
40#endif //BANDWIDTH_WIDGET_c035f927c51f
QElapsedTimer elapsedTimer
void parseLine(std::string_view line)
BandwidthWidget(QWidget *parent=nullptr)
SSRC_container< BandwidthReport, decltype(elapsedTimer.elapsed())> reports
~BandwidthWidget()=default
const char * parent
Definition settings.cpp:198