2017-07-19 23:20:32 +02:00
|
|
|
#pragma once
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
#include <QDialog>
|
2018-04-14 20:44:39 +02:00
|
|
|
|
|
|
|
class lcHttpReply;
|
|
|
|
class lcHttpManager;
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class lcQUpdateDialog;
|
|
|
|
}
|
|
|
|
|
2013-08-12 02:26:52 +02:00
|
|
|
void lcDoInitialUpdateCheck();
|
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
class lcQUpdateDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2016-08-01 05:44:15 +02:00
|
|
|
explicit lcQUpdateDialog(QWidget* Parent, bool InitialUpdate);
|
2013-08-09 06:57:18 +02:00
|
|
|
~lcQUpdateDialog();
|
|
|
|
|
|
|
|
void parseUpdate(const char *update);
|
|
|
|
|
|
|
|
public slots:
|
2018-04-14 20:44:39 +02:00
|
|
|
void DownloadFinished(lcHttpReply* Reply);
|
2020-03-22 23:44:41 +01:00
|
|
|
void accept() override;
|
|
|
|
void reject() override;
|
2013-08-12 02:26:52 +02:00
|
|
|
void finished(int result);
|
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
private:
|
|
|
|
Ui::lcQUpdateDialog *ui;
|
|
|
|
|
2018-04-14 20:44:39 +02:00
|
|
|
lcHttpManager* mHttpManager;
|
2013-08-20 03:23:41 +02:00
|
|
|
QByteArray versionData;
|
2016-08-01 05:44:15 +02:00
|
|
|
bool mInitialUpdate;
|
2013-08-09 06:57:18 +02:00
|
|
|
};
|
|
|
|
|