KMime::Headers::Control Class

class KMime::Headers::Control

Represents a "Control" header. More...

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

Public Functions

QByteArray controlType() const
bool isCancel() const
QByteArray parameter() const
void setCancel(const QByteArray &msgid)

Detailed Description

See RFC 1036, section 3.

Member Function Documentation

QByteArray Control::controlType() const

Returns the control message type.

bool Control::isCancel() const

Returns true if this is a cancel control message.

See RFC 1036, section 3.1.

QByteArray Control::parameter() const

Returns the control message parameter.

void Control::setCancel(const QByteArray &msgid)

Changes this header into a cancel control message for the given message-id.

msgid The message-id of the article that should be canceled.

See also isCancel().