Akonadi::SentActionAttribute Class

class Akonadi::SentActionAttribute

An Attribute that stores the action to execute after sending. More...

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

Public Types

class Action

Public Functions

SentActionAttribute()
virtual ~SentActionAttribute() override
Action::List actions() const
void addAction(Akonadi::SentActionAttribute::Action::Type type, const QVariant &value)

Reimplemented Public Functions

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

Detailed Description

This attribute stores the action that will be executed by the mail dispatcher after a mail has successfully be sent.

Author: Tobias Koenig <tokoe@kdab.com>

Member Function Documentation

[explicit] SentActionAttribute::SentActionAttribute()

Creates a new sent action attribute.

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

Destroys the sent action attribute.

Action::List SentActionAttribute::actions() const

Returns the list of actions.

void SentActionAttribute::addAction(Akonadi::SentActionAttribute::Action::Type type, const QVariant &value)

Adds a new action to the attribute.

type The type of the action that shall be executed. value The action specific argument.

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

Returns a copy of this attribute.

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

Deserializes the attribute from the given data. data the serialized data

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

Returns the serialized representation of the attribute.

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

Returns the type of the attribute.