-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathworker.h
31 lines (25 loc) · 814 Bytes
/
worker.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
#ifndef THREAD_H
#define THREAD_H
#include <QObject>
#include <QThread>
#include "rcon.h"
#include "customitems.h"
class RulesInfo;
class InfoReply;
class PlayerInfo;
class LogHandler;
class Worker : public QThread
{
Q_OBJECT
public slots:
void getServerInfo(QHostAddress *host, quint16 port, ServerTableIndexItem *item);
void getPlayerInfo(QHostAddress *host, quint16 port, ServerTableIndexItem *item);
void getRulesInfo(QHostAddress *host, quint16 port, ServerTableIndexItem *item);
void setupUPnP(LogHandler *);
signals:
void serverInfoReady(InfoReply *reply, ServerTableIndexItem *item);
void playerInfoReady(QList<PlayerInfo> *, ServerTableIndexItem *item);
void rulesInfoReady(QList<RulesInfo> *, ServerTableIndexItem *item);
void UPnPReady();
};
#endif // THREAD_H