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::clear (  ) 

Clears the instance.

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
void QwuiParameters::init ( const QHttpRequestHeader &  header,
const QString &  postContent = QString::null 
)

Initializes the instance.

Parameters:
header HTTP request header
postContent HTTP post content.
QString QwuiParameters::operator[] ( const QString &  key  )  const
Parameters:
key parameter name
Returns:
the value corresponding to 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
QString QwuiParameters::postContent (  )  const
Returns:
the content of the POST data.
QDomElement QwuiParameters::xmlElement (  )  const
Returns:
XML data corresponding to the content of this instance

Member Data Documentation

QHash<QString, QString> QwuiParameters::m_getParameters [private]
QString QwuiParameters::m_postContent [private]
QHash<QString, QString> QwuiParameters::m_postParameters [private]
QDomDocument QwuiParameters::m_xmlDoc [private]

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