mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-14 22:02:09 +08:00
8b44d6978d
date: 2024-02-21T23:02:42 master commit: 0b4d08fab8e35a264bc7383e878538f8083c33e5
27 lines
511 B
C++
27 lines
511 B
C++
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QWidget>
|
|
|
|
enum ResetMode {
|
|
USER_RESET, // user initiated a factory reset from openpilot
|
|
RECOVER, // userdata is corrupt for some reason, give a chance to recover
|
|
};
|
|
|
|
class Reset : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Reset(ResetMode mode, QWidget *parent = 0);
|
|
|
|
private:
|
|
QLabel *body;
|
|
QPushButton *rejectBtn;
|
|
QPushButton *rebootBtn;
|
|
QPushButton *confirmBtn;
|
|
void doErase();
|
|
void startReset();
|
|
|
|
private slots:
|
|
void confirm();
|
|
};
|