mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
38 lines
647 B
C++
38 lines
647 B
C++
#ifndef LC_QUPDATEDIALOG_H
|
|
#define LC_QUPDATEDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QNetworkReply>
|
|
|
|
namespace Ui {
|
|
class lcQUpdateDialog;
|
|
}
|
|
|
|
void lcDoInitialUpdateCheck();
|
|
|
|
class lcQUpdateDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit lcQUpdateDialog(QWidget *parent, void *data);
|
|
~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 initialUpdate;
|
|
};
|
|
|
|
#endif // LC_QUPDATEDIALOG_H
|