• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KAlarm Library

  • kalarmcal
collectionattribute.h
1/*
2 * collectionattribute.h - Akonadi attribute holding Collection characteristics
3 * This file is part of kalarmcal library, which provides access to KAlarm
4 * calendar data.
5 * Copyright © 2010-2011 by David Jarvie <djarvie@kde.org>
6 *
7 * This library is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Library General Public License as published
9 * by the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15 * License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to the
19 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20 * MA 02110-1301, USA.
21 */
22
23#ifndef KALARM_COLLECTION_ATTRIBUTE_H
24#define KALARM_COLLECTION_ATTRIBUTE_H
25
26#include "kalarmcal_export.h"
27
28#include "kacalendar.h"
29
30#include <akonadi/attribute.h>
31
32#include <QColor>
33
34namespace KAlarmCal
35{
36
51class KALARMCAL_EXPORT CollectionAttribute : public Akonadi::Attribute
52{
53 public:
54 CollectionAttribute();
55
57 CollectionAttribute(const CollectionAttribute& other);
58
60 CollectionAttribute& operator=(const CollectionAttribute& other);
61
62 virtual ~CollectionAttribute();
63
68 bool isEnabled(CalEvent::Type type) const;
69
72 CalEvent::Types enabled() const;
73
83 void setEnabled(CalEvent::Type type, bool enabled);
84
89 void setEnabled(CalEvent::Types types);
90
95 bool isStandard(CalEvent::Type type) const;
96
102 void setStandard(CalEvent::Type, bool standard);
103
108 CalEvent::Types standard() const;
109
114 void setStandard(CalEvent::Types types);
115
119 QColor backgroundColor() const;
120
124 void setBackgroundColor(const QColor& c);
125
129 bool keepFormat() const;
130
134 void setKeepFormat(bool keep);
135
137 virtual QByteArray type() const;
139 virtual CollectionAttribute* clone() const;
141 virtual QByteArray serialized() const;
143 virtual void deserialize(const QByteArray& data);
144
146 static QByteArray name();
147
148 private:
149 //@cond PRIVATE
150 class Private;
151 Private* const d;
152 //@endcond
153};
154
155} // namespace KAlarmCal
156
157#endif // KALARM_COLLECTION_ATTRIBUTE_H
158
159// vim: et sw=4:
Akonadi::Attribute
KAlarmCal::CollectionAttribute
An Attribute for a KAlarm Collection containing various status information.
Definition collectionattribute.h:52
KAlarmCal::CalEvent::Type
Type
The category of an event, indicated by the middle part of its UID.
Definition kacalendar.h:156
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KAlarm Library

Skip menu "KAlarm Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal