qpidctrl  0.7.1
qpidserversession.h
Go to the documentation of this file.
1 #ifndef QPIDSERVERSESSION_H
2 #define QPIDSERVERSESSION_H
3 
4 #include <QObject>
5 #include <QTcpSocket>
6 #include <QScriptValue>
7 #include <QDateTime>
8 #include "qpidserver-ptr.h"
9 #include "qpidcontroller-ptr.h"
10 
11 typedef QSharedPointer<QTcpSocket> QTcpSocketPtr;
12 
13 class QPidServerSession : public QObject
14 {
15  Q_OBJECT
16 public:
18 
19 signals:
20 
21 public slots:
22  void connectionClosed();
23  void clientRead();
24  void finishedCommand(QScriptValue result);
25 
26 protected:
27  void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime());
28 
29 private:
33 };
34 
35 #endif // QPIDSERVERSESSION_H
void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())
QWeakPointer< QPidController > QPidControllerWPtr
QWeakPointer< QPidServer > QPidServerWPtr
Definition: qpidserver-ptr.h:9
QPidControllerWPtr m_Controller
QPidServerSession(QPidServerWPtr server, QPidControllerWPtr ctrl, QTcpSocketPtr socket)
QPidServerWPtr m_Server
QSharedPointer< QTcpSocket > QTcpSocketPtr
void finishedCommand(QScriptValue result)
QTcpSocketPtr m_Socket