Go to the documentation of this file.00001
00002
00003
00004
00005
00006 #ifndef WOLF_SERVER_PH
00007 #define WOLF_SERVER_PH
00008
00009 #include "server.h"
00010
00011 class WServerReceiver:public QObject
00012 {
00013 Q_OBJECT
00014 public:
00015 WServerReceiver(WServer*,QIODevice*);
00016 virtual ~WServerReceiver();
00017 public slots:
00018 void receiveMore();
00019
00020 signals:
00021 void readyForProcess(WServerRequest,QIODevice*);
00022
00023 private:
00024 enum Mode{StartMode,HeaderMode,BodyMode,Completed};
00025 Mode mode;
00026 int explen;
00027 QByteArray head,body,buffer;
00028 WServer*server;
00029 QIODevice*sock;
00030 WServerRequest request;
00031 };
00032
00033 #endif