Akonadi

tagattribute.h
1 /*
2  SPDX-FileCopyrightText: 2008 Volker Krause <[email protected]>
3  SPDX-FileCopyrightText: 2014 Christian Mollekopf <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef AKONADI_TAGATTRIBUTE_H
9 #define AKONADI_TAGATTRIBUTE_H
10 
11 #include "akonadicore_export.h"
12 #include "attribute.h"
13 
14 #include <QColor>
15 
16 namespace Akonadi
17 {
18 
24 class AKONADICORE_EXPORT TagAttribute : public Attribute
25 {
26 public:
27  TagAttribute();
28 
29  ~TagAttribute();
30 
34  void setDisplayName(const QString &name);
35 
40  QString displayName() const;
41 
45  void setIconName(const QString &name);
46 
50  QString iconName() const;
51 
52  void setBackgroundColor(const QColor &color);
53  QColor backgroundColor() const;
54  void setTextColor(const QColor &color);
55  QColor textColor() const;
56  void setFont(const QString &fontKey);
57  QString font() const;
58  void setInToolbar(bool inToolbar);
59  bool inToolbar() const;
60  void setShortcut(const QString &shortcut);
61  QString shortcut() const;
62 
69  void setPriority(int priority);
70 
75  int priority() const;
76 
77  /* reimpl */
78  QByteArray type() const override;
79  TagAttribute *clone() const override;
80  QByteArray serialized() const override;
81  void deserialize(const QByteArray &data) override;
82 
83 private:
84  TagAttribute(const TagAttribute &other);
85  TagAttribute &operator=(const TagAttribute &other);
86  //@cond PRIVATE
87  class Private;
88  Private *const d;
89  //@endcond
90 };
91 
92 }
93 
94 #endif
Provides interface for custom attributes for Entity.
Definition: attribute.h:126
Attribute that stores the properties that are used to display a tag.
Definition: tagattribute.h:24
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jul 13 2020 23:16:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.