KAlarm Library
compatibilityattribute.h
00001 /* 00002 * compatibilityattribute.h - Akonadi attribute holding Collection compatibility 00003 * This file is part of kalarmcal library, which provides access to KAlarm 00004 * calendar data. 00005 * Copyright © 2011 by David Jarvie <djarvie@kde.org> 00006 * 00007 * This library is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU Library General Public License as published 00009 * by the Free Software Foundation; either version 2 of the License, or (at 00010 * your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, but WITHOUT 00013 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00014 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00015 * License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public License 00018 * along with this library; see the file COPYING.LIB. If not, write to the 00019 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00020 * MA 02110-1301, USA. 00021 */ 00022 #ifndef KALARM_COMPATIBILITY_ATTRIBUTE_H 00023 #define KALARM_COMPATIBILITY_ATTRIBUTE_H 00024 00025 #include "kalarmcal_export.h" 00026 00027 #include "kacalendar.h" 00028 00029 #include <akonadi/attribute.h> 00030 00031 namespace KAlarmCal 00032 { 00033 00047 class KALARMCAL_EXPORT CompatibilityAttribute : public Akonadi::Attribute 00048 { 00049 public: 00051 CompatibilityAttribute(); 00052 00054 CompatibilityAttribute(const CompatibilityAttribute& other); 00055 00057 CompatibilityAttribute& operator=(const CompatibilityAttribute& other); 00058 00059 virtual ~CompatibilityAttribute(); 00060 00062 KACalendar::Compat compatibility() const; 00063 00065 void setCompatibility(KACalendar::Compat c); 00066 00070 int version() const; 00071 00075 void setVersion(int v); 00076 00078 virtual QByteArray type() const; 00080 virtual CompatibilityAttribute* clone() const; 00082 virtual QByteArray serialized() const; 00084 virtual void deserialize(const QByteArray& data); 00085 00087 static QByteArray name(); 00088 00089 private: 00090 //@cond PRIVATE 00091 class Private; 00092 Private* const d; 00093 //@endcond 00094 }; 00095 00096 } // namespace KAlarmCal 00097 00098 #endif // KALARM_COMPATIBILITY_ATTRIBUTE_H 00099 00100 // vim: et sw=4:
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 05:13:34 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 05:13:34 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.