Akonadi::CollectionColorAttribute Class Reference

#include <collectioncolorattribute.h>

Inheritance diagram for Akonadi::CollectionColorAttribute:

Public Member Functions

 CollectionColorAttribute (const QColor &color)
CollectionColorAttributeclone () const override
QColor color () const
void deserialize (const QByteArray &data) override
QByteArray serialized () const override
void setColor (const QColor &color)
QByteArray type () const override
- Public Member Functions inherited from Akonadi::Attribute
virtual ~Attribute ()

Additional Inherited Members

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

Detailed Description

Attribute that stores colors of a collection.

Storing color in Akonadi makes it possible to sync them between client and server.

Sandro Knauß knaus[email protected][email protected][email protected]labsy[email protected]s.co[email protected]m

Definition at line 28 of file collectioncolorattribute.h.

Member Function Documentation

CollectionColorAttribute * CollectionColorAttribute::clone ( ) const

Creates a copy of this attribute.

Implements Akonadi::Attribute.

Definition at line 35 of file collectioncolorattribute.cpp.

void CollectionColorAttribute::deserialize ( const QByteArray data)

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

dataThe encoded attribute data.

Implements Akonadi::Attribute.

Definition at line 45 of file collectioncolorattribute.cpp.

QByteArray CollectionColorAttribute::serialized ( ) const

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 40 of file collectioncolorattribute.cpp.

QByteArray CollectionColorAttribute::type ( ) const

Returns the type of the attribute.

Implements Akonadi::Attribute.

Definition at line 30 of file collectioncolorattribute.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jul 6 2020 23:15:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.