leocad/qt/lc_qupdatedialog.h
2017-07-19 14:20:32 -07:00

36 lines
586 B
C++

#pragma once
#include <QDialog>
#include <QNetworkReply>
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 replyFinished(QNetworkReply *reply);
void accept();
void reject();
void finished(int result);
private:
Ui::lcQUpdateDialog *ui;
QNetworkReply *updateReply;
QNetworkAccessManager *manager;
QByteArray versionData;
bool mInitialUpdate;
};