• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. KDE PIM
  3. Akonadi
  • KDE Home
  • Contact Us

Quick Links

Skip menu "Akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Modules
  • Related Pages

Class Picker

About

PIM Storage Framework

Maintainer
Daniel Vrátil
Supported platforms
Linux
Community
IRC: #akonadi on Freenode
Mailing list: kde-pim
Use with CMake
find_package(KF5AkonadiCore)
target_link_libraries(yourapp KF5::AkonadiCore)
Use with QMake
QT += AkonadiCore 
Clone
git clone git://anongit.kde.org/akonadi.git
Browse source
Akonadi on cgit.kde.org

Akonadi

  • View on LXR
  • Akonadi
  • EntityAnnotationsAttribute
Public Member Functions | List of all members
Akonadi::EntityAnnotationsAttribute Class Reference

#include <entityannotationsattribute.h>

Inheritance diagram for Akonadi::EntityAnnotationsAttribute:
Inheritance graph
[legend]

Public Member Functions

 EntityAnnotationsAttribute (const QMap< QByteArray, QByteArray > &annotations)
 
QMap< QByteArray, QByteArray > annotations () const
 
Attribute * clone () const override
 
bool contains (const QByteArray &key) const
 
void deserialize (const QByteArray &data) override
 
void insert (const QByteArray &key, const QString &value)
 
QByteArray serialized () const override
 
void setAnnotations (const QMap< QByteArray, QByteArray > &annotations)
 
QByteArray type () const override
 
QString value (const QByteArray &key) const
 
- Public Member Functions inherited from Akonadi::Attribute
virtual ~Attribute ()
 

Additional Inherited Members

- Public Types inherited from Akonadi::Attribute
typedef QList< Attribute * > List
 

Detailed Description

An attribute for annotations.

The attribute is inspired by RFC5257(IMAP ANNOTATION) and RFC5464(IMAP METADATA), but serves the purpose of RFC5257.

For a private note annotation the entry name is: /private/comment for a shared note: /shared/comment

Since
4.13

Definition at line 45 of file entityannotationsattribute.h.

Member Function Documentation

Akonadi::Attribute * EntityAnnotationsAttribute::clone ( ) const
overridevirtual

Creates a copy of this attribute.

Implements Akonadi::Attribute.

Definition at line 68 of file entityannotationsattribute.cpp.

void EntityAnnotationsAttribute::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 88 of file entityannotationsattribute.cpp.

QByteArray EntityAnnotationsAttribute::serialized ( ) const
overridevirtual

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 73 of file entityannotationsattribute.cpp.

QByteArray EntityAnnotationsAttribute::type ( ) const
overridevirtual

Returns the type of the attribute.

Implements Akonadi::Attribute.

Definition at line 62 of file entityannotationsattribute.cpp.


The documentation for this class was generated from the following files:
  • entityannotationsattribute.h
  • entityannotationsattribute.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 16 2019 01:27:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal