QwuiAbstractResource Class Reference
This class represents a resource that can be served by the web server. A resource can be any type of information that can be served by a web server. Examples: an image file, a text file, some code generating HTML, etc... A resource is identified by its MIME-type and this class provides the resource length, its path and is able to send the resource to an QIODevice.
More...
#include <qwuiabstractresource.h>
List of all members.
Detailed Description
This class represents a resource that can be served by the web server. A resource can be any type of information that can be served by a web server. Examples: an image file, a text file, some code generating HTML, etc... A resource is identified by its MIME-type and this class provides the resource length, its path and is able to send the resource to an QIODevice.
Constructor & Destructor Documentation
QwuiAbstractResource::QwuiAbstractResource |
( |
const QString & |
path = QString::null |
) |
|
- Parameters:
-
| path | path of the resource. |
QwuiAbstractResource::~QwuiAbstractResource |
( |
|
) |
[virtual] |
Member Function Documentation
bool QwuiAbstractResource::exists |
( |
|
) |
const [virtual] |
- Returns:
- true if the resource exists, false otherwise.
virtual qint64 QwuiAbstractResource::length |
( |
|
) |
const [pure virtual] |
virtual QString QwuiAbstractResource::mimeType |
( |
|
) |
const [pure virtual] |
QString QwuiAbstractResource::path |
( |
|
) |
const [virtual] |
- Returns:
- the path identifying the resource. This is added to the URL by the HTTP server.
virtual void QwuiAbstractResource::sendToDevice |
( |
QIODevice * |
dev |
) |
const [pure virtual] |
Member Data Documentation
The documentation for this class was generated from the following files: