QwuiFileRessourceProvider Class Reference

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

#include <qwuifileressourceprovider.h>

Inheritance diagram for QwuiFileRessourceProvider:

QwuiAbstractRessourceProvider

List of all members.

Public Member Functions

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

Private Attributes

QString m_rootDir


Detailed Description

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

Constructor & Destructor Documentation

QwuiFileRessourceProvider::QwuiFileRessourceProvider ( const QString &  sessionId = QString::null  ) 

QwuiFileRessourceProvider::~QwuiFileRessourceProvider (  )  [virtual]


Member Function Documentation

void QwuiFileRessourceProvider::setRootDirectory ( const QString &  path  ) 

Parameters:
path path of the file ressources root directory.

QString QwuiFileRessourceProvider::rootDirectory (  )  const

Returns:
path of the file ressources root directory.

QwuiAbstractRessource * QwuiFileRessourceProvider::provide ( const QHttpRequestHeader &  header,
const QString &  postContent 
) [virtual]

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

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

Implements QwuiAbstractRessourceProvider.


Member Data Documentation


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