Akonadi

specialcollectionattribute.h
1 /*
2  SPDX-FileCopyrightText: 2009 Constantin Berzan <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_SPECIALCOLLECTIONATTRIBUTE_P_H
8 #define AKONADI_SPECIALCOLLECTIONATTRIBUTE_P_H
9 
10 #include "akonadicore_export.h"
11 #include "attribute.h"
12 
13 #include <QByteArray>
14 
15 namespace Akonadi
16 {
17 
26 class AKONADICORE_EXPORT SpecialCollectionAttribute : public Akonadi::Attribute
27 {
28 public:
32  explicit SpecialCollectionAttribute(const QByteArray &type = QByteArray());
33 
37  ~SpecialCollectionAttribute() override;
38 
42  void setCollectionType(const QByteArray &type);
43 
47  QByteArray collectionType() const;
48 
49  /* reimpl */
50  SpecialCollectionAttribute *clone() const override;
51  QByteArray type() const override;
52  QByteArray serialized() const override;
53  void deserialize(const QByteArray &data) override;
54 
55 private:
56  //@cond PRIVATE
57  class Private;
58  Private *const d;
59  //@endcond
60 };
61 
62 } // namespace Akonadi
63 
64 #endif // AKONADI_SPECIALCOLLECTIONATTRIBUTE_H
An Attribute that stores the special collection type of a collection.
Provides interface for custom attributes for Entity.
Definition: attribute.h:126
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jul 9 2020 23:15:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.