Akonadi::CollectionAnnotationsAttribute

Search for usage in LXR

Akonadi::CollectionAnnotationsAttribute Class Reference

#include <collectionannotationsattribute.h>

Inheritance diagram for Akonadi::CollectionAnnotationsAttribute:

Public Member Functions

 CollectionAnnotationsAttribute (const QMap< QByteArray, QByteArray > &annotations)
 
QMap< QByteArray, QByteArrayannotations () const
 
CollectionAnnotationsAttributeclone () const override
 
void deserialize (const QByteArray &data) override
 
bool operator== (const CollectionAnnotationsAttribute &other) const
 
QByteArray serialized () const override
 
void setAnnotations (const QMap< QByteArray, QByteArray > &annotations)
 
QByteArray type () const override
 
- Public Member Functions inherited from Akonadi::Attribute
virtual ~Attribute ()
 

Additional Inherited Members

- Public Types inherited from Akonadi::Attribute
using List = QList<Attribute *>
 
- Protected Member Functions inherited from Akonadi::Attribute
 Attribute (const Attribute &)=default
 

Detailed Description

Collection annotations attribute.

This is primarily meant for storing IMAP ANNOTATION (RFC5257) data for resources supporting that.

Since
5.23.43

Definition at line 24 of file collectionannotationsattribute.h.

Constructor & Destructor Documentation

◆ CollectionAnnotationsAttribute()

CollectionAnnotationsAttribute::CollectionAnnotationsAttribute ( const QMap< QByteArray, QByteArray > & annotations)
explicit

Definition at line 15 of file collectionannotationsattribute.cpp.

Member Function Documentation

◆ annotations()

QMap< QByteArray, QByteArray > CollectionAnnotationsAttribute::annotations ( ) const
nodiscard

Definition at line 25 of file collectionannotationsattribute.cpp.

◆ clone()

CollectionAnnotationsAttribute * CollectionAnnotationsAttribute::clone ( ) const
overridevirtual

Creates a copy of this attribute.

Implements Akonadi::Attribute.

Definition at line 36 of file collectionannotationsattribute.cpp.

◆ deserialize()

void CollectionAnnotationsAttribute::deserialize ( const QByteArray & data)
overridevirtual

Sets the data of this attribute, using the same encoding as returned by toByteArray().

Parameters
dataThe encoded attribute data.

Implements Akonadi::Attribute.

Definition at line 55 of file collectionannotationsattribute.cpp.

◆ operator==()

bool CollectionAnnotationsAttribute::operator== ( const CollectionAnnotationsAttribute & other) const

Definition at line 82 of file collectionannotationsattribute.cpp.

◆ serialized()

QByteArray CollectionAnnotationsAttribute::serialized ( ) const
nodiscardoverridevirtual

Returns a QByteArray representation of the attribute which will be storaged.

This can be raw binary data, no encoding needs to be applied.

Implements Akonadi::Attribute.

Definition at line 41 of file collectionannotationsattribute.cpp.

◆ setAnnotations()

void CollectionAnnotationsAttribute::setAnnotations ( const QMap< QByteArray, QByteArray > & annotations)

Definition at line 20 of file collectionannotationsattribute.cpp.

◆ type()

QByteArray CollectionAnnotationsAttribute::type ( ) const
nodiscardoverridevirtual

Returns the type of the attribute.

Implements Akonadi::Attribute.

Definition at line 30 of file collectionannotationsattribute.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.