KHolidays Library
22 #ifndef KHOLIDAYS_HOLIDAYPARSERDRIVERPLAN_P_H
23 #define KHOLIDAYS_HOLIDAYPARSERDRIVERPLAN_P_H
29 #include <QStringList>
31 #include "../holidayparserdriver_p.h"
35 class HolidayScannerPlan;
36 class HolidayParserPlan;
99 std::string *fileToParse()
const;
102 int adjustedMonthNumber(
int month );
103 bool isLeapYear(
int year );
107 int julianDayFromEventName(
const QString &eventName );
108 int julianDayFromEaster();
109 int julianDayFromPascha();
110 int julianDayFromMonthDay(
int month,
int day );
111 int julianDayFromRelativeWeekday(
int occurrence,
int weekday,
int jd );
112 int julianDayFromWeekdayInMonth(
int occurrence,
int weekday,
int month );
115 void setFileCountryCode(
const QString &countryCode );
116 void setFileLanguageCode(
const QString &languageCode );
117 void setFileName(
const QString &ame );
118 void setFileDescription(
const QString &description );
119 void setEventName(
const QString &eventName );
120 void setEventCategory(
const QString &category );
121 void setEventCalendarType(
const QString &calendarType =
"gregorian" );
122 void setEventDate(
int eventYear,
int eventMonth,
int eventDay );
123 void setEventDate(
int jd );
126 void setFromEaster(
int offset,
int duration );
127 void setFromPascha(
int offset,
int duration );
128 void setFromDate(
int offset,
int condition,
int duration );
129 void setFromWeekdayInMonth(
int occurrence,
int weekday,
int month,
int offset,
int duration );
130 void setFromRelativeWeekday(
int occurrence,
int weekday,
int offset,
int duration );
131 void setEvent(
int event_jd,
int observe_offset,
int duration );
135 int monthsInYear(
int year );
136 int daysInMonth(
int year,
int month );
137 int julianDay(
int year,
int month,
int day );
138 void julianDayToDate(
int jd,
int *year,
int *month,
int *day );
139 QDate easter(
int year );
140 QDate pascha(
int year );
142 int conditionalOffset(
int year,
int month,
int day,
int condition );
144 void addHoliday(
const QDate &date,
int duration );
153 bool m_traceScanning;
156 bool m_parseMetadataOnly;
157 QDate m_parseYearStart;
158 QDate m_parseYearEaster;
159 QDate m_parseYearPascha;
168 std::string *m_fileToParse;
173 #endif // KHOLIDAYS_HOLIDAYPARSERDRIVERPLAN_P_H
void error(const KHolidays::location &errorLocation, const QString &errorMessage)
Bison C++ skeleton error message handling.
~HolidayParserDriverPlan()
Destructor.
HolidayParserDriver abstract base class.
HolidayScannerPlan implementation class.
void parseMetadata()
Parse the file for metadata only and populate the metadata variables.
void parse()
Actually parse the file, new plan format implementation.
HolidayParserDriverPlan(const QString &planFilename)
Constructor of Plan file parser driver.
HolidayParserDriverPlan implementation class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:00 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.