-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathutlauncher.h
55 lines (46 loc) · 1.08 KB
/
utlauncher.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
51
52
53
54
55
#ifndef UTLAUNCHER_H
#define UTLAUNCHER_H
#include "utsplash.h"
#include <QApplication>
#include <QFile>
#include <QProcess>
#include <QDesktopWidget>
#include <QSettings>
#include <QSystemTrayIcon>
#include <QDesktopWidget>
#include <QStyle>
#include <QSplashScreen>
#include <QJsonDocument>
#include <QJsonObject>
#include <QFileInfo>
#include <QDir>
#include <QSettings>
#include <QLabel>
#include <QPainter>
#include <QTimer>
#include "download.h"
#include "torrentdownloader.h"
#include "bootstrap.h"
class ServerBrowser;
class UTLauncher: public QApplication
{
Q_OBJECT
QWidget a;
UTSplash* splash;
ServerBrowser* browser;
//TorrentDownloader torrentDownloader;
Bootstrap bootstrap;
QSettings settings;
QTimer serversRefreshTimer;
QTimer splashTimer;
QSystemTrayIcon systemTray;
void prepareConfig();
QColor iconColor() const;
void startServerBrowser();
private slots:
void closeSplash();
void gotServersInfo(QJsonDocument document);
public:
UTLauncher(int& argc, char** argv);
};
#endif // UTLAUNCHER_H