aboutsummaryrefslogtreecommitdiff
path: root/installer/mainwindow.h
diff options
context:
space:
mode:
authorVictor Tran <vicr12345@gmail.com>2018-07-12 18:12:14 +1000
committerVictor Tran <vicr12345@gmail.com>2018-07-12 18:12:14 +1000
commit2adcd4f24eca2fa529c42fc1165319bcc4ea179e (patch)
tree1c1c8292e9e864640b19c7ff1ae4acaeb90244be /installer/mainwindow.h
downloadtheInstaller-2adcd4f24eca2fa529c42fc1165319bcc4ea179e.tar.gz
theInstaller-2adcd4f24eca2fa529c42fc1165319bcc4ea179e.tar.bz2
theInstaller-2adcd4f24eca2fa529c42fc1165319bcc4ea179e.zip
Initial commit
Diffstat (limited to 'installer/mainwindow.h')
-rw-r--r--installer/mainwindow.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/installer/mainwindow.h b/installer/mainwindow.h
new file mode 100644
index 0000000..dcfd34f
--- /dev/null
+++ b/installer/mainwindow.h
@@ -0,0 +1,67 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QMainWindow>
+#include <QNetworkAccessManager>
+#include <QPaintEvent>
+#include <QPainter>
+#include <QStyle>
+#include <QNetworkRequest>
+#include <QNetworkReply>
+#include <QJsonDocument>
+#include <QJsonObject>
+#include <QTimer>
+#include <QStandardPaths>
+#include <QDebug>
+#include <QProcess>
+#include <QLocalServer>
+#include <QLocalSocket>
+#include <QMessageBox>
+
+#include <windows.h>
+#include <shellapi.h>
+
+namespace Ui {
+class MainWindow;
+}
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+public:
+ explicit MainWindow(QWidget *parent = 0);
+ ~MainWindow();
+
+private slots:
+ void on_installOptions_clicked();
+
+ void getInstallerMetadata();
+
+ void setInstallPath();
+
+ void on_cancelMetadataButton_clicked();
+
+ void on_retryMetadataButton_clicked();
+
+ void on_installEveryone_toggled(bool checked);
+
+ void on_installButton_clicked();
+
+ void on_installButton_2_clicked();
+
+ void on_exitButton_clicked();
+
+ void on_retryInstallButton_clicked();
+
+private:
+ Ui::MainWindow *ui;
+
+ void paintEvent(QPaintEvent* event);
+
+ QNetworkAccessManager mgr;
+ QPixmap backgroundImage;
+ QJsonObject metadata;
+};
+
+#endif // MAINWINDOW_H