winpty/TestNetServer/Session.h

33 lines
480 B
C
Raw Normal View History

#ifndef SESSION_H
#define SESSION_H
#include <QObject>
class QTcpSocket;
class AgentClient;
class Session : public QObject
{
Q_OBJECT
public:
explicit Session(QTcpSocket *socket, QObject *parent = 0);
signals:
public slots:
private slots:
void onSocketReadyRead();
void onAgentReadyRead();
void cleanup();
private:
void initializeAgent(int cols, int rows);
private:
QTcpSocket *m_socket;
AgentClient *m_agentClient;
};
#endif // SESSION_H