QwuiFileResourceProvider Class Reference

A resource provider that provides file resources. When provide() is called, the resource provider looks for a file that corresponds to the path given in the header relatively to the rootDirectory(). More...

#include <qwuifileresourceprovider.h>

Inheritance diagram for QwuiFileResourceProvider:
QwuiAbstractResourceProvider

List of all members.

Public Member Functions

 QwuiFileResourceProvider (const QString &sessionId=QString::null)
virtual ~QwuiFileResourceProvider ()
void setRootDirectory (const QString &path)
QString rootDirectory () const
QwuiAbstractResourceprovide (const QHttpRequestHeader &header, const QString &postContent)

Private Attributes

QString m_rootDir

Detailed Description

A resource provider that provides file resources. When provide() is called, the resource provider looks for a file that corresponds to the path given in the header relatively to the rootDirectory().


Constructor & Destructor Documentation

QwuiFileResourceProvider::QwuiFileResourceProvider ( const QString &  sessionId = QString::null  ) 
QwuiFileResourceProvider::~QwuiFileResourceProvider (  )  [virtual]

Member Function Documentation

QwuiAbstractResource * QwuiFileResourceProvider::provide ( const QHttpRequestHeader &  header,
const QString &  postContent 
) [virtual]

Subclasses must implement this method and return a QwuiAbstractResource object corresponding to the HTTP request.

Parameters:
header HTTP request header
postContent HTTP post content.
Returns:
a QwuiAbstractResource object corresponding to the HTTP request.

Implements QwuiAbstractResourceProvider.

QString QwuiFileResourceProvider::rootDirectory (  )  const
Returns:
path of the file resources root directory.
void QwuiFileResourceProvider::setRootDirectory ( const QString &  path  ) 
Parameters:
path path of the file resources root directory.

Member Data Documentation


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