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>
- Version:
- Id
- kcalendarsystem.h,v 1.11 2003/10/07 22:09:16 mueller Exp
- 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 35 of file kcalendarsystem.cpp. References KCalendarSystem(). Referenced by KCalendarSystem(). |
|
Descructor.
Definition at line 41 of file kcalendarsystem.cpp. |
Member Function Documentation
|
Gets specific calendar type year for a given gregorian date.
Implemented in KCalendarSystemJalali. Referenced by KLocale::formatDate(), KLocale::readDate(), and yearString(). |
|
Converts a date into a year literal.
Definition at line 76 of file kcalendarsystem.cpp. References year(), and yearString(). Referenced by yearString(). |
|
Converts a year literal of a part of a string into a integer starting at the beginning of the string.
Definition at line 113 of file kcalendarsystem.cpp. References yearStringToInteger(). Referenced by KLocale::readDate(), and yearStringToInteger(). |
|
Gets specific calendar type month for a given gregorian date.
Implemented in KCalendarSystemJalali. Referenced by KLocale::formatDate(), and monthString(). |
|
Converts a date into a month literal.
Definition at line 65 of file kcalendarsystem.cpp. References month(), and monthString(). Referenced by monthString(). |
|
Converts a month literal of a part of a string into a integer starting at the beginning of the string.
Definition at line 108 of file kcalendarsystem.cpp. References monthStringToInteger(). Referenced by monthStringToInteger(), and KLocale::readDate(). |
|
Gets specific calendar type day number of month for a given date.
Implemented in KCalendarSystemJalali. Referenced by dayString(). |
|
Converts a date into a day literal.
Definition at line 54 of file kcalendarsystem.cpp. References day(), and dayString(). Referenced by dayString(). |
|
Converts a day literal of a part of a string into a integer starting at the beginning of the string.
Definition at line 103 of file kcalendarsystem.cpp. References dayStringToInteger(). Referenced by dayStringToInteger(), and KLocale::readDate(). |
|
Gets specific calendar type number of day of week number for a given date.
Implemented in KCalendarSystemJalali. |
|
Gets specific calendar type day number of year for a given date.
Implemented in 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 KCalendarSystemJalali. Referenced by KLocale::readDate(). |
|
Returns a QDate object containing a date nyears later.
Implemented in KCalendarSystemJalali. |
|
Returns a QDate object containing a date nmonths later.
Implemented in KCalendarSystemJalali. |
|
Returns a QDate object containing a date ndays later.
Implemented in KCalendarSystemJalali. |
|
Gets specific calendar type number of month for a given year.
Implemented in KCalendarSystemJalali. |
|
Gets the number of days in date whose years specified.
Implemented in KCalendarSystemJalali. |
|
Gets specific calendar type number of days in month for a given date.
Implemented in KCalendarSystemJalali. |
|
Gets the number of weeks in a specified year.
Implemented in KCalendarSystemJalali. |
|
Gets specific calendar type week number for a given date.
Implemented in KCalendarSystemJalali. |
|
Gets specific calendar type month name for a given month number If an invalid month is specified, QString::null is returned.
Implemented in KCalendarSystemJalali. Referenced by KLocale::readDate(). |
|
Gets specific calendar type month name for a given gregorian date.
Implemented in 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 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 KCalendarSystemJalali. |
|
Gets specific calendar type week day name If an invalid week day is specified, QString::null is returned.
Implemented in KCalendarSystemJalali. Referenced by KLocale::readDate(). |
|
Gets specific calendar type week day name.
Implemented in KCalendarSystemJalali. |
|
Gets the first year value supported by specific calendar type algorithms.
Implemented in KCalendarSystemJalali. |
|
Gets the maximum year value supported by specific calendar type algorithms (QDate, 8000).
Implemented in KCalendarSystemJalali. |
|
Gets the day of the week traditionaly associated with pray.
Implemented in KCalendarSystemJalali. |
|
Gets the string representing the calendar.
Implemented in KCalendarSystemJalali. |
|
Gets if the calendar is lunar based.
Implemented in KCalendarSystemJalali. |
|
Gets if the calendar is lunisolar based.
Implemented in KCalendarSystemJalali. |
|
Gets if the calendar is solar based.
Implemented in KCalendarSystemJalali. |
The documentation for this class was generated from the following files: