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;
81 void error(
const QString &errorMessage );
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 setEventColorName(
int nameColor );
121 void setEventColorDay(
int dayColor );
122 void setEventCalendarType(
const QString &calendarType =
"gregorian" );
123 void setEventDate(
int eventYear,
int eventMonth,
int eventDay );
124 void setEventDate(
int jd );
127 void setFromEaster(
int offset,
int duration );
128 void setFromPascha(
int offset,
int duration );
129 void setFromDate(
int offset,
int condition,
int duration );
130 void setFromWeekdayInMonth(
int occurrence,
int weekday,
int month,
int offset,
int duration );
131 void setFromRelativeWeekday(
int occurrence,
int weekday,
int offset,
int duration );
132 void setEvent(
int event_jd,
int observe_offset,
int duration );
136 int monthsInYear(
int year );
137 int daysInMonth(
int year,
int month );
138 int julianDay(
int year,
int month,
int day );
139 void julianDayToDate(
int jd,
int *year,
int *month,
int *day );
140 QDate easter(
int year );
141 QDate pascha(
int year );
143 int conditionalOffset(
int year,
int month,
int day,
int condition );
145 void addHoliday(
const QDate &date,
int duration );
147 QByteArray m_scanData;
149 QStringList m_fileCalendarTypes;
154 bool m_traceScanning;
157 bool m_parseMetadataOnly;
158 QDate m_parseYearStart;
159 QDate m_parseYearEaster;
160 QDate m_parseYearPascha;
162 QString m_eventCalendarType;
167 int m_eventColorName;
170 std::string *m_fileToParse;
175 #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-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:06 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.