KMime::Headers::Generics::Parametrized Class

class KMime::Headers::Generics::Parametrized

Base class for headers containing a parameter list such as "Content-Type". More...

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

KMime::Headers::ContentDisposition and KMime::Headers::ContentType

Public Functions

bool hasParameter(QByteArrayView key) const
QString parameter(QByteArrayView key) const
void setParameter(const QByteArray &key, const QString &value)

Detailed Description

Member Function Documentation

bool Parametrized::hasParameter(QByteArrayView key) const

Returns true if a parameter with the given key exists.

key the key of the parameter to check for

QString Parametrized::parameter(QByteArrayView key) const

Returns the value of the specified parameter.

key The parameter name.

See also setParameter().

void Parametrized::setParameter(const QByteArray &key, const QString &value)

Sets the parameter key to value.

key The parameter name.

value The new value for key.

See also parameter().