File indexing completed on 2024-05-12 16:59:38
0001 /* 0002 SPDX-FileCopyrightText: 2021 Gary Wang <wzc782970009@gmail.com> 0003 SPDX-FileCopyrightText: 2022 Fushan Wen <qydwhotmail@gmail.com> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include "abstractcalendarprovider.h" 0011 #include "icucalendar_p.h" 0012 0013 /** 0014 * @short An alternate calendar provider for Chinese calendar system. 0015 * 0016 * This class presents an alternate calendar provider for Chinese calendar system. 0017 */ 0018 class ChineseCalendarProvider : public AbstractCalendarProvider 0019 { 0020 Q_OBJECT 0021 0022 public: 0023 explicit ChineseCalendarProvider(QObject *parent, CalendarSystem::System calendarSystem); 0024 ~ChineseCalendarProvider() override; 0025 0026 CalendarEvents::CalendarEventsPlugin::SubLabel subLabels(const QDate &date) const override; 0027 0028 private: 0029 const std::unique_ptr<class ChineseCalendarProviderPrivate> d; 0030 };