Akonadi

attribute.h
1 /*
2  Copyright (c) 2006 - 2008 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_ATTRIBUTE_H
8 #define AKONADI_ATTRIBUTE_H
9 
10 #include "akonadicore_export.h"
11 
12 #include <QList>
13 
14 namespace Akonadi
15 {
16 
126 class AKONADICORE_EXPORT Attribute // clazy:exclude=copyable-polymorphic
127 {
128 public:
133 
137  virtual QByteArray type() const = 0;
138 
142  virtual ~Attribute();
143 
147  virtual Attribute *clone() const = 0;
148 
153  virtual QByteArray serialized() const = 0;
154 
161  virtual void deserialize(const QByteArray &data) = 0;
162 
163 protected:
164  explicit Attribute() = default;
165  Attribute(const Attribute &) = default;
166 };
167 
168 }
169 
170 #endif
Provides interface for custom attributes for Entity.
Definition: attribute.h:126
Helper integration between Akonadi and Qt.
QList< Attribute * > List
Describes a list of attributes.
Definition: attribute.h:132
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 6 2020 23:15:17 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.