/* SPDX-FileCopyrightText: 2015 Martin Klapetek SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include #include #include #include #include class HolidaysEventsPlugin : public CalendarEvents::CalendarEventsPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID "org.kde.CalendarEventsPlugin" FILE "holidayeventsplugin.json") Q_INTERFACES(CalendarEvents::CalendarEventsPlugin) public: explicit HolidaysEventsPlugin(QObject *parent = nullptr); ~HolidaysEventsPlugin() override; void loadEventsForDateRange(const QDate &startDate, const QDate &endDate) override; private: void updateSettings(const KConfigGroup ®ionsConfig); QDate m_lastStartDate; QDate m_lastEndDate; QList m_regions; QMultiHash m_lastData; QHash m_lastSubLabelData; KConfigWatcher::Ptr m_configWatcher; };