-
Notifications
You must be signed in to change notification settings - Fork 14
/
workerthread.h
41 lines (36 loc) · 1.05 KB
/
workerthread.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
#ifndef WORKERTHREAD_H
#define WORKERTHREAD_H
#include <QThread>
#include <QApplication>
#include <QString>
#include <QVulkanInstance>
#include <QJsonObject>
#include "interface/common.h"
#include "discord/discord_game_sdk.h"
class WorkerThread
: public QThread
{
Q_OBJECT
void run() Q_DECL_OVERRIDE;
public:
explicit WorkerThread(QString _netplay_ip, int _netplay_port, int _netplay_player, QJsonObject _cheats, QObject *parent = 0);
void setFileName(QString filename);
signals:
void resizeMainWindow(int Width, int Height);
void toggleFS(int force);
void createVkWindow(QVulkanInstance *instance);
void deleteVkWindow();
void showMessage(QString message);
void updateDiscordActivity(struct DiscordActivity activity);
void clearDiscordActivity();
void addLog(QString text);
void addFrameCount();
void setCheats(QJsonObject cheatsData, bool netplay);
private:
QString m_fileName;
QString netplay_ip;
QJsonObject cheats;
int netplay_port;
int netplay_player;
};
#endif // WORKERTHREAD_H