KDECore
#include <kcalendarsystemprivate_p.h>

Public Member Functions | |
KCalendarSystemPrivate (KCalendarSystem *q) | |
virtual | ~KCalendarSystemPrivate () |
void | addEra (char direction, int offset, const QDate &startDate, int startYear, const QDate &endDate, const QString &name, const QString &shortName, const QString &format) |
int | addYears (int startYear, int yearsToAdd) const |
int | applyShortYearWindow (int inputYear) const |
virtual KLocale::CalendarSystem | calendarSystem () const |
KSharedConfig::Ptr | config () |
virtual void | dateDifference (const QDate &fromDate, const QDate &toDate, int *yearsDiff, int *monthsDiff, int *daysDiff, int *direction) const |
int | dayOfWeek (const QDate &date) const |
int | dayOfYear (const QDate &date) const |
virtual int | daysInMonth (int year, int month) const |
virtual int | daysInWeek () const |
virtual int | daysInYear (int year) const |
int | differenceYearNumbers (int fromYear, int toYear) const |
virtual int | earliestValidYear () const |
KCalendarEra | era (const QDate &eraDate) const |
KCalendarEra | era (const QString &eraName, int yearInEra) const |
QList< KCalendarEra > * | eraList () const |
QDate | firstDayOfMonth (int year, int month) const |
QDate | firstDayOfYear (int year) const |
virtual bool | hasLeapMonths () const |
virtual bool | hasYearZero () const |
virtual int | integerFromString (const QString &string, int maxLength, int &readLength) const |
QDate | invalidDate () const |
virtual bool | isLeapYear (int year) const |
virtual int | isoWeekNumber (const QDate &date, int *yearNum) const |
virtual int | isoWeeksInYear (int year) const |
QDate | lastDayOfMonth (int year, int month) const |
QDate | lastDayOfYear (int year) const |
virtual int | latestValidYear () const |
void | loadConfig (const QString &calendarType) |
virtual void | loadDefaultEraList () |
void | loadEraList (const KConfigGroup &cg) |
void | loadShortYearWindowStartYear (const KConfigGroup &cg) |
const KLocale * | locale () const |
virtual int | maxDaysInWeek () const |
virtual int | maxMonthsInYear () const |
virtual QString | monthName (int month, int year, KLocale::DateTimeComponentFormat format, bool possessive=false) const |
virtual int | monthsDifference (const QDate &fromDate, const QDate &toDate) const |
virtual int | monthsInYear (int year) const |
virtual int | regularWeekNumber (const QDate &date, int weekStartDay, int firstWeekNumber, int *weekYear) const |
virtual int | regularWeeksInYear (int year, int weekStartDay, int firstWeekNumber) const |
bool | setAnyDate (QDate &date, int year, int month, int day) const |
int | shortYearWindowStartYear () const |
QString | simpleDateString (const QString &str) const |
virtual int | simpleWeekNumber (const QDate &date, int *yearNum) const |
virtual int | simpleWeeksInYear (int year) const |
virtual QString | stringFromInteger (int number, int padWidth, QChar padChar, KLocale::DigitSet digitSet) const |
virtual QString | stringFromInteger (int number, int padWidth=0, QChar padChar=QLatin1Char('0')) const |
virtual int | week (const QDate &date, KLocale::WeekNumberSystem weekNumberSystem, int *yearNum) const |
virtual QString | weekDayName (int weekDay, KLocale::DateTimeComponentFormat format) const |
virtual int | weeksInYear (int year, KLocale::WeekNumberSystem weekNumberSystem) const |
virtual int | yearsDifference (const QDate &fromDate, const QDate &toDate) const |
Public Attributes | |
KSharedConfig::Ptr | m_config |
QList< KCalendarEra > * | m_eraList |
const KLocale * | m_locale |
int | m_shortYearWindowStartYear |
const KCalendarSystem * | q |
Detailed Description
Definition at line 31 of file kcalendarsystemprivate_p.h.
Constructor & Destructor Documentation
◆ KCalendarSystemPrivate()
|
explicit |
Definition at line 247 of file kcalendarsystem.cpp.
◆ ~KCalendarSystemPrivate()
|
virtual |
Definition at line 254 of file kcalendarsystem.cpp.
Member Function Documentation
◆ addEra()
void KCalendarSystemPrivate::addEra | ( | char | direction, |
int | offset, | ||
const QDate & | startDate, | ||
int | startYear, | ||
const QDate & | endDate, | ||
const QString & | name, | ||
const QString & | shortName, | ||
const QString & | format | ||
) |
Definition at line 1000 of file kcalendarsystem.cpp.
◆ addYears()
int KCalendarSystemPrivate::addYears | ( | int | startYear, |
int | yearsToAdd | ||
) | const |
Definition at line 808 of file kcalendarsystem.cpp.
◆ applyShortYearWindow()
int KCalendarSystemPrivate::applyShortYearWindow | ( | int | inputYear | ) | const |
Definition at line 1029 of file kcalendarsystem.cpp.
◆ calendarSystem()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 261 of file kcalendarsystem.cpp.
◆ config()
KSharedConfig::Ptr KCalendarSystemPrivate::config | ( | ) |
Definition at line 1055 of file kcalendarsystem.cpp.
◆ dateDifference()
|
virtual |
Definition at line 567 of file kcalendarsystem.cpp.
◆ dayOfWeek()
int KCalendarSystemPrivate::dayOfWeek | ( | const QDate & | date | ) | const |
Definition at line 869 of file kcalendarsystem.cpp.
◆ dayOfYear()
int KCalendarSystemPrivate::dayOfYear | ( | const QDate & | date | ) | const |
Definition at line 860 of file kcalendarsystem.cpp.
◆ daysInMonth()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 285 of file kcalendarsystem.cpp.
◆ daysInWeek()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 315 of file kcalendarsystem.cpp.
◆ daysInYear()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 304 of file kcalendarsystem.cpp.
◆ differenceYearNumbers()
int KCalendarSystemPrivate::differenceYearNumbers | ( | int | fromYear, |
int | toYear | ||
) | const |
Definition at line 825 of file kcalendarsystem.cpp.
◆ earliestValidYear()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 371 of file kcalendarsystem.cpp.
◆ era() [1/2]
KCalendarEra KCalendarSystemPrivate::era | ( | const QDate & | eraDate | ) | const |
Definition at line 922 of file kcalendarsystem.cpp.
◆ era() [2/2]
KCalendarEra KCalendarSystemPrivate::era | ( | const QString & | eraName, |
int | yearInEra | ||
) | const |
Definition at line 932 of file kcalendarsystem.cpp.
◆ eraList()
QList< KCalendarEra > * KCalendarSystemPrivate::eraList | ( | ) | const |
Definition at line 917 of file kcalendarsystem.cpp.
◆ firstDayOfMonth()
QDate KCalendarSystemPrivate::firstDayOfMonth | ( | int | year, |
int | month | ||
) | const |
Definition at line 893 of file kcalendarsystem.cpp.
◆ firstDayOfYear()
QDate KCalendarSystemPrivate::firstDayOfYear | ( | int | year | ) | const |
Definition at line 878 of file kcalendarsystem.cpp.
◆ hasLeapMonths()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 341 of file kcalendarsystem.cpp.
◆ hasYearZero()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 348 of file kcalendarsystem.cpp.
◆ integerFromString()
|
virtual |
Definition at line 750 of file kcalendarsystem.cpp.
◆ invalidDate()
QDate KCalendarSystemPrivate::invalidDate | ( | ) | const |
Definition at line 840 of file kcalendarsystem.cpp.
◆ isLeapYear()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 322 of file kcalendarsystem.cpp.
◆ isoWeekNumber()
|
virtual |
Definition at line 427 of file kcalendarsystem.cpp.
◆ isoWeeksInYear()
|
virtual |
Definition at line 537 of file kcalendarsystem.cpp.
◆ lastDayOfMonth()
QDate KCalendarSystemPrivate::lastDayOfMonth | ( | int | year, |
int | month | ||
) | const |
Definition at line 900 of file kcalendarsystem.cpp.
◆ lastDayOfYear()
QDate KCalendarSystemPrivate::lastDayOfYear | ( | int | year | ) | const |
Definition at line 885 of file kcalendarsystem.cpp.
◆ latestValidYear()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 380 of file kcalendarsystem.cpp.
◆ loadConfig()
void KCalendarSystemPrivate::loadConfig | ( | const QString & | calendarType | ) |
Definition at line 1064 of file kcalendarsystem.cpp.
◆ loadDefaultEraList()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 269 of file kcalendarsystem.cpp.
◆ loadEraList()
void KCalendarSystemPrivate::loadEraList | ( | const KConfigGroup & | cg | ) |
Definition at line 946 of file kcalendarsystem.cpp.
◆ loadShortYearWindowStartYear()
void KCalendarSystemPrivate::loadShortYearWindowStartYear | ( | const KConfigGroup & | cg | ) |
Definition at line 1044 of file kcalendarsystem.cpp.
◆ locale()
const KLocale * KCalendarSystemPrivate::locale | ( | ) | const |
Definition at line 908 of file kcalendarsystem.cpp.
◆ maxDaysInWeek()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 355 of file kcalendarsystem.cpp.
◆ maxMonthsInYear()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 362 of file kcalendarsystem.cpp.
◆ monthName()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 387 of file kcalendarsystem.cpp.
◆ monthsDifference()
|
virtual |
Definition at line 703 of file kcalendarsystem.cpp.
◆ monthsInYear()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 277 of file kcalendarsystem.cpp.
◆ regularWeekNumber()
|
virtual |
Definition at line 482 of file kcalendarsystem.cpp.
◆ regularWeeksInYear()
|
virtual |
Definition at line 553 of file kcalendarsystem.cpp.
◆ setAnyDate()
bool KCalendarSystemPrivate::setAnyDate | ( | QDate & | date, |
int | year, | ||
int | month, | ||
int | day | ||
) | const |
Definition at line 798 of file kcalendarsystem.cpp.
◆ shortYearWindowStartYear()
int KCalendarSystemPrivate::shortYearWindowStartYear | ( | ) | const |
Definition at line 1024 of file kcalendarsystem.cpp.
◆ simpleDateString()
Definition at line 846 of file kcalendarsystem.cpp.
◆ simpleWeekNumber()
|
virtual |
Definition at line 508 of file kcalendarsystem.cpp.
◆ simpleWeeksInYear()
|
virtual |
Definition at line 559 of file kcalendarsystem.cpp.
◆ stringFromInteger() [1/2]
|
virtual |
Definition at line 788 of file kcalendarsystem.cpp.
◆ stringFromInteger() [2/2]
|
virtual |
Definition at line 781 of file kcalendarsystem.cpp.
◆ week()
|
virtual |
Definition at line 406 of file kcalendarsystem.cpp.
◆ weekDayName()
|
virtual |
Reimplemented in KCalendarSystemCopticPrivate, and KCalendarSystemGregorianPrivate.
Definition at line 398 of file kcalendarsystem.cpp.
◆ weeksInYear()
|
virtual |
Definition at line 519 of file kcalendarsystem.cpp.
◆ yearsDifference()
|
virtual |
Definition at line 653 of file kcalendarsystem.cpp.
Member Data Documentation
◆ m_config
KSharedConfig::Ptr KCalendarSystemPrivate::m_config |
Definition at line 106 of file kcalendarsystemprivate_p.h.
◆ m_eraList
QList<KCalendarEra>* KCalendarSystemPrivate::m_eraList |
Definition at line 107 of file kcalendarsystemprivate_p.h.
◆ m_locale
const KLocale* KCalendarSystemPrivate::m_locale |
Definition at line 105 of file kcalendarsystemprivate_p.h.
◆ m_shortYearWindowStartYear
int KCalendarSystemPrivate::m_shortYearWindowStartYear |
Definition at line 108 of file kcalendarsystemprivate_p.h.
◆ q
const KCalendarSystem* KCalendarSystemPrivate::q |
Definition at line 104 of file kcalendarsystemprivate_p.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.