Akonadi::MessageFolderAttribute Class

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

Public Functions

MessageFolderAttribute()
MessageFolderAttribute(const Akonadi::MessageFolderAttribute &other)
virtual ~MessageFolderAttribute() override
bool isOutboundFolder() const
void setOutboundFolder(bool outbound)

Reimplemented Public Functions

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

Detailed Description

Message folder information. Used eg. by mail clients to decide how to display the content of such collections

Member Function Documentation

MessageFolderAttribute::MessageFolderAttribute()

Creates an empty folder attribute.

MessageFolderAttribute::MessageFolderAttribute(const Akonadi::MessageFolderAttribute &other)

Copy constructor.

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

Destructor.

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

Returns a copy of this attribute.

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

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

bool MessageFolderAttribute::isOutboundFolder() const

Indicates if the folder is supposed to contain mostly outbound messages. In such a case mail clients display the recipient address, otherwise they display the sender address.

Returns true if the folder contains outbound messages

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

Returns the serialized representation of the attribute.

void MessageFolderAttribute::setOutboundFolder(bool outbound)

Set if the folder should be considered as containing mostly outbound messages.

See also isOutboundFolder().

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

Returns the type of the attribute.