KAlarm Library
collectionattribute.h
00001 /* 00002 * collectionattribute.h - Akonadi attribute holding Collection characteristics 00003 * This file is part of kalarmcal library, which provides access to KAlarm 00004 * calendar data. 00005 * Copyright © 2010-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 00023 #ifndef KALARM_COLLECTION_ATTRIBUTE_H 00024 #define KALARM_COLLECTION_ATTRIBUTE_H 00025 00026 #include "kalarmcal_export.h" 00027 00028 #include "kacalendar.h" 00029 00030 #include <akonadi/attribute.h> 00031 00032 #include <QtGui/QColor> 00033 00034 namespace KAlarmCal 00035 { 00036 00051 class KALARMCAL_EXPORT CollectionAttribute : public Akonadi::Attribute 00052 { 00053 public: 00054 CollectionAttribute(); 00055 00057 CollectionAttribute(const CollectionAttribute& other); 00058 00060 CollectionAttribute& operator=(const CollectionAttribute& other); 00061 00062 virtual ~CollectionAttribute(); 00063 00068 bool isEnabled(CalEvent::Type type) const; 00069 00072 CalEvent::Types enabled() const; 00073 00084 void setEnabled(CalEvent::Type type, bool enabled); 00085 00090 void setEnabled(CalEvent::Types types); 00091 00096 bool isStandard(CalEvent::Type type) const; 00097 00103 void setStandard(CalEvent::Type, bool standard); 00104 00109 CalEvent::Types standard() const; 00110 00115 void setStandard(CalEvent::Types types); 00116 00120 QColor backgroundColor() const; 00121 00125 void setBackgroundColor(const QColor& c); 00126 00130 bool keepFormat() const; 00131 00135 void setKeepFormat(bool keep); 00136 00138 virtual QByteArray type() const; 00140 virtual CollectionAttribute* clone() const; 00142 virtual QByteArray serialized() const; 00144 virtual void deserialize(const QByteArray& data); 00145 00147 static QByteArray name(); 00148 00149 private: 00150 //@cond PRIVATE 00151 class Private; 00152 Private* const d; 00153 //@endcond 00154 }; 00155 00156 } // namespace KAlarmCal 00157 00158 #endif // KALARM_COLLECTION_ATTRIBUTE_H 00159 00160 // vim: et sw=4:
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:50:08 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:50:08 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.