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

Public Member Functions | |
| Upload (UploadPrivate *prv) | |
| virtual | ~Upload () override |
| QByteArray | contentType () const |
| std::unique_ptr< QTemporaryFile > | createTemporaryFile (const QString &templateName={}) |
| QString | filename () const |
| Headers | headers () const |
| QString | name () const |
| qint64 | pos () const override |
| bool | save (const QString &filename) |
| bool | seek (qint64 pos) override |
| qint64 | size () const override |
Protected Member Functions | |
| qint64 | readData (char *data, qint64 maxlen) override |
| qint64 | readLineData (char *data, qint64 maxlen) override |
| qint64 | writeData (const char *data, qint64 maxSize) override |
Related Symbols | |
(Note that these are not member symbols.) | |
| typedef QVector< Upload * > | Uploads |
|
explicit |
This class provides access to client upload requests
Definition at line 158 of file upload.cpp.
References Upload().
Referenced by Upload(), contentType(), createTemporaryFile(), filename(), headers(), name(), pos(), readData(), readLineData(), save(), seek(), and size().
|
overridevirtual |
Destroys the Upload object.
Definition at line 184 of file upload.cpp.
|
nodiscard |
Returns the content type provided by the user agent.
Definition at line 22 of file upload.cpp.
References Upload().
|
nodiscard |
This function creates a temporary file and fill it with the content of this upload. Returns zero if an error occours.
Definition at line 85 of file upload.cpp.
|
nodiscard |
Returns the file name provided by the user agent.
Definition at line 16 of file upload.cpp.
References Upload().
|
nodiscard |
Returns the headers provided by the user agent.
Definition at line 28 of file upload.cpp.
References Upload().
|
nodiscard |
|
override |
Reimplemented from QIODevice::pos().
Definition at line 135 of file upload.cpp.
References Upload().
Referenced by seek().
|
overrideprotected |
Reimplemented from QIODevice::readData().
Definition at line 195 of file upload.cpp.
|
overrideprotected |
Reimplemented from QIODevice::readLineData().
Definition at line 207 of file upload.cpp.
| bool Upload::save | ( | const QString & | filename | ) |
Saves this upload to the location defined by filename.
Definition at line 34 of file upload.cpp.
|
override |
Reimplemented from QIODevice::seek().
Definition at line 147 of file upload.cpp.
References Upload(), pos(), and size().
Referenced by createTemporaryFile(), and save().
|
override |
Reimplemented from QIODevice::size().
Definition at line 141 of file upload.cpp.
References Upload().
Referenced by readData(), readLineData(), and seek().
|
overrideprotected |
Reimplemented from QIODevice::writeData().
Definition at line 219 of file upload.cpp.