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

void QwuiHttpServer::setPort ( quint16  port  ) 

quint16 QwuiHttpServer::port (  )  const

bool QwuiHttpServer::start (  )  [virtual]

Implement this method to implement the server start.

Returns:
true if the initialization succeeded, false otherwise.

Implements QwuiAbstractHttpServer.

QString QwuiHttpServer::error (  )  const [virtual]

Returns:
the error string describing a failed initialization.

Reimplemented from QwuiAbstractHttpServer.

void QwuiHttpServer::incommingConnection ( int  socketDescriptor  )  [private, slot]


Member Data Documentation

Reimplemented from QwuiAbstractHttpServer.

QString QwuiHttpServer::m_lastError [private]

quint16 QwuiHttpServer::m_port [private]


The documentation for this class was generated from the following files:

Generated on Fri Dec 19 00:31:14 2008 for QtWui : Web User Interfaces for Qt by  doxygen 1.5.6