KMime::Headers::ContentDisposition Class

class KMime::Headers::ContentDisposition

Represents a "Content-Disposition" header. More...

Header: #include <KMime/Headers>
CMake: find_package(KPim6 REQUIRED COMPONENTS Mime)
target_link_libraries(mytarget PRIVATE KPim6::Mime)
Inherits: KMime::Headers::Generics::Parametrized

Public Functions

KMime::Headers::contentDisposition disposition() const
QString filename() const
void setDisposition(KMime::Headers::contentDisposition disp)
void setFilename(const QString &filename)

Detailed Description

See RFC 2183

Member Function Documentation

KMime::Headers::contentDisposition ContentDisposition::disposition() const

Returns the content disposition.

See also setDisposition().

QString 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" );

See also setFilename().

void ContentDisposition::setDisposition(KMime::Headers::contentDisposition disp)

Sets the content disposition.

disp The new content disposition.

See also disposition().

void 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 );

filename The filename.

See also filename().