2017-04-19 19:54:15 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QThread>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
class AutoUpdateThread : public QThread {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
bool manualUpdate;
|
|
|
|
bool user_confirmed = false;
|
|
|
|
|
|
|
|
virtual void run() override;
|
|
|
|
|
|
|
|
void info(const QString &title, const QString &text);
|
|
|
|
int queryUpdate(bool manualUpdate, const char *text_utf8);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void infoMsg(const QString &title, const QString &text);
|
|
|
|
int queryUpdateSlot(bool manualUpdate, const QString &text);
|
|
|
|
|
|
|
|
public:
|
|
|
|
AutoUpdateThread(bool manualUpdate_) : manualUpdate(manualUpdate_) {}
|
|
|
|
};
|
2018-12-16 16:14:58 +00:00
|
|
|
|
|
|
|
class WhatsNewInfoThread : public QThread {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
virtual void run() override;
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void Result(const QString &text);
|
|
|
|
|
|
|
|
public:
|
|
|
|
inline WhatsNewInfoThread() {}
|
|
|
|
};
|
2020-03-25 08:07:22 +00:00
|
|
|
|
|
|
|
class WhatsNewBrowserInitThread : public QThread {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
QString url;
|
|
|
|
|
|
|
|
virtual void run() override;
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void Result(const QString &url);
|
|
|
|
|
|
|
|
public:
|
|
|
|
inline WhatsNewBrowserInitThread(const QString &url_) : url(url_) {}
|
|
|
|
};
|