2021-09-10 10:02:59 +08:00
|
|
|
#ifndef STARTUPUPDATER_H
|
|
|
|
#define STARTUPUPDATER_H
|
|
|
|
|
2021-10-04 15:24:39 +08:00
|
|
|
#include <QThread>
|
2021-09-10 10:02:59 +08:00
|
|
|
#include <QNetworkReply>
|
|
|
|
#include <QNetworkAccessManager>
|
|
|
|
|
|
|
|
class StartupUpdater : public QThread
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
StartupUpdater(QObject *parent);
|
|
|
|
void run();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void downloadFinished(QNetworkReply*);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void showLabel(bool flag);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // STARTUPUPDATER_H
|