Akonadi::MDNStateAttribute Class

class Akonadi::MDNStateAttribute

An Attribute that keeps track of the MDN state of a mail message. More...

Header: #include <Akonadi/MDNStateAttribute>
CMake: find_package(KPim6AkonadiMime REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::AkonadiMime)

Public Types

enum MDNSentState { MDNStateUnknown, MDNNone, MDNIgnore, MDNDisplayed, MDNDeleted, …, MDNFailed }

Public Functions

MDNStateAttribute(Akonadi::MDNStateAttribute::MDNSentState state = MDNStateUnknown)
MDNStateAttribute(const QByteArray &state)
virtual ~MDNStateAttribute() override
Akonadi::MDNStateAttribute::MDNSentState mdnState() const
void setMDNState(Akonadi::MDNStateAttribute::MDNSentState state)

Reimplemented Public Functions

virtual Akonadi::MDNStateAttribute *clone() const override
virtual void deserialize(const QByteArray &data) override
virtual QByteArray serialized() const override
virtual QByteArray type() const override

Detailed Description

Once a mail that contains a Message Disposition Notification is processed, the outcome of the user action will be stored in this attribute.

Author: Leo Franchi <lfranchi@kde.org>

See also Akonadi::Attribute.

Member Type Documentation

enum MDNStateAttribute::MDNSentState

Describes the "MDN sent" state.

Member Function Documentation

[explicit] MDNStateAttribute::MDNStateAttribute(Akonadi::MDNStateAttribute::MDNSentState state = MDNStateUnknown)

Creates a new MDN state attribute.

state The state the attribute will have.

[explicit] MDNStateAttribute::MDNStateAttribute(const QByteArray &state)

Creates a new MDN state attribute.

state The string representation of the state the attribute will have.

[override virtual noexcept] MDNStateAttribute::~MDNStateAttribute()

Destroys the MDN state attribute.

[override virtual] Akonadi::MDNStateAttribute *MDNStateAttribute::clone() const

Reimplemented from Attribute

[override virtual] void MDNStateAttribute::deserialize(const QByteArray &data)

Reimplemented from Attribute

Akonadi::MDNStateAttribute::MDNSentState MDNStateAttribute::mdnState() const

Returns the MDN state.

[override virtual] QByteArray MDNStateAttribute::serialized() const

Reimplemented from Attribute

void MDNStateAttribute::setMDNState(Akonadi::MDNStateAttribute::MDNSentState state)

Sets the MDN state.

[override virtual] QByteArray MDNStateAttribute::type() const

Reimplemented from Attribute