2013-08-09 06:57:18 +02:00
|
|
|
#ifndef LC_QUPDATEDIALOG_H
|
|
|
|
#define LC_QUPDATEDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QNetworkReply>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class lcQUpdateDialog;
|
|
|
|
}
|
|
|
|
|
2013-08-12 02:26:52 +02:00
|
|
|
void lcDoInitialUpdateCheck();
|
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
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();
|
2013-08-12 02:26:52 +02:00
|
|
|
void finished(int result);
|
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
private:
|
|
|
|
Ui::lcQUpdateDialog *ui;
|
|
|
|
|
|
|
|
QNetworkReply *updateReply;
|
|
|
|
QNetworkAccessManager *manager;
|
2013-08-12 02:26:52 +02:00
|
|
|
bool initialUpdate;
|
2013-08-09 06:57:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LC_QUPDATEDIALOG_H
|