-
Notifications
You must be signed in to change notification settings - Fork 10
/
devicesdialog.h
47 lines (39 loc) · 1.01 KB
/
devicesdialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef DEVICESDIALOG_H
#define DEVICESDIALOG_H
#include <QDialog>
#include <wifiapi.h>
#include <QtCharts/QChartView>
#include <QtCharts/QLineSeries>
#include <QtCharts/QCategoryAxis>
#include <QtCharts/QLegend>
#include <QListWidget>
namespace Ui {
class DevicesDialog;
}
class DevicesDialog : public QDialog
{
Q_OBJECT
public:
explicit DevicesDialog(WifiApi *client,QWidget *parent = nullptr);
~DevicesDialog();
void refreshUi();
private slots:
void on_deviceList_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
void updateData();
private:
QThread thread;
QtCharts::QChartView *chartView;
QtCharts::QChart* chart;
QtCharts::QLineSeries* downLine;
QtCharts::QLineSeries* upLine;
QtCharts::QCategoryAxis* xAxis;
QtCharts::QCategoryAxis* yAxis;
Ui::DevicesDialog *ui;
WifiApi *client;
WifiApi::System *system;
QTimer* updateInfoTimer;
int time = 0;
WifiApi::Station* selected;
int maxval = 0;
};
#endif // DEVICESDIALOG_H