123456789101112131415161718192021222324252627282930313233343536373839 |
- #include "qhttpserverfwd.h"
- #include <QObject>
- #include <QScopedPointer>
- /// BodyData
- class BodyData : public QObject
- {
- Q_OBJECT
- public:
- BodyData();
- private slots:
- void handleRequest(QHttpRequest *req, QHttpResponse *resp);
- };
- /// Responder
- class Responder : public QObject
- {
- Q_OBJECT
- public:
- Responder(QHttpRequest *req, QHttpResponse *resp);
- ~Responder();
- signals:
- void done();
- private slots:
- void accumulate(const QByteArray &data);
- void reply();
- private:
- QScopedPointer<QHttpRequest> m_req;
- QHttpResponse *m_resp;
- };
|