QwuiFileRessource Class Reference

This class makes it possible to send a file to the client. More...

#include <qwuifileressource.h>

Inheritance diagram for QwuiFileRessource:

QwuiAbstractRessource

List of all members.

Public Member Functions

 QwuiFileRessource (const QString &path)
virtual ~QwuiFileRessource ()
virtual QString mimeType () const
virtual qint64 length () const
virtual void sendToDevice (QIODevice *dev) const


Detailed Description

This class makes it possible to send a file to the client.

Constructor & Destructor Documentation

QwuiFileRessource::QwuiFileRessource ( const QString &  path  ) 

Parameters:
path path of the file.

QwuiFileRessource::~QwuiFileRessource (  )  [virtual]


Member Function Documentation

QString QwuiFileRessource::mimeType (  )  const [virtual]

Subclasses must provide the MIME type of the ressource like "text/html" or "image/jpeg".

Returns:
the MIME type of the ressource.

Implements QwuiAbstractRessource.

qint64 QwuiFileRessource::length (  )  const [virtual]

Returns:
the length of the ressource in bytes.

Implements QwuiAbstractRessource.

void QwuiFileRessource::sendToDevice ( QIODevice *  dev  )  const [virtual]

Writes the ressource to dev

Parameters:
dev IO device to write to.

Implements QwuiAbstractRessource.


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