leocad/qt/lc_qupdatedialog.h
2020-03-22 15:44:41 -07:00

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;
};