PACK Qt Binding  $VERSION$
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
server_p.h
Go to the documentation of this file.
1 // Copyright (C) 2009-2011 by Konrad Rosenbaum <konrad@silmor.de>
2 // protected under the GNU LGPL version 3 or at your option any newer.
3 // See COPYING.LGPL file that comes with this distribution.
4 //
5 
6 #ifndef WOLF_SERVER_PH
7 #define WOLF_SERVER_PH
8 
9 #include "server.h"
10 
12 class WServerReceiver:public QObject
13 {
14  Q_OBJECT
15  public:
19  WServerReceiver(WServer*srv,QIODevice*sock);
21  virtual ~WServerReceiver();
22  private slots:
24  void receiveMore();
25 
26  signals:
28  void readyForProcess(WServerRequest,QIODevice*);
29 
30  private:
31  enum Mode{StartMode,HeaderMode,BodyMode,Completed};
32  Mode mode;
33  int explen;
34  QByteArray head,body,buffer;
35  WServer*server;
36  QIODevice*sock;
37  WServerRequest request;
38 };
39 
40 #endif
virtual ~WServerReceiver()
deletes the receiver object and its socket if it had an error or timeout
Definition: server.cpp:384
WServerReceiver(WServer *srv, QIODevice *sock)
Definition: server.cpp:362
Definition: server_p.h:12
Definition: server.h:103
Encapsulates the request as it comes in via (S)CGI.
Definition: server.h:23
void readyForProcess(WServerRequest, QIODevice *)
returns the completely parsed request back to the server to handle it