KMIME Library
KMime::Headers::ContentDisposition Class Reference
Represents a "Content-Disposition" header. More...
#include <kmime_headers.h>

Public Member Functions | |
| virtual QByteArray | as7BitString (bool withHeaderType=true) const |
| virtual void | clear () |
| contentDisposition | disposition () const |
| QString | filename () const |
| virtual bool | isEmpty () const |
| void | setDisposition (contentDisposition disp) |
| void | setFilename (const QString &filename) |
Protected Member Functions | |
| bool | parse (const char *&scursor, const char *const send, bool isCRLF=false) |
Detailed Description
Represents a "Content-Disposition" header.
- See also:
- RFC 2183
Definition at line 1148 of file kmime_headers.h.
Member Function Documentation
| QByteArray KMime::Headers::ContentDisposition::as7BitString | ( | bool | withHeaderType = true |
) | const [virtual] |
Returns the encoded header.
- Parameters:
-
withHeaderType Specifies whether the header-type should be included.
Reimplemented from KMime::Headers::Generics::Parametrized.
Definition at line 1992 of file kmime_headers.cpp.
| void KMime::Headers::ContentDisposition::clear | ( | ) | [virtual] |
Deletes.
Reimplemented from KMime::Headers::Generics::Parametrized.
Definition at line 2023 of file kmime_headers.cpp.
| contentDisposition KMime::Headers::ContentDisposition::disposition | ( | ) | const |
Returns the content disposition.
Definition at line 2030 of file kmime_headers.cpp.
| QString KMime::Headers::ContentDisposition::filename | ( | ) | const |
Returns the suggested filename for the associated MIME part.
This is just a convenience function, it is equivalent to calling parameter( "filename" );
Definition at line 2041 of file kmime_headers.cpp.
| bool KMime::Headers::ContentDisposition::isEmpty | ( | ) | const [virtual] |
Checks if this header contains any data.
Reimplemented from KMime::Headers::Generics::Parametrized.
Definition at line 2018 of file kmime_headers.cpp.
| bool KMime::Headers::ContentDisposition::parse | ( | const char *& | scursor, | |
| const char *const | send, | |||
| bool | isCRLF = false | |||
| ) | [protected, virtual] |
This method parses the raw header and needs to be implemented in every sub-class.
- Parameters:
-
scursor Pointer to the start of the data still to parse. send Pointer to the end of the data. isCRLF true if input string is terminated with a CRLF.
Reimplemented from KMime::Headers::Generics::Parametrized.
Definition at line 2051 of file kmime_headers.cpp.
| void KMime::Headers::ContentDisposition::setDisposition | ( | contentDisposition | disp | ) |
Sets the content disposition.
- Parameters:
-
disp The new content disposition.
Definition at line 2035 of file kmime_headers.cpp.
| void KMime::Headers::ContentDisposition::setFilename | ( | const QString & | filename | ) |
Sets the suggested filename for the associated MIME part.
This is just a convenience function, it is equivalent to calling setParameter( "filename", filename );
- Parameters:
-
filename The filename.
Definition at line 2046 of file kmime_headers.cpp.
The documentation for this class was generated from the following files:
KDE 4.3 API Reference