#include <qwuifileressource.h>
Public Member Functions | |
QwuiFileRessource (const QString &path) | |
virtual | ~QwuiFileRessource () |
virtual QString | mimeType () const |
virtual qint64 | length () const |
virtual void | sendToDevice (QIODevice *dev) const |
QwuiFileRessource::QwuiFileRessource | ( | const QString & | path | ) |
path | path of the file. |
QwuiFileRessource::~QwuiFileRessource | ( | ) | [virtual] |
QString QwuiFileRessource::mimeType | ( | ) | const [virtual] |
Subclasses must provide the MIME type of the ressource like "text/html" or "image/jpeg".
Implements QwuiAbstractRessource.
qint64 QwuiFileRessource::length | ( | ) | const [virtual] |
void QwuiFileRessource::sendToDevice | ( | QIODevice * | dev | ) | const [virtual] |
Writes the ressource to dev
dev | IO device to write to. |
Implements QwuiAbstractRessource.