openPilotLog
debugwidget.h
1 #ifndef DEBUGWIDGET_H
2 #define DEBUGWIDGET_H
3 
4 #include <QWidget>
5 #include <QDir>
6 #include <QStandardPaths>
7 #include <QFile>
8 #include <QFileDialog>
9 #include <QMessageBox>
10 #include <QProcess>
11 #include "src/database/db.h"
12 #include "src/database/adatabasesetup.h"
13 #include "src/database/dbinfo.h"
14 #include "src/classes/adownload.h"
15 #include "src/functions/areadcsv.h"
16 
17 #include "src/experimental/adatabase.h"
18 #include "src/experimental/aentry.h"
19 #include "src/experimental/apilotentry.h"
20 
21 #include "src/testing/abenchmark.h"
22 #include "src/testing/atimer.h"
23 #include "src/testing/adebug.h"
24 
25 namespace Ui {
26 class DebugWidget;
27 }
28 
29 class DebugWidget : public QWidget
30 {
31  Q_OBJECT
32 
33 public:
34  explicit DebugWidget(QWidget *parent = nullptr);
35  ~DebugWidget();
36 
37 private slots:
38  void on_resetUserTablesPushButton_clicked();
39 
40  void on_resetDatabasePushButton_clicked();
41 
42  void downloadFinished();
43 
44  void on_fillUserDataPushButton_clicked();
45 
46  void on_selectCsvPushButton_clicked();
47 
48  void on_importCsvPushButton_clicked();
49 
50  void on_debugPushButton_clicked();
51 
52 private:
53  Ui::DebugWidget *ui;
54 
55  bool downloadComplete = false;
56 };
57 
58 #endif // DEBUGWIDGET_H
DebugWidget
Definition: debugwidget.h:30