-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.h
50 lines (37 loc) · 966 Bytes
/
MainWindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once
#include <QWizard>
#include <QSslError>
namespace Ui{
class CMainWindow;
}
class QNetworkAccessManager;
class QNetworkReply;
class CMainWindow : public QWizard
{
Q_OBJECT
public:
CMainWindow(bool devChannel, bool updaterUpdateCheck);
protected:
void initializePage(int id) override;
public slots:
void updateWidgetReady(bool update, bool terminal);
void onFinish();
private slots:
void connFinished(QNetworkReply *r);
void sslErrorHandler(QNetworkReply *reply, const QList<QSslError> &errors);
void progress(qint64 bytesReceived, qint64 bytesTotal);
private:
bool checkBinaries();
bool isFileWriteable(QString filename, QString niceName);
bool NetworkAccessibleCheck();
void getFile();
void getFileReponse(QNetworkReply *r);
void deleteFiles();
void makePath(QString path);
void downloadsFinished();
private:
Ui::CMainWindow* ui;
QNetworkAccessManager* restclient;
bool m_devChannel;
bool m_updaterUpdateCheck;
};