2011-11-24 11:03:05 +00:00
|
|
|
#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();
|
2011-11-12 06:59:50 +00:00
|
|
|
void onAgentReadyRead();
|
2011-11-12 09:42:33 +00:00
|
|
|
void cleanup();
|
2011-11-24 11:03:05 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
QTcpSocket *m_socket;
|
|
|
|
AgentClient *m_agentClient;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SESSION_H
|