2017-02-20 13:46:29 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QThread>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
class AutoUpdateThread : public QThread {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
bool manualUpdate;
|
2022-04-12 10:10:00 +02:00
|
|
|
bool repairMode;
|
2017-02-20 13:46:29 +01:00
|
|
|
bool user_confirmed = false;
|
|
|
|
|
|
|
|
virtual void run() override;
|
|
|
|
|
|
|
|
void info(const QString &title, const QString &text);
|
|
|
|
int queryUpdate(bool manualUpdate, const char *text_utf8);
|
2022-04-12 10:10:00 +02:00
|
|
|
bool queryRepair();
|
2017-02-20 13:46:29 +01:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void infoMsg(const QString &title, const QString &text);
|
|
|
|
int queryUpdateSlot(bool manualUpdate, const QString &text);
|
2022-04-12 10:10:00 +02:00
|
|
|
bool queryRepairSlot();
|
2017-02-20 13:46:29 +01:00
|
|
|
|
|
|
|
public:
|
2022-04-12 10:10:00 +02:00
|
|
|
AutoUpdateThread(bool manualUpdate_, bool repairMode_ = false)
|
|
|
|
: manualUpdate(manualUpdate_),
|
|
|
|
repairMode(repairMode_)
|
|
|
|
{
|
|
|
|
}
|
2017-02-20 13:46:29 +01:00
|
|
|
};
|