KCalendarSystemJalali Class Reference
Jalali calendar type implementation. More...
#include <kcalendarsystemjalali.h>
Inheritance diagram for KCalendarSystemJalali:

Public Member Functions | |
KCalendarSystemJalali (const KLocale *locale=0) | |
virtual int | year (const QDate &date) const |
virtual int | month (const QDate &date) const |
virtual int | day (const QDate &date) const |
virtual int | dayOfWeek (const QDate &date) const |
virtual int | dayOfYear (const QDate &date) const |
virtual bool | setYMD (QDate &date, int y, int m, int d) const |
virtual QDate | addYears (const QDate &date, int nyears) const |
virtual QDate | addMonths (const QDate &date, int nmonths) const |
virtual QDate | addDays (const QDate &date, int ndays) const |
virtual int | monthsInYear (const QDate &date) const |
virtual int | daysInYear (const QDate &date) const |
virtual int | daysInMonth (const QDate &date) const |
virtual int | weeksInYear (int year) const |
virtual int | weekNumber (const QDate &date, int *yearNum=0) const |
virtual QString | monthName (const QDate &date, bool shortName=false) const |
virtual QString | monthNamePossessive (const QDate &date, bool shortName=false) const |
virtual QString | weekDayName (int weekDay, bool shortName=false) const |
virtual QString | weekDayName (const QDate &date, bool shortName=false) const |
virtual QString | monthNamePossessive (int month, int year, bool shortName=false) const |
virtual QString | monthName (int month, int year, bool shortName=false) const |
virtual int | minValidYear () const |
virtual int | maxValidYear () const |
virtual int | weekDayOfPray () const |
virtual QString | calendarName () const |
virtual bool | isLunar () const |
virtual bool | isLunisolar () const |
virtual bool | isSolar () const |
Detailed Description
Jalali calendar type implementation.
Definition at line 36 of file kcalendarsystemjalali.h.
Member Function Documentation
|
Gets specific calendar type year for a given gregorian date.
Implements KCalendarSystem. Definition at line 212 of file kcalendarsystemjalali.cpp. References endl(), and year(). Referenced by year(). |
|
Gets specific calendar type month for a given gregorian date.
Implements KCalendarSystem. Definition at line 221 of file kcalendarsystemjalali.cpp. References endl(), and month(). Referenced by month(). |
|
Gets specific calendar type day number of month for a given date.
Implements KCalendarSystem. Definition at line 230 of file kcalendarsystemjalali.cpp. Referenced by day(). |
|
Gets specific calendar type number of day of week number for a given date.
Implements KCalendarSystem. Definition at line 239 of file kcalendarsystemjalali.cpp. References QDate::dayOfWeek(), and dayOfWeek(). Referenced by dayOfWeek(), and weekNumber(). |
|
Gets specific calendar type day number of year for a given date.
Implements KCalendarSystem. Definition at line 247 of file kcalendarsystemjalali.cpp. References dayOfYear(), QDate::daysTo(), and setYMD(). Referenced by dayOfYear(), and weekNumber(). |
|
Changes the date's year, month and day. The range of the year, month and day depends on which calendar is being used.
Implements KCalendarSystem. Definition at line 256 of file kcalendarsystemjalali.cpp. References maxValidYear(), QDate::setYMD(), and setYMD(). Referenced by addMonths(), addYears(), dayOfYear(), setYMD(), and weekNumber(). |
|
Returns a QDate object containing a date nyears later.
Implements KCalendarSystem. Definition at line 273 of file kcalendarsystemjalali.cpp. References addYears(), and setYMD(). Referenced by addYears(). |
|
Returns a QDate object containing a date nmonths later.
Implements KCalendarSystem. Definition at line 282 of file kcalendarsystemjalali.cpp. References addMonths(), and setYMD(). Referenced by addMonths(). |
|
Returns a QDate object containing a date ndays later.
Implements KCalendarSystem. Definition at line 305 of file kcalendarsystemjalali.cpp. References QDate::addDays(), and addDays(). Referenced by addDays(), and weekNumber(). |
|
Gets specific calendar type number of month for a given year.
Implements KCalendarSystem. Definition at line 310 of file kcalendarsystemjalali.cpp. References monthsInYear(). Referenced by monthsInYear(). |
|
Gets the number of days in date whose years specified.
Implements KCalendarSystem. Definition at line 317 of file kcalendarsystemjalali.cpp. References daysInYear(). Referenced by daysInYear(), and weekNumber(). |
|
Gets specific calendar type number of days in month for a given date.
Implements KCalendarSystem. Definition at line 329 of file kcalendarsystemjalali.cpp. References QDate::day(), daysInMonth(), QDate::month(), and QDate::year(). Referenced by daysInMonth(). |
|
Gets the number of weeks in a specified year.
Implements KCalendarSystem. Definition at line 335 of file kcalendarsystemjalali.cpp. References weeksInYear(). Referenced by weekNumber(), and weeksInYear(). |
|
Gets specific calendar type week number for a given date.
Implements KCalendarSystem. Definition at line 343 of file kcalendarsystemjalali.cpp. References addDays(), dayOfWeek(), dayOfYear(), daysInYear(), QDate::daysTo(), setYMD(), weekNumber(), and weeksInYear(). Referenced by weekNumber(). |
|
Gets specific calendar type month name for a given gregorian date.
Implements KCalendarSystem. Definition at line 448 of file kcalendarsystemjalali.cpp. References monthName(). Referenced by monthName(), and monthNamePossessive(). |
|
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.
Implements KCalendarSystem. Definition at line 457 of file kcalendarsystemjalali.cpp. References monthName(), and monthNamePossessive(). Referenced by monthNamePossessive(). |
|
Gets specific calendar type week day name If an invalid week day is specified, QString::null is returned.
Implements KCalendarSystem. Definition at line 470 of file kcalendarsystemjalali.cpp. References KLocale::translate(), and weekDayName(). Referenced by weekDayName(). |
|
Gets specific calendar type week day name.
Implements KCalendarSystem. Definition at line 512 of file kcalendarsystemjalali.cpp. References weekDayName(). |
|
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.
Implements KCalendarSystem. Definition at line 463 of file kcalendarsystemjalali.cpp. References monthName(), and monthNamePossessive(). |
|
Gets specific calendar type month name for a given month number If an invalid month is specified, QString::null is returned.
Implements KCalendarSystem. Definition at line 383 of file kcalendarsystemjalali.cpp. References monthName(). |
|
Gets the first year value supported by specific calendar type algorithms.
Implements KCalendarSystem. Definition at line 519 of file kcalendarsystemjalali.cpp. |
|
Gets the maximum year value supported by specific calendar type algorithms (QDate, 8000).
Implements KCalendarSystem. Definition at line 527 of file kcalendarsystemjalali.cpp. Referenced by setYMD(). |
|
Gets the day of the week traditionaly associated with pray.
Implements KCalendarSystem. Definition at line 538 of file kcalendarsystemjalali.cpp. |
|
Gets the string representing the calendar.
Implements KCalendarSystem. Definition at line 542 of file kcalendarsystemjalali.cpp. |
|
Gets if the calendar is lunar based.
Implements KCalendarSystem. Definition at line 547 of file kcalendarsystemjalali.cpp. |
|
Gets if the calendar is lunisolar based.
Implements KCalendarSystem. Definition at line 552 of file kcalendarsystemjalali.cpp. |
|
Gets if the calendar is solar based.
Implements KCalendarSystem. Definition at line 557 of file kcalendarsystemjalali.cpp. |
The documentation for this class was generated from the following files: