Commit ac97505f authored by Allen Winter's avatar Allen Winter

restore Jewish holidays KOrganizer plugin

CCBUG:  383896
parent a50fcf3e
#Comment it it depends against kdelibs4support
#Comment it is just too ugly --Allen
......@@ -2,6 +2,7 @@
########### next target ###############
......@@ -10,6 +11,7 @@ set(korg_hebrew_PART_SRCS
ecm_qt_declare_logging_category(korg_hebrew_PART_SRCS HEADER korganizer_hebrew_debug.h IDENTIFIER KORGANIZER_HEBREWPLUGIN_LOG CATEGORY_NAME org.kde.pim.korganizer_hebrew_plugin)
add_library(korg_hebrew MODULE ${korg_hebrew_PART_SRCS})
This diff is collapsed.
This file is part of the kholidays library.
Copyright 2014 John Layt <>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
#include <QSharedPointer>
#include <QDate>
class QCalendarSystemPrivate;
class QCalendarSystem
enum CalendarSystem {
DefaultCalendar = 0,
GregorianCalendar = 1,
ChineseCalendar = 2,
CopticCalendar = 3,
EthiopicCalendar = 4,
EthiopicAmeteAlemCalendar = 5,
HebrewCalendar = 6,
IndianNationalCalendar = 7,
IslamicCalendar = 8,
IslamicCivilCalendar = 9,
ISO8601Calendar = 10,
JapaneseCalendar = 11,
JulianCalendar = 12,
PersianCalendar = 13,
ROCCalendar = 14,
ThaiCalendar = 15,
LastCalendar = ThaiCalendar
explicit QCalendarSystem(QCalendarSystem::CalendarSystem calendar = QCalendarSystem::DefaultCalendar);
QCalendarSystem &operator=(const QCalendarSystem &other);
QCalendarSystem::CalendarSystem calendarSystem() const;
QDate epoch() const;
QDate earliestValidDate() const;
QDate latestValidDate() const;
int maximumMonthsInYear() const;
int maximumDaysInYear() const;
int maximumDaysInMonth() const;
bool isValid(const QDate &date) const;
bool isValid(int year, int month, int day) const;
bool isValid(int year, int dayOfYear) const;
QDate date(int year, int month, int day) const;
QDate date(int year, int dayOfYear) const;
void getDate(const QDate &date, int *year, int *month, int *day) const;
int year(const QDate &date) const;
int month(const QDate &date) const;
int day(const QDate &date) const;
int quarter(const QDate &date) const;
int quarter(int year, int month, int day) const;
int dayOfYear(const QDate &date) const;
int dayOfYear(int year, int month, int day) const;
int dayOfWeek(const QDate &date) const;
int dayOfWeek(int year, int month, int day) const;
int weekNumber(const QDate &date, int *yearNum = nullptr) const;
int weekNumber(int year, int month, int day, int *yearNum = nullptr) const;
int monthsInYear(const QDate &date) const;
int monthsInYear(int year) const;
int weeksInYear(const QDate &date) const;
int weeksInYear(int year) const;
int daysInYear(const QDate &date) const;
int daysInYear(int year) const;
int daysInMonth(const QDate &date) const;
int daysInMonth(int year, int month) const;
int daysInWeek() const;
bool isLeapYear(const QDate &date) const;
bool isLeapYear(int year) const;
QDate addYears(const QDate &date, int years) const;
QDate addMonths(const QDate &date, int months) const;
QDate addDays(const QDate &date, int days) const;
int yearsDifference(const QDate &fromDate, const QDate &toDate) const;
int monthsDifference(const QDate &fromDate, const QDate &toDate) const;
qint64 daysDifference(const QDate &fromDate, const QDate &toDate) const;
void dateDifference(const QDate &fromDate, const QDate &toDate,
int *years, int *months, int *days, int *direction) const;
QDate firstDayOfYear(const QDate &date) const;
QDate firstDayOfYear(int year) const;
QDate lastDayOfYear(const QDate &date) const;
QDate lastDayOfYear(int year) const;
QDate firstDayOfMonth(const QDate &date) const;
QDate firstDayOfMonth(int year, int month) const;
QDate lastDayOfMonth(const QDate &date) const;
QDate lastDayOfMonth(int year, int month) const;
QSharedDataPointer<QCalendarSystemPrivate> d;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment