File indexing completed on 2024-05-12 16:59:38

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