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 1178 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 2104 of file kmime_headers.cpp.
void KMime::Headers::ContentDisposition::clear | ( | ) | [virtual] |
Deletes.
Reimplemented from KMime::Headers::Generics::Parametrized.
Definition at line 2135 of file kmime_headers.cpp.
contentDisposition KMime::Headers::ContentDisposition::disposition | ( | ) | const |
Returns the content disposition.
Definition at line 2142 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 2153 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 2130 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 2163 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 2147 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 2158 of file kmime_headers.cpp.
The documentation for this class was generated from the following files: