Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

qhttpserver.h

00001 // -*- c++ -*-
00002 
00003 #ifndef QHTTPSERVER_H
00004 #define QHTTPSERVER_H
00005 
00006 #include <qserversocket.h>
00007 
00008 class QHttpServletRunner;
00009 
00015 class QHttpServer : public QServerSocket
00016 {
00017    Q_OBJECT
00018   
00019 public: 
00020     QHttpServer( int port=8080 );
00021     virtual ~QHttpServer();
00022     
00023     void setupServlets();
00024     bool loadSettings( const QString &filename );
00025 
00026     virtual void newConnection( int socket );
00027 
00028 signals:
00029     void newConnect();
00030     void endConnect();
00031     void wroteToClient();
00032 
00033 private slots:
00034     void readClient();
00035     void discardClient();
00036 
00037 private:
00038    int port;
00039    QString name;
00040    QHttpServletRunner *run;
00041 };
00042 
00043 #endif
00044 
00045 // Local Variables:
00046 // c-basic-offset: 3
00047 // End:

Generated on Wed Apr 9 23:50:21 2003 for QXServlet by doxygen1.2.17