24 #ifndef DIGIKAM_CAL_SYSTEM_H
25 #define DIGIKAM_CAL_SYSTEM_H
29 #include <QSharedPointer>
35 class CalSystemPrivate;
91 int day(
const QDate&
date)
const;
128 qint64
daysDifference(
const QDate& fromDate,
const QDate& toDate)
const;
131 int* years,
int* months,
int* days,
int* direction)
const;
145 QSharedDataPointer<CalSystemPrivate> d;
Definition: calsystem.h:38
int dayOfYear(const QDate &date) const
Definition: calsystem.cpp:987
QDate addDays(const QDate &date, int days) const
Definition: calsystem.cpp:1318
int weeksInYear(const QDate &date) const
Definition: calsystem.cpp:1139
QDate addMonths(const QDate &date, int months) const
Definition: calsystem.cpp:1271
bool isLeapYear(const QDate &date) const
Definition: calsystem.cpp:1230
QDate lastDayOfYear(const QDate &date) const
Definition: calsystem.cpp:1556
int daysInYear(const QDate &date) const
Definition: calsystem.cpp:1174
QDate lastDayOfMonth(const QDate &date) const
Definition: calsystem.cpp:1595
QDate firstDayOfYear(const QDate &date) const
Definition: calsystem.cpp:1539
int yearsDifference(const QDate &fromDate, const QDate &toDate) const
Definition: calsystem.cpp:1326
CalSystem::CalendarSystem calendarSystem() const
Definition: calsystem.cpp:813
QDate date(int year, int month, int day) const
Definition: calsystem.cpp:875
void getDate(const QDate &date, int *year, int *month, int *day) const
Definition: calsystem.cpp:899
CalSystem(CalSystem::CalendarSystem calendar=CalSystem::DefaultCalendar)
Definition: calsystem.cpp:797
int year(const QDate &date) const
Definition: calsystem.cpp:924
int weekNumber(const QDate &date, int *yearNum=nullptr) const
Definition: calsystem.cpp:1031
CalendarSystem
Definition: calsystem.h:42
@ GregorianCalendar
Definition: calsystem.h:44
@ CopticCalendar
Definition: calsystem.h:46
@ ISO8601Calendar
Definition: calsystem.h:53
@ HebrewCalendar
Definition: calsystem.h:49
@ JapaneseCalendar
Definition: calsystem.h:54
@ IslamicCalendar
Definition: calsystem.h:51
@ LastCalendar
Definition: calsystem.h:59
@ IndianNationalCalendar
Definition: calsystem.h:50
@ JulianCalendar
Definition: calsystem.h:55
@ PersianCalendar
Definition: calsystem.h:56
@ EthiopicCalendar
Definition: calsystem.h:47
@ ROCCalendar
Definition: calsystem.h:57
@ DefaultCalendar
Definition: calsystem.h:43
@ ChineseCalendar
Definition: calsystem.h:45
@ EthiopicAmeteAlemCalendar
Definition: calsystem.h:48
@ IslamicCivilCalendar
Definition: calsystem.h:52
@ ThaiCalendar
Definition: calsystem.h:58
QDate firstDayOfMonth(const QDate &date) const
Definition: calsystem.cpp:1582
QDate epoch() const
Definition: calsystem.cpp:818
int maximumDaysInMonth() const
Definition: calsystem.cpp:843
int monthsDifference(const QDate &fromDate, const QDate &toDate) const
Definition: calsystem.cpp:1374
bool dateDifference(const QDate &fromDate, const QDate &toDate, int *years, int *months, int *days, int *direction) const
Definition: calsystem.cpp:1439
int quarter(const QDate &date) const
Definition: calsystem.cpp:960
QDate addYears(const QDate &date, int years) const
Definition: calsystem.cpp:1254
int maximumDaysInYear() const
Definition: calsystem.cpp:838
CalSystem & operator=(const CalSystem &other)
Definition: calsystem.cpp:806
int daysInWeek() const
Definition: calsystem.cpp:1225
~CalSystem()
Definition: calsystem.cpp:802
QDate latestValidDate() const
Definition: calsystem.cpp:828
int monthsInYear(const QDate &date) const
Definition: calsystem.cpp:1115
int daysInMonth(const QDate &date) const
Definition: calsystem.cpp:1198
int dayOfWeek(const QDate &date) const
Definition: calsystem.cpp:1004
int day(const QDate &date) const
Definition: calsystem.cpp:948
QDate earliestValidDate() const
Definition: calsystem.cpp:823
bool isValid(const QDate &date) const
Definition: calsystem.cpp:848
int maximumMonthsInYear() const
Definition: calsystem.cpp:833
int month(const QDate &date) const
Definition: calsystem.cpp:936
qint64 daysDifference(const QDate &fromDate, const QDate &toDate) const
Definition: calsystem.cpp:1424
Definition: calendarplugin.cpp:38