blob: 0d21efc7785d569d67ebe21b2a781f8653cb66ed (
plain)
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
|
#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#include <QThread>
#include <QMainWindow>
#include <QMenu>
#include "settings.hpp"
#include "workers.hpp"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget* parent = nullptr);
~MainWindow();
private:
Ui::MainWindow *ui;
Settings* settings;
QThread thread;
Worker* worker;
bool in_progress;
bool installed;
bool uptodate;
void setupButton();
void resetProgress();
public slots:
void workerResult(const Worker::Results_t&);
private slots:
void settingsWindow();
void updateButton();
void showButtonContext(const QPoint&);
void openDiscordInvite();
void openWebsite();
signals:
void workerOperate(const Worker::Tasks_t&);
};
#endif // MAINWINDOW_HPP
|