60 lines
875 B
C++
60 lines
875 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QProcess>
|
|
#include <iostream>
|
|
#include <QFile>
|
|
#include <QDebug>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class MainWindow; }
|
|
QT_END_NAMESPACE
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MainWindow(QWidget *parent = nullptr);
|
|
~MainWindow();
|
|
|
|
private slots:
|
|
void on_pushButton_left_pressed();
|
|
|
|
void on_pushButton_right_pressed();
|
|
|
|
void on_pushButton_flash_pressed();
|
|
|
|
void print_sbl();
|
|
|
|
void started_sbl();
|
|
|
|
void finished_sbl();
|
|
|
|
private:
|
|
|
|
int flash_sbl();
|
|
|
|
Ui::MainWindow *ui;
|
|
|
|
QProcess *flash = new QProcess(this);
|
|
|
|
QString FlashAwr_arg;
|
|
|
|
QString can;
|
|
|
|
QString serial_stm;
|
|
|
|
QString serial_radar;
|
|
|
|
QString FlashAwr;
|
|
|
|
QString file_sbl;
|
|
|
|
QString awrcanflasher;
|
|
|
|
QString file_firemware;
|
|
};
|
|
#endif // MAINWINDOW_H
|