2021-03-25 05:00:19 -07:00
|
|
|
#ifndef ALERT_H
|
|
|
|
#define ALERT_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class alert;
|
|
|
|
}
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class alert : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-04-04 21:47:15 -07:00
|
|
|
QString className = this->metaObject()->className();
|
2021-03-25 05:00:19 -07:00
|
|
|
explicit alert(QWidget *parent = nullptr);
|
|
|
|
~alert();
|
2021-04-06 13:08:03 -07:00
|
|
|
bool signatureError = false;
|
|
|
|
bool downgradeError = false;
|
2021-04-22 04:38:54 -07:00
|
|
|
bool criticalBattery = false;
|
2021-06-26 07:09:51 -07:00
|
|
|
void updateReset();
|
2021-03-25 05:00:19 -07:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_continueBtn_clicked();
|
|
|
|
void on_resetBtn_clicked();
|
2021-04-02 10:42:00 -07:00
|
|
|
void on_continue2Btn_clicked();
|
2022-04-04 22:37:04 -07:00
|
|
|
void quit();
|
2021-04-02 10:42:00 -07:00
|
|
|
|
2021-03-25 05:00:19 -07:00
|
|
|
private:
|
|
|
|
Ui::alert *ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ALERT_H
|