Warning, file /frameworks/kholidays/autotests/testholidayregion.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     This file is part of the kholidays library.
0003 
0004     SPDX-FileCopyrightText: 2010 John Layt <john@layt.net>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #ifndef TESTHOLIDAYREGION_H
0010 #define TESTHOLIDAYREGION_H
0011 
0012 #include <QObject>
0013 
0014 #include "holidayregion.h"
0015 
0016 class QString;
0017 class QDate;
0018 
0019 class HolidayRegionTest : public QObject
0020 {
0021     Q_OBJECT
0022 private Q_SLOTS:
0023     void testLoadFileCalendarSystems();
0024     void testLoadFile();
0025     void testGb();
0026     void testIran();
0027     void testIsrael();
0028     void testRegions();
0029     void testDefaultRegions();
0030     void testSolistaleInHolidays();
0031     void testLoadFileCalendarSystemsForPlasma();
0032     void testDominicanRepublicDiadelaConstitucion();
0033 
0034 private:
0035     void printMetadata(const KHolidays::HolidayRegion &region);
0036     void printHolidays(const KHolidays::Holiday::List &holidays);
0037     void parseRegionCalendarYear(const KHolidays::HolidayRegion &region, int year, const QString &calendarType = "gregorian");
0038     void parseRegionDateRange(const KHolidays::HolidayRegion &region, const QDate &startDate, const QDate &endDate);
0039     void parseRawRegionDateRange(const KHolidays::HolidayRegion &region, const QDate &startDate, const QDate &endDate);
0040     void parseRegionDate(const KHolidays::HolidayRegion &region, const QDate &date);
0041     void parseRegionDateRangeCategory(const KHolidays::HolidayRegion &region, const QDate &startDate, const QDate &endDate, const QString &category);
0042 };
0043 
0044 #endif // TESTHOLIDAYREGION_H