2014-01-04 06:14:30 +00:00
|
|
|
#ifndef INSTALLDIALOG_H
|
|
|
|
#define INSTALLDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QNetworkAccessManager>
|
|
|
|
#include <QUrl>
|
|
|
|
#include <QNetworkRequest>
|
|
|
|
#include <QNetworkReply>
|
|
|
|
|
2014-01-06 00:24:12 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "../node/Address.hpp"
|
|
|
|
|
2014-01-04 06:14:30 +00:00
|
|
|
namespace Ui {
|
|
|
|
class InstallDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class InstallDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit InstallDialog(QWidget *parent = 0);
|
|
|
|
~InstallDialog();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_networkReply(QNetworkReply *reply);
|
|
|
|
void on_InstallDialog_rejected();
|
|
|
|
void on_cancelButton_clicked();
|
|
|
|
void on_downloadProgress(qint64 bytesReceived,qint64 bytesTotal);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::InstallDialog *ui;
|
|
|
|
QNetworkAccessManager *nam;
|
2014-01-06 00:24:12 +00:00
|
|
|
enum {
|
|
|
|
FETCHING_NFO,
|
|
|
|
FETCHING_INSTALLER
|
|
|
|
} phase;
|
|
|
|
|
|
|
|
ZeroTier::Address signedBy;
|
|
|
|
std::string url,signature;
|
2014-01-04 06:14:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INSTALLDIALOG_H
|