mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-24 01:23:54 +08:00
* start moving neos updater * downloading * ui * move recovery * resuming * add verification * fix up launch * test * update updater * fix mypy * fake updater * review suggestions * more tests * abc * update bin * raise Co-authored-by: Comma Device <device@comma.ai>
32 lines
654 B
C++
32 lines
654 B
C++
#pragma once
|
|
|
|
#include <QLabel>
|
|
#include <QProcess>
|
|
#include <QPushButton>
|
|
#include <QProgressBar>
|
|
#include <QStackedWidget>
|
|
#include <QWidget>
|
|
|
|
class Updater : public QStackedWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Updater(const QString &updater_path, const QString &manifest_path, QWidget *parent = 0);
|
|
|
|
private slots:
|
|
void installUpdate();
|
|
void readProgress();
|
|
void updateFinished(int exitCode, QProcess::ExitStatus exitStatus);
|
|
|
|
private:
|
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
|
|
|
QProcess proc;
|
|
QString updater, manifest;
|
|
|
|
QLabel *text;
|
|
QProgressBar *bar;
|
|
QPushButton *reboot;
|
|
QWidget *prompt, *wifi, *progress;
|
|
};
|