QwuiHttpServer Class Reference

The concrete HTTP server. Instances of this class listen on a given port and let than an QwuiHttpServerDelegate handle the incomming requests. More...

#include <qwuihttpserver.h>

Inheritance diagram for QwuiHttpServer:
QwuiAbstractHttpServer

List of all members.

Public Member Functions

 QwuiHttpServer (QObject *parent=NULL)
virtual ~QwuiHttpServer ()
void setPort (quint16 port)
quint16 port () const
virtual bool start ()
virtual QString error () const

Private Slots

void incommingConnection (int socketDescriptor)

Private Attributes

QwuiTcpServerm_server
QString m_lastError
quint16 m_port

Detailed Description

The concrete HTTP server. Instances of this class listen on a given port and let than an QwuiHttpServerDelegate handle the incomming requests.


Constructor & Destructor Documentation

QwuiHttpServer::QwuiHttpServer ( QObject *  parent = NULL  ) 
QwuiHttpServer::~QwuiHttpServer (  )  [virtual]

Member Function Documentation

QString QwuiHttpServer::error (  )  const [virtual]
Returns:
the error string describing a failed initialization.

Reimplemented from QwuiAbstractHttpServer.

void QwuiHttpServer::incommingConnection ( int  socketDescriptor  )  [private, slot]
quint16 QwuiHttpServer::port (  )  const
void QwuiHttpServer::setPort ( quint16  port  ) 
bool QwuiHttpServer::start (  )  [virtual]

Implement this method to implement the server start.

Returns:
true if the initialization succeeded, false otherwise.

Implements QwuiAbstractHttpServer.


Member Data Documentation

QString QwuiHttpServer::m_lastError [private]
quint16 QwuiHttpServer::m_port [private]

Reimplemented from QwuiAbstractHttpServer.


The documentation for this class was generated from the following files:
Generated on Fri Jun 4 01:18:58 2010 for QtWui : Web User Interfaces for Qt by  doxygen 1.6.3