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

KAlarm Library

  • sources
  • kde-4.12
  • kdepimlibs
  • kalarmcal
compatibilityattribute.h
1 /*
2  * compatibilityattribute.h - Akonadi attribute holding Collection compatibility
3  * This file is part of kalarmcal library, which provides access to KAlarm
4  * calendar data.
5  * Copyright © 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 #ifndef KALARM_COMPATIBILITY_ATTRIBUTE_H
23 #define KALARM_COMPATIBILITY_ATTRIBUTE_H
24 
25 #include "kalarmcal_export.h"
26 
27 #include "kacalendar.h"
28 
29 #include <akonadi/attribute.h>
30 
31 namespace KAlarmCal
32 {
33 
47 class KALARMCAL_EXPORT CompatibilityAttribute : public Akonadi::Attribute
48 {
49  public:
51  CompatibilityAttribute();
52 
54  CompatibilityAttribute(const CompatibilityAttribute& other);
55 
57  CompatibilityAttribute& operator=(const CompatibilityAttribute& other);
58 
59  virtual ~CompatibilityAttribute();
60 
62  KACalendar::Compat compatibility() const;
63 
65  void setCompatibility(KACalendar::Compat c);
66 
70  int version() const;
71 
75  void setVersion(int v);
76 
78  virtual QByteArray type() const;
80  virtual CompatibilityAttribute* clone() const;
82  virtual QByteArray serialized() const;
84  virtual void deserialize(const QByteArray& data);
85 
87  static QByteArray name();
88 
89  private:
90  //@cond PRIVATE
91  class Private;
92  Private* const d;
93  //@endcond
94 };
95 
96 } // namespace KAlarmCal
97 
98 #endif // KALARM_COMPATIBILITY_ATTRIBUTE_H
99 
100 // vim: et sw=4:
Akonadi::Attribute
KAlarmCal::CompatibilityAttribute
An Attribute for a KAlarm Collection containing compatibility information.
Definition: compatibilityattribute.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:14 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



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