Akonadi::CollectionColorAttribute

Search for usage in LXR

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
using List = QList<Attribute *>
 
- 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.

Author
Sandro Knauß knaus.nosp@m.s@ko.nosp@m.labsy.nosp@m.s.co.nosp@m.m
Since
5.3

Definition at line 26 of file collectioncolorattribute.h.

Constructor & Destructor Documentation

◆ CollectionColorAttribute()

CollectionColorAttribute::CollectionColorAttribute ( const QColor & color)
explicit

Definition at line 14 of file collectioncolorattribute.cpp.

Member Function Documentation

◆ clone()

CollectionColorAttribute * CollectionColorAttribute::clone ( ) const
overridevirtual

Creates a copy of this attribute.

Implements Akonadi::Attribute.

Definition at line 34 of file collectioncolorattribute.cpp.

◆ color()

QColor CollectionColorAttribute::color ( ) const

Definition at line 24 of file collectioncolorattribute.cpp.

◆ deserialize()

void CollectionColorAttribute::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 44 of file collectioncolorattribute.cpp.

◆ serialized()

QByteArray CollectionColorAttribute::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 39 of file collectioncolorattribute.cpp.

◆ setColor()

void CollectionColorAttribute::setColor ( const QColor & color)

Definition at line 19 of file collectioncolorattribute.cpp.

◆ type()

QByteArray CollectionColorAttribute::type ( ) const
overridevirtual

Returns the type of the attribute.

Implements Akonadi::Attribute.

Definition at line 29 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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:38 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.