Akonadi

entitydisplayattribute.h
1 /*
2  Copyright (c) 2008 Volker Krause <[email protected]>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef AKONADI_ENTITYDISPLAYATTRIBUTE_H
21 #define AKONADI_ENTITYDISPLAYATTRIBUTE_H
22 
23 #include "akonadicore_export.h"
24 #include "attribute.h"
25 
26 #include <QColor>
27 #include <QIcon>
28 
29 namespace Akonadi
30 {
31 
40 class AKONADICORE_EXPORT EntityDisplayAttribute : public Attribute
41 {
42 public:
47 
51  ~EntityDisplayAttribute() override;
52 
56  void setDisplayName(const QString &name);
57 
62  QString displayName() const;
63 
67  void setIconName(const QString &name);
68 
72  QIcon icon() const;
73 
77  QString iconName() const;
78 
84  void setActiveIconName(const QString &name);
85 
90  QIcon activeIcon() const;
91 
96  QString activeIconName() const;
97 
102  QColor backgroundColor() const;
103 
109  void setBackgroundColor(const QColor &color);
110 
111  /* reimpl */
112  QByteArray type() const override;
113  EntityDisplayAttribute *clone() const override;
114  QByteArray serialized() const override;
115  void deserialize(const QByteArray &data) override;
116 
117 private:
118  //@cond PRIVATE
119  class Private;
120  Private *const d;
121  //@endcond
122 };
123 
124 }
125 
126 #endif
Provides interface for custom attributes for Entity.
Definition: attribute.h:139
Helper integration between Akonadi and Qt.
Attribute that stores the properties that are used to display an entity.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 1 2020 23:07:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.