leocad/qt/lc_qupdatedialog.h
2013-08-12 00:26:52 +00:00

36 lines
606 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 cancel();
void finished(int result);
private:
Ui::lcQUpdateDialog *ui;
QNetworkReply *updateReply;
QNetworkAccessManager *manager;
bool initialUpdate;
};
#endif // LC_QUPDATEDIALOG_H