mirror of
https://github.com/leozide/leocad
synced 2024-12-25 21:58:23 +01:00
37 lines
589 B
C++
37 lines
589 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
|
|
class lcHttpReply;
|
|
class lcHttpManager;
|
|
|
|
namespace Ui {
|
|
class lcQUpdateDialog;
|
|
}
|
|
|
|
void lcDoInitialUpdateCheck();
|
|
|
|
class lcQUpdateDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit lcQUpdateDialog(QWidget* Parent, bool InitialUpdate);
|
|
~lcQUpdateDialog();
|
|
|
|
void parseUpdate(const char *update);
|
|
|
|
public slots:
|
|
void DownloadFinished(lcHttpReply* Reply);
|
|
void accept() override;
|
|
void reject() override;
|
|
void finished(int result);
|
|
|
|
private:
|
|
Ui::lcQUpdateDialog *ui;
|
|
|
|
lcHttpManager* mHttpManager;
|
|
QByteArray versionData;
|
|
bool mInitialUpdate;
|
|
};
|
|
|