/usr/include/kalarmcal/collectionattribute.h is in kdepimlibs5-dev 4:4.14.10-7+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | /*
* collectionattribute.h - Akonadi attribute holding Collection characteristics
* This file is part of kalarmcal library, which provides access to KAlarm
* calendar data.
* Copyright © 2010-2011 by David Jarvie <djarvie@kde.org>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as published
* by the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
* License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#ifndef KALARM_COLLECTION_ATTRIBUTE_H
#define KALARM_COLLECTION_ATTRIBUTE_H
#include "kalarmcal_export.h"
#include "kacalendar.h"
#include <akonadi/attribute.h>
#include <QColor>
namespace KAlarmCal
{
/**
* @short An Attribute for a KAlarm Collection containing various status information.
*
* This class represents an Akonadi attribute of a KAlarm Collection. It contains
* information on the enabled status, the alarm types allowed in the resource,
* which alarm types the resource is the standard Collection for, etc.
*
* The attribute is maintained by client applications.
*
* @see CompatibilityAttribute
*
* @author David Jarvie <djarvie@kde.org>
*/
class KALARMCAL_EXPORT CollectionAttribute : public Akonadi::Attribute
{
public:
CollectionAttribute();
/** Copy constructor. */
CollectionAttribute(const CollectionAttribute& other);
/** Assignment operator. */
CollectionAttribute& operator=(const CollectionAttribute& other);
virtual ~CollectionAttribute();
/** Return whether the collection is enabled for a specified alarm type
* (active, archived, template or displaying).
* @param type alarm type to check for.
*/
bool isEnabled(CalEvent::Type type) const;
/** Return which alarm types (active, archived or template) the
* collection is enabled for. */
CalEvent::Types enabled() const;
/** Set the enabled/disabled state of the collection and its alarms,
* for a specified alarm type (active, archived or template). The
* enabled/disabled state for other alarm types is not affected.
* The alarms of that type in a disabled collection are ignored, and
* not displayed in the alarm list. The standard status for that type
* for a disabled collection is automatically cleared.
* @param type alarm type
* @param enabled true to set enabled, false to set disabled.
*/
void setEnabled(CalEvent::Type type, bool enabled);
/** Set which alarm types (active, archived or template) the collection
* is enabled for.
* @param types alarm types
*/
void setEnabled(CalEvent::Types types);
/** Return whether the collection is the standard collection for a specified
* alarm type (active, archived or template).
* @param type alarm type
*/
bool isStandard(CalEvent::Type type) const;
/** Set or clear the collection as the standard collection for a specified
* alarm type (active, archived or template).
* @param type alarm type
* @param standard true to set as standard, false to clear standard status.
*/
void setStandard(CalEvent::Type, bool standard);
/** Return which alarm types (active, archived or template) the
* collection is standard for.
* @return alarm types.
*/
CalEvent::Types standard() const;
/** Set which alarm types (active, archived or template) the
* collection is the standard collection for.
* @param types alarm types.
*/
void setStandard(CalEvent::Types types);
/** Return the background color to display this collection and its alarms,
* or invalid color if none is set.
*/
QColor backgroundColor() const;
/** Set the background color for this collection and its alarms.
* @param c background color
*/
void setBackgroundColor(const QColor& c);
/** Return whether the user has chosen to keep the old calendar storage
* format, i.e. not update to current KAlarm format.
*/
bool keepFormat() const;
/** Set whether to keep the old calendar storage format unchanged.
* @param keep true to keep format unchanged, false to allow changes.
*/
void setKeepFormat(bool keep);
/** Reimplemented from Attribute */
virtual QByteArray type() const;
/** Reimplemented from Attribute */
virtual CollectionAttribute* clone() const;
/** Reimplemented from Attribute */
virtual QByteArray serialized() const;
/** Reimplemented from Attribute */
virtual void deserialize(const QByteArray& data);
/** Return the attribute name. */
static QByteArray name();
private:
//@cond PRIVATE
class Private;
Private* const d;
//@endcond
};
} // namespace KAlarmCal
#endif // KALARM_COLLECTION_ATTRIBUTE_H
// vim: et sw=4:
|