Changeset View
Changeset View
Standalone View
Standalone View
plasmacalendarplugins/astronomical/astronomicaleventsplugin.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Copyright 2018 Friedrich W. H. Kossebau <kossebau@kde.org> | ||||
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 2 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 <http://www.gnu.org/licenses/> | ||||
16 | */ | ||||
17 | | ||||
18 | #ifndef ASTRONOMICALEVENTSPLUGIN_H | ||||
19 | #define ASTRONOMICALEVENTSPLUGIN_H | ||||
20 | | ||||
21 | // KF | ||||
22 | #include <CalendarEvents/CalendarEventsPlugin> | ||||
23 | | ||||
24 | class AstronomicalEventsPlugin : public CalendarEvents::CalendarEventsPlugin | ||||
25 | { | ||||
26 | Q_OBJECT | ||||
27 | Q_PLUGIN_METADATA(IID "org.kde.CalendarEventsPlugin" FILE "astronomicaleventsplugin.json") | ||||
28 | Q_INTERFACES(CalendarEvents::CalendarEventsPlugin) | ||||
29 | | ||||
30 | public: | ||||
31 | AstronomicalEventsPlugin(); | ||||
32 | ~AstronomicalEventsPlugin() override; | ||||
33 | | ||||
34 | void loadEventsForDateRange(const QDate &startDate, const QDate &endDate) override; | ||||
35 | | ||||
36 | private: | ||||
37 | bool m_lunarPhaseShown; | ||||
38 | bool m_seasonShown; | ||||
39 | }; | ||||
40 | | ||||
41 | #endif |