Akonadi::CollectionColorAttribute
#include <collectioncolorattribute.h>
Public Member Functions | |
CollectionColorAttribute (const QColor &color) | |
CollectionColorAttribute * | clone () 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.
- Since
- 5.3
Definition at line 26 of file collectioncolorattribute.h.
Constructor & Destructor Documentation
◆ CollectionColorAttribute()
|
explicit |
Definition at line 14 of file collectioncolorattribute.cpp.
Member Function Documentation
◆ clone()
|
overridevirtual |
Creates a copy of this attribute.
Implements Akonadi::Attribute.
Definition at line 34 of file collectioncolorattribute.cpp.
◆ color()
|
nodiscard |
Definition at line 24 of file collectioncolorattribute.cpp.
◆ deserialize()
|
overridevirtual |
Sets the data of this attribute, using the same encoding as returned by toByteArray().
- Parameters
-
data The encoded attribute data.
Implements Akonadi::Attribute.
Definition at line 44 of file collectioncolorattribute.cpp.
◆ serialized()
|
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 39 of file collectioncolorattribute.cpp.
◆ setColor()
void CollectionColorAttribute::setColor | ( | const QColor & | color | ) |
Definition at line 19 of file collectioncolorattribute.cpp.
◆ type()
|
nodiscardoverridevirtual |
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:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.