Cutelyst  1.5.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Cutelyst::Upload Class Reference
Inheritance diagram for Cutelyst::Upload:
Inheritance graph

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
bool save (const QString &filename)
virtual bool seek (qint64 pos)
virtual qint64 size () const

Protected Member Functions

virtual qint64 readData (char *data, qint64 maxlen)
virtual qint64 readLineData (char *data, qint64 maxlen)
virtual qint64 writeData (const char *data, qint64 maxSize)

Protected Attributes

UploadPrivate * d_ptr

Detailed Description

Definition at line 33 of file upload.h.

Member Function Documentation

QString Cutelyst::Upload::contentType ( ) const

Returns the content type provided by the user agent

QTemporaryFile* Cutelyst::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.

QString Cutelyst::Upload::filename ( ) const

Returns the file name provided by the user agent

Headers Cutelyst::Upload::headers ( ) const

Returns the headers provided by the user agent

QString Cutelyst::Upload::name ( ) const

Returns the name of the form field

bool Cutelyst::Upload::save ( const QString &  filename)

Saves this upload to the following location.