KCalendarSystem Class Reference
CalendarSystem abstract class, default derived kde gregorian class and factory class. More...
#include <kcalendarsystem.h>
Inheritance diagram for KCalendarSystem:

Public Member Functions | |
KCalendarSystem (const KLocale *locale=0) | |
virtual | ~KCalendarSystem () |
virtual int | year (const QDate &date) const =0 |
virtual QString | yearString (const QDate &pDate, bool bShort) const |
virtual int | yearStringToInteger (const QString &sNum, int &iLength) const |
virtual int | month (const QDate &date) const =0 |
virtual QString | monthString (const QDate &pDate, bool bShort) const |
virtual int | monthStringToInteger (const QString &sNum, int &iLength) const |
virtual int | day (const QDate &date) const =0 |
virtual QString | dayString (const QDate &pDate, bool bShort) const |
virtual int | dayStringToInteger (const QString &sNum, int &iLength) const |
virtual int | dayOfWeek (const QDate &date) const =0 |
virtual int | dayOfYear (const QDate &date) const =0 |
virtual bool | setYMD (QDate &date, int y, int m, int d) const =0 |
virtual QDate | addYears (const QDate &date, int nyears) const =0 |
virtual QDate | addMonths (const QDate &date, int nmonths) const =0 |
virtual QDate | addDays (const QDate &date, int ndays) const =0 |
virtual int | monthsInYear (const QDate &date) const =0 |
virtual int | daysInYear (const QDate &date) const =0 |
virtual int | daysInMonth (const QDate &date) const =0 |
virtual int | weeksInYear (int year) const =0 |
virtual int | weekNumber (const QDate &date, int *yearNum=0) const =0 |
virtual QString | monthName (int month, int year, bool shortName=false) const =0 |
virtual QString | monthName (const QDate &date, bool shortName=false) const =0 |
virtual QString | monthNamePossessive (int month, int year, bool shortName=false) const =0 |
virtual QString | monthNamePossessive (const QDate &date, bool shortName=false) const =0 |
virtual QString | weekDayName (int weekDay, bool shortName=false) const =0 |
virtual QString | weekDayName (const QDate &date, bool shortName=false) const =0 |
virtual int | minValidYear () const =0 |
virtual int | maxValidYear () const =0 |
virtual int | weekDayOfPray () const =0 |
virtual QString | calendarName () const =0 |
virtual bool | isLunar () const =0 |
virtual bool | isLunisolar () const =0 |
virtual bool | isSolar () const =0 |
Protected Member Functions | |
const KLocale * | locale () const |
Detailed Description
CalendarSystem abstract class, default derived kde gregorian class and factory class.Provides support for different calendar types for kde calendar widget and related stuff.
Derived classes must be created through KCalendarFactory class
- Author:
- Carlos Moro <cfmoro@correo.uniovi.es>
- Since:
- 3.2
Definition at line 42 of file kcalendarsystem.h.
Constructor & Destructor Documentation
|
Constructor of abstract calendar class. This will be called by the derived classes.
Definition at line 36 of file kcalendarsystem.cpp. |
|
Descructor.
Definition at line 42 of file kcalendarsystem.cpp. |
Member Function Documentation
|
Gets specific calendar type year for a given gregorian date.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. Referenced by KLocale::formatDate(), KLocale::readDate(), and yearString(). |
|
Converts a date into a year literal.
Reimplemented in KCalendarSystemHebrew. Definition at line 77 of file kcalendarsystem.cpp. References QString::length(), QString::right(), QString::setNum(), and year(). Referenced by KCalendarSystemHebrew::yearString(). |
|
Converts a year literal of a part of a string into a integer starting at the beginning of the string.
Reimplemented in KCalendarSystemGregorian, and KCalendarSystemHebrew. Definition at line 114 of file kcalendarsystem.cpp. Referenced by KCalendarSystemHebrew::dayStringToInteger(), KLocale::readDate(), KCalendarSystemHebrew::yearStringToInteger(), and KCalendarSystemGregorian::yearStringToInteger(). |
|
Gets specific calendar type month for a given gregorian date.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. Referenced by KLocale::formatDate(), and monthString(). |
|
Converts a date into a month literal.
Definition at line 66 of file kcalendarsystem.cpp. References QString::length(), month(), QString::prepend(), and QString::setNum(). |
|
Converts a month literal of a part of a string into a integer starting at the beginning of the string.
Definition at line 109 of file kcalendarsystem.cpp. Referenced by KLocale::readDate(). |
|
Gets specific calendar type day number of month for a given date.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. Referenced by dayString(). |
|
Converts a date into a day literal.
Reimplemented in KCalendarSystemHebrew. Definition at line 55 of file kcalendarsystem.cpp. References day(), QString::length(), QString::prepend(), and QString::setNum(). Referenced by KCalendarSystemHebrew::dayString(). |
|
Converts a day literal of a part of a string into a integer starting at the beginning of the string.
Reimplemented in KCalendarSystemHebrew. Definition at line 104 of file kcalendarsystem.cpp. Referenced by KLocale::readDate(). |
|
Gets specific calendar type number of day of week number for a given date.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets specific calendar type day number of year for a given date.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Changes the date's year, month and day. The range of the year, month and day depends on which calendar is being used.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. Referenced by KLocale::readDate(). |
|
Returns a QDate object containing a date nyears later.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Returns a QDate object containing a date nmonths later.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Returns a QDate object containing a date ndays later.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets specific calendar type number of month for a given year.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets the number of days in date whose years specified.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets specific calendar type number of days in month for a given date.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets the number of weeks in a specified year.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets specific calendar type week number for a given date.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets specific calendar type month name for a given month number If an invalid month is specified, QString::null is returned.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. Referenced by KLocale::readDate(). |
|
Gets specific calendar type month name for a given gregorian date.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Returns a string containing the possessive form of the month name. ("of January", "of February", etc.) It's needed in long format dates in some languages. If an invalid month is specified, QString::null is returned.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. Referenced by KLocale::readDate(). |
|
Returns a string containing the possessive form of the month name. ("of January", "of February", etc.) It's needed in long format dates in some languages.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets specific calendar type week day name If an invalid week day is specified, QString::null is returned.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. Definition at line 119 of file kcalendarsystem.cpp. References locale(), and KLocale::translate(). Referenced by KLocale::readDate(), KLocale::weekDayName(), KCalendarSystemHebrew::weekDayName(), and KCalendarSystemGregorian::weekDayName(). |
|
Gets specific calendar type week day name.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets the first year value supported by specific calendar type algorithms.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets the maximum year value supported by specific calendar type algorithms (QDate, 8000).
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets the day of the week traditionaly associated with pray.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets the string representing the calendar.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets if the calendar is lunar based.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets if the calendar is lunisolar based.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
|
Gets if the calendar is solar based.
Implemented in KCalendarSystemGregorian, KCalendarSystemHebrew, KCalendarSystemHijri, and KCalendarSystemJalali. |
The documentation for this class was generated from the following files: