leocad/qt/lc_qupdatedialog.h

37 lines
586 B
C
Raw Normal View History

#pragma once
2013-08-09 04:57:18 +00:00
#include <QDialog>
#include <QNetworkReply>
namespace Ui {
class lcQUpdateDialog;
}
2013-08-12 00:26:52 +00:00
void lcDoInitialUpdateCheck();
2013-08-09 04:57:18 +00:00
class lcQUpdateDialog : public QDialog
{
Q_OBJECT
public:
2016-08-01 03:44:15 +00:00
explicit lcQUpdateDialog(QWidget* Parent, bool InitialUpdate);
2013-08-09 04:57:18 +00:00
~lcQUpdateDialog();
void parseUpdate(const char *update);
public slots:
void replyFinished(QNetworkReply *reply);
void accept();
void reject();
2013-08-12 00:26:52 +00:00
void finished(int result);
2013-08-09 04:57:18 +00:00
private:
Ui::lcQUpdateDialog *ui;
QNetworkReply *updateReply;
QNetworkAccessManager *manager;
QByteArray versionData;
2016-08-01 03:44:15 +00:00
bool mInitialUpdate;
2013-08-09 04:57:18 +00:00
};