mirror of
https://github.com/leozide/leocad
synced 2024-12-30 22:23:45 +01:00
37 lines
571 B
C++
37 lines
571 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();
|
|
void reject();
|
|
void finished(int result);
|
|
|
|
private:
|
|
Ui::lcQUpdateDialog *ui;
|
|
|
|
lcHttpManager* mHttpManager;
|
|
QByteArray versionData;
|
|
bool mInitialUpdate;
|
|
};
|
|
|