#ifndef SERVER_H #define SERVER_H #include #include #include "LanPaper.h" #include "ThreadedServerConnection.h" #include #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