QwuiBufferedResource Class Reference
A resource that wraps a simple byte array. This class makes it possible to send a buffer of data to the client.
More...
#include <qwuibufferedresource.h>
List of all members.
Detailed Description
A resource that wraps a simple byte array. This class makes it possible to send a buffer of data to the client.
Constructor & Destructor Documentation
QwuiBufferedResource::QwuiBufferedResource |
( |
const QString & |
path, |
|
|
const QString & |
mimeType, |
|
|
const QByteArray & |
source | |
|
) |
| | |
- Parameters:
-
| path | path identifying the buffer content. |
| mimeType | MIME-type of the buffer content. |
| source | buffer data. |
QwuiBufferedResource::~QwuiBufferedResource |
( |
|
) |
[virtual] |
Member Function Documentation
qint64 QwuiBufferedResource::length |
( |
|
) |
const [virtual] |
QString QwuiBufferedResource::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 QwuiBufferedResource::sendToDevice |
( |
QIODevice * |
dev |
) |
const [virtual] |
Member Data Documentation
The documentation for this class was generated from the following files: