QwuiFileResource Class Reference

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

#include <qwuifileresource.h>

Inheritance diagram for QwuiFileResource:
QwuiAbstractResource

List of all members.

Public Member Functions

 QwuiFileResource (const QString &path)
virtual ~QwuiFileResource ()
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

QwuiFileResource::QwuiFileResource ( const QString &  path  ) 
Parameters:
path path of the file.
QwuiFileResource::~QwuiFileResource (  )  [virtual]

Member Function Documentation

qint64 QwuiFileResource::length (  )  const [virtual]
Returns:
the length of the resource in bytes.

Implements QwuiAbstractResource.

QString QwuiFileResource::mimeType (  )  const [virtual]

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

Returns:
the MIME type of the resource.

Implements QwuiAbstractResource.

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

Writes the resource to dev

Parameters:
dev IO device to write to.

Implements QwuiAbstractResource.


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