lanpaper/Server.h

32 lines
563 B
C
Raw Normal View History

#ifndef SERVER_H
#define SERVER_H
#include <QObject>
#include <QTcpServer>
#include "LanPaper.h"
#include "ThreadedServerConnection.h"
#include <QMessageBox>
#include "Secret.h"
class Server : public QTcpServer
{
Q_OBJECT
public:
explicit Server(QObject *parent = 0);
private:
virtual void timerEvent(QTimerEvent *);
void resetConnection();
private:
QByteArray receivedData;
int timer;
protected:
QTcpSocket* tcpSocket;
signals:
public slots:
private slots:
void newConnection();
void readyRead();
};
#endif // SERVER_H