File indexing completed on 2024-11-17 04:45:00
0001 /* 0002 SPDX-FileCopyrightText: 2011-2013 Daniel Vrátil <dvratil@redhat.com> 0003 0004 SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <Akonadi/Attribute> 0010 0011 #include <KGAPI/Types> 0012 0013 #include <KCalendarCore/Alarm> 0014 #include <KCalendarCore/Incidence> 0015 0016 class DefaultReminderAttribute : public Akonadi::Attribute 0017 { 0018 public: 0019 explicit DefaultReminderAttribute(); 0020 0021 Attribute *clone() const override; 0022 void deserialize(const QByteArray &data) override; 0023 QByteArray serialized() const override; 0024 QByteArray type() const override; 0025 0026 void setReminders(const KGAPI2::RemindersList &reminders); 0027 KCalendarCore::Alarm::List alarms(KCalendarCore::Incidence *incidence) const; 0028 0029 private: 0030 KGAPI2::RemindersList m_reminders; 0031 };