Changeset View
Changeset View
Standalone View
Standalone View
resources/google-groupware/defaultreminderattribute.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Copyright (C) 2011-2013 Daniel Vrátil <dvratil@redhat.com> | ||||
3 | | ||||
4 | This program is free software: you can redistribute it and/or modify | ||||
5 | it under the terms of the GNU General Public License as published by | ||||
6 | the Free Software Foundation, either version 3 of the License, or | ||||
7 | (at your option) any later version. | ||||
8 | | ||||
9 | This program is distributed in the hope that it will be useful, | ||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
12 | GNU General Public License for more details. | ||||
13 | | ||||
14 | You should have received a copy of the GNU General Public License | ||||
15 | along with this program. If not, see <https://www.gnu.org/licenses/>. | ||||
16 | */ | ||||
17 | | ||||
18 | #ifndef GOOGLE_CALENDAR_DEFAULTREMINDERATTRIBUTE_H | ||||
19 | #define GOOGLE_CALENDAR_DEFAULTREMINDERATTRIBUTE_H | ||||
20 | | ||||
21 | #include <AkonadiCore/Attribute> | ||||
22 | | ||||
23 | #include <KGAPI/Types> | ||||
24 | | ||||
25 | #include <KCalendarCore/Alarm> | ||||
26 | #include <KCalendarCore/Incidence> | ||||
27 | | ||||
28 | class DefaultReminderAttribute : public Akonadi::Attribute | ||||
29 | { | ||||
30 | public: | ||||
31 | explicit DefaultReminderAttribute(); | ||||
32 | | ||||
33 | Attribute *clone() const override; | ||||
34 | void deserialize(const QByteArray &data) override; | ||||
35 | QByteArray serialized() const override; | ||||
36 | QByteArray type() const override; | ||||
37 | | ||||
38 | void setReminders(const KGAPI2::RemindersList &reminders); | ||||
39 | KCalendarCore::Alarm::List alarms(KCalendarCore::Incidence *incidence) const; | ||||
40 | | ||||
41 | private: | ||||
42 | KGAPI2::RemindersList m_reminders; | ||||
43 | }; | ||||
44 | | ||||
45 | #endif // DEFAULTREMINDERATTRIBUTE_H |