|
cutelyst 3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
|
Cutelyst Upload handles file upload request More...
#include <Cutelyst/Upload>

Public Member Functions | |
| Upload (UploadPrivate *prv) | |
| QString | contentType () const |
| QTemporaryFile * | createTemporaryFile (const QString &templateName=QString()) |
| QString | filename () const |
| Headers | headers () const |
| QString | name () const |
| virtual qint64 | pos () const override |
| bool | save (const QString &filename) |
| virtual bool | seek (qint64 pos) override |
| virtual qint64 | size () const override |
Protected Member Functions | |
| virtual qint64 | readData (char *data, qint64 maxlen) override |
| virtual qint64 | readLineData (char *data, qint64 maxlen) override |
| virtual qint64 | writeData (const char *data, qint64 maxSize) override |
| Upload::Upload | ( | UploadPrivate * | prv | ) |
This class provides access to client upload requests
Definition at line 154 of file upload.cpp.
References Upload().
Referenced by Upload(), contentType(), createTemporaryFile(), filename(), headers(), name(), pos(), readData(), readLineData(), save(), seek(), and size().
|
overridevirtual |
Definition at line 179 of file upload.cpp.
| QString Upload::contentType | ( | ) | const |
Returns the content type provided by the user agent
Definition at line 21 of file upload.cpp.
References Upload().
| QTemporaryFile * Upload::createTemporaryFile | ( | const QString & | templateName = QString() | ) |
This function creates a temporary file and fill it with the content of this upload. Returns zero if an error occours.
Definition at line 83 of file upload.cpp.
| QString Upload::filename | ( | ) | const |
Returns the file name provided by the user agent
Definition at line 15 of file upload.cpp.
References Upload().
| Headers Upload::headers | ( | ) | const |
Returns the headers provided by the user agent
Definition at line 27 of file upload.cpp.
References Upload().
| QString Upload::name | ( | ) | const |
|
overridevirtual |
Reimplemented from QIODevice::pos().
Definition at line 131 of file upload.cpp.
References Upload().
Referenced by seek().
|
overrideprotectedvirtual |
Reimplemented from QIODevice::readData().
Definition at line 190 of file upload.cpp.
|
overrideprotectedvirtual |
Reimplemented from QIODevice::readLineData().
Definition at line 202 of file upload.cpp.
| bool Upload::save | ( | const QString & | filename | ) |
Saves this upload to the following location.
Definition at line 33 of file upload.cpp.
|
overridevirtual |
Reimplemented from QIODevice::seek().
Definition at line 143 of file upload.cpp.
References Upload(), pos(), and size().
Referenced by createTemporaryFile(), and save().
|
overridevirtual |
Reimplemented from QIODevice::size().
Definition at line 137 of file upload.cpp.
References Upload().
Referenced by readData(), readLineData(), and seek().
|
overrideprotectedvirtual |
Reimplemented from QIODevice::writeData().
Definition at line 214 of file upload.cpp.