4f877d16511d171f0c120ac1fd5a77656852b038
[jackhill/qmk/firmware.git] / keyboards / xwhatsit / util / util / mainwindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3
4 #include <QMainWindow>
5 #include <QTimer>
6 #include "monitorwindow.h"
7 #include "signal_level.h"
8 #include "communication.h"
9 #include "hidthread.h"
10
11 namespace Ui {
12 class MainWindow;
13 }
14
15 class MainWindow : public QMainWindow
16 {
17 Q_OBJECT
18
19 public:
20 explicit MainWindow(Communication &comm, QWidget *parent = nullptr);
21 ~MainWindow();
22
23 private slots:
24 void on_updateScannedDevices(std::vector<std::string> devices);
25 void on_reportError(std::string error_message);
26 void on_reportInfo(std::string info_message);
27 void on_listWidget_itemSelectionChanged();
28 void on_enterBootloaderPushbutton_clicked();
29 void on_keypressMinotorPushButton_clicked();
30
31 void on_autoEnterModeCheckBox_stateChanged(int arg1);
32
33 void on_eraseEepromPushButton_clicked();
34
35 void on_signalLevelPushButton_clicked();
36
37 private:
38 Ui::MainWindow *ui;
39 Communication &comm;
40 HidThread thread;
41 };
42
43 #endif // MAINWINDOW_H