29 lines
312 B
C++
Executable File
29 lines
312 B
C++
Executable File
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QVector>
|
|
|
|
class QWebSocketServer;
|
|
|
|
|
|
struct Event
|
|
{
|
|
int id;
|
|
int type;
|
|
int partyId;
|
|
qint64 time;
|
|
qint64 duration;
|
|
};
|
|
|
|
|
|
class Server : QObject
|
|
{
|
|
public:
|
|
Server();
|
|
bool init(quint16 port);
|
|
|
|
private:
|
|
QWebSocketServer *m_server;
|
|
QVector<Event> m_events;
|
|
};
|