QwuiParameters Class Reference

Parameters received from the client by the web server. More...

#include <qwuiparameters.h>

List of all members.

Public Member Functions

 QwuiParameters ()
virtual ~QwuiParameters ()
void init (const QHttpRequestHeader &header, const QString &postContent=QString::null)
void clear ()
QString operator[] (const QString &key) const
bool contains (const QString &key) const
QString get (const QString &key) const
QString post (const QString &key) const
QDomElement xmlElement () const
QString postContent () const

Private Attributes

QHash< QString, QString > m_getParameters
QHash< QString, QString > m_postParameters
QDomDocument m_xmlDoc
QString m_postContent


Detailed Description

Parameters received from the client by the web server.

Constructor & Destructor Documentation

QwuiParameters::QwuiParameters (  ) 

QwuiParameters::~QwuiParameters (  )  [virtual]


Member Function Documentation

void QwuiParameters::init ( const QHttpRequestHeader &  header,
const QString &  postContent = QString::null 
)

Initializes the instance.

Parameters:
header HTTP request header
postContent HTTP post content.

void QwuiParameters::clear (  ) 

Clears the instance.

QString QwuiParameters::operator[] ( const QString &  key  )  const

Parameters:
key parameter name
Returns:
the value corresponding to key or QString::null

bool QwuiParameters::contains ( const QString &  key  )  const

Parameters:
key parameter name
Returns:
true if the URL had a parameter named key

QString QwuiParameters::get ( const QString &  key  )  const

Parameters:
key parameter name.
Returns:
the value corresponding to the GET parameter key or QString::null

QString QwuiParameters::post ( const QString &  key  )  const

Parameters:
key parameter name.
Returns:
the value corresponding to the POST parameter key or QString::null

QDomElement QwuiParameters::xmlElement (  )  const

Returns:
XML data corresponding to the content of this instance

QString QwuiParameters::postContent (  )  const

Returns:
the content of the POST data.


Member Data Documentation

QHash<QString, QString> QwuiParameters::m_getParameters [private]

QHash<QString, QString> QwuiParameters::m_postParameters [private]

QDomDocument QwuiParameters::m_xmlDoc [private]

QString QwuiParameters::m_postContent [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