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=0, QChar padChar=QLatin1Char('0')) const |
virtual QString | stringFromInteger (int number, int padWidth, QChar padChar, KLocale::DigitSet digitSet) 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
|
explicit |
Definition at line 247 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 254 of file kcalendarsystem.cpp.
Member Function Documentation
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.
int KCalendarSystemPrivate::addYears | ( | int | startYear, |
int | yearsToAdd | ||
) | const |
Definition at line 808 of file kcalendarsystem.cpp.
int KCalendarSystemPrivate::applyShortYearWindow | ( | int | inputYear | ) | const |
Definition at line 1029 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 261 of file kcalendarsystem.cpp.
KSharedConfig::Ptr KCalendarSystemPrivate::config | ( | ) |
Definition at line 1055 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 567 of file kcalendarsystem.cpp.
int KCalendarSystemPrivate::dayOfWeek | ( | const QDate & | date | ) | const |
Definition at line 869 of file kcalendarsystem.cpp.
int KCalendarSystemPrivate::dayOfYear | ( | const QDate & | date | ) | const |
Definition at line 860 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 285 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 315 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 304 of file kcalendarsystem.cpp.
int KCalendarSystemPrivate::differenceYearNumbers | ( | int | fromYear, |
int | toYear | ||
) | const |
Definition at line 825 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 371 of file kcalendarsystem.cpp.
KCalendarEra KCalendarSystemPrivate::era | ( | const QDate & | eraDate | ) | const |
Definition at line 922 of file kcalendarsystem.cpp.
KCalendarEra KCalendarSystemPrivate::era | ( | const QString & | eraName, |
int | yearInEra | ||
) | const |
Definition at line 932 of file kcalendarsystem.cpp.
QList< KCalendarEra > * KCalendarSystemPrivate::eraList | ( | ) | const |
Definition at line 917 of file kcalendarsystem.cpp.
QDate KCalendarSystemPrivate::firstDayOfMonth | ( | int | year, |
int | month | ||
) | const |
Definition at line 893 of file kcalendarsystem.cpp.
QDate KCalendarSystemPrivate::firstDayOfYear | ( | int | year | ) | const |
Definition at line 878 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 341 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 348 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 750 of file kcalendarsystem.cpp.
QDate KCalendarSystemPrivate::invalidDate | ( | ) | const |
Definition at line 840 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 322 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 427 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 537 of file kcalendarsystem.cpp.
QDate KCalendarSystemPrivate::lastDayOfMonth | ( | int | year, |
int | month | ||
) | const |
Definition at line 900 of file kcalendarsystem.cpp.
QDate KCalendarSystemPrivate::lastDayOfYear | ( | int | year | ) | const |
Definition at line 885 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 380 of file kcalendarsystem.cpp.
void KCalendarSystemPrivate::loadConfig | ( | const QString & | calendarType | ) |
Definition at line 1064 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 269 of file kcalendarsystem.cpp.
void KCalendarSystemPrivate::loadEraList | ( | const KConfigGroup & | cg | ) |
Definition at line 946 of file kcalendarsystem.cpp.
void KCalendarSystemPrivate::loadShortYearWindowStartYear | ( | const KConfigGroup & | cg | ) |
Definition at line 1044 of file kcalendarsystem.cpp.
const KLocale * KCalendarSystemPrivate::locale | ( | ) | const |
Definition at line 908 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 355 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 362 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 387 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 703 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 277 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 482 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 553 of file kcalendarsystem.cpp.
Definition at line 798 of file kcalendarsystem.cpp.
int KCalendarSystemPrivate::shortYearWindowStartYear | ( | ) | const |
Definition at line 1024 of file kcalendarsystem.cpp.
Definition at line 846 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 508 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 559 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 781 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 788 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 406 of file kcalendarsystem.cpp.
|
virtual |
Reimplemented in KCalendarSystemGregorianPrivate, and KCalendarSystemCopticPrivate.
Definition at line 398 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 519 of file kcalendarsystem.cpp.
|
virtual |
Definition at line 653 of file kcalendarsystem.cpp.
Member Data Documentation
KSharedConfig::Ptr KCalendarSystemPrivate::m_config |
Definition at line 106 of file kcalendarsystemprivate_p.h.
QList<KCalendarEra>* KCalendarSystemPrivate::m_eraList |
Definition at line 107 of file kcalendarsystemprivate_p.h.
const KLocale* KCalendarSystemPrivate::m_locale |
Definition at line 105 of file kcalendarsystemprivate_p.h.
int KCalendarSystemPrivate::m_shortYearWindowStartYear |
Definition at line 108 of file kcalendarsystemprivate_p.h.
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.