KCalendarSystemGregorian Class Reference
Default derived, gregorian calendar class. More...
#include <kcalendarsystem.h>
Inheritance diagram for KCalendarSystemGregorian:

Public Member Functions | |
QString | monthName (const QDate &date, bool shortName) |
Gets specific calendar type month name for a given gregorian date. | |
int | year (const QDate &date) |
Gets specific calendar type year for a given gregorian date. | |
int | month (const QDate &date) |
Gets specific calendar type month for a given gregorian date. | |
QString | formatDate (const QDate &date) |
Gets specific calendar type day/month/year formatted text date for a given gregorian date. | |
void | nextMonthDate (QDate &date) |
Gets specific calendar type (its gregorian equivalent) next month date for a given gregorian date. | |
void | previousMonthDate (QDate &date) |
Gets specific calendar type (its gregorian equivalent) previous month date for a given gregorian date. | |
void | nextYearDate (QDate &date) |
Gets specific calendar type next year date (its gregorian equivalent) for a given gregorian date. | |
void | previousYearDate (QDate &date) |
Gets specific calendar type (its gregorian equivalent) previous year date for a given gregorian date. | |
int | monthsInYear (int year) |
Gets specific calendar type number of month for a given year. | |
QString | monthName (int month) |
Gets specific calendar type month name. | |
void | constructDateInMonth (QDate &date, int month) |
Given a month, construct a valid date in given date's year. | |
void | constructDateInYear (QDate &date, int year) |
Given a year, construct a valid date. | |
QDate | parseDate (QString text) |
Convert a formatted day/month/year string to a valid date object. | |
QString | weekDayName (int col, bool shortName) |
Gets specific calendar type week day name. | |
int | dayOfTheWeek (const QDate &date) |
Gets specific calendar type number of day of week number for a given date. | |
int | numberOfDaysInMonth (const QDate &date) |
Gets specific calendar type number of days in month for a given date. | |
int | numberOfDaysPrevMonth (const QDate &date) |
Gets specific calendar type number of days in previous month for a given date. | |
int | maxValidYear () |
Gets the maximum year value supported by specific calendar type algorithms (QDate, 8000). | |
int | day (const QDate &date) |
Gets specific calendar type day number in month for a given date. | |
int | numberOfDayInYear (const QDate &date) |
Gets specific calendar type day number in year for a given date. | |
virtual int | weekDayOfPray () |
Gets the day of the week traditionaly associated with pray. | |
void | printType () |
Just a small debugging test ;). |
Detailed Description
Default derived, gregorian calendar class.
Definition at line 198 of file kcalendarsystem.h.
Member Function Documentation
|
Gets specific calendar type month name for a given gregorian date.
Implements KCalendarSystem. Definition at line 27 of file kcalendarsystem.cpp. References QDate::month(). |
|
Gets specific calendar type year for a given gregorian date.
Implements KCalendarSystem. Definition at line 43 of file kcalendarsystem.cpp. References QDate::year(). |
|
Gets specific calendar type month for a given gregorian date.
Implements KCalendarSystem. Definition at line 197 of file kcalendarsystem.cpp. References QDate::month(). |
|
Gets specific calendar type day/month/year formatted text date for a given gregorian date.
Implements KCalendarSystem. Definition at line 35 of file kcalendarsystem.cpp. |
|
Gets specific calendar type (its gregorian equivalent) next month date for a given gregorian date.
Implements KCalendarSystem. Definition at line 49 of file kcalendarsystem.cpp. References QDate::day(), day(), QDate::daysInMonth(), QDate::month(), QDate::setYMD(), and QDate::year(). |
|
Gets specific calendar type (its gregorian equivalent) previous month date for a given gregorian date.
Implements KCalendarSystem. Definition at line 66 of file kcalendarsystem.cpp. References QDate::day(), day(), QDate::daysInMonth(), QDate::month(), QDate::setYMD(), and QDate::year(). |
|
Gets specific calendar type next year date (its gregorian equivalent) for a given gregorian date.
Implements KCalendarSystem. Definition at line 85 of file kcalendarsystem.cpp. References QDate::day(), day(), QDate::daysInMonth(), QDate::month(), QDate::setYMD(), and QDate::year(). |
|
Gets specific calendar type (its gregorian equivalent) previous year date for a given gregorian date.
Implements KCalendarSystem. Definition at line 98 of file kcalendarsystem.cpp. References QDate::day(), day(), QDate::daysInMonth(), QDate::month(), QDate::setYMD(), and QDate::year(). |
|
Gets specific calendar type number of month for a given year.
Implements KCalendarSystem. Definition at line 111 of file kcalendarsystem.cpp. |
|
Gets specific calendar type month name.
Implements KCalendarSystem. Definition at line 118 of file kcalendarsystem.cpp. |
|
Given a month, construct a valid date in given date's year.
Implements KCalendarSystem. Definition at line 126 of file kcalendarsystem.cpp. References QDate::day(), day(), QDate::daysInMonth(), QDate::setYMD(), and QDate::year(). |
|
Given a year, construct a valid date.
Implements KCalendarSystem. Definition at line 137 of file kcalendarsystem.cpp. References QDate::day(), day(), QDate::daysInMonth(), QDate::month(), and QDate::setYMD(). |
|
Convert a formatted day/month/year string to a valid date object.
Implements KCalendarSystem. Definition at line 149 of file kcalendarsystem.cpp. |
|
Gets specific calendar type week day name.
Implements KCalendarSystem. Definition at line 156 of file kcalendarsystem.cpp. |
|
Gets specific calendar type number of day of week number for a given date.
Implements KCalendarSystem. Definition at line 163 of file kcalendarsystem.cpp. References QDate::dayOfWeek(). |
|
Gets specific calendar type number of days in month for a given date.
Implements KCalendarSystem. Definition at line 168 of file kcalendarsystem.cpp. References QDate::daysInMonth(). |
|
Gets specific calendar type number of days in previous month for a given date.
Implements KCalendarSystem. Definition at line 174 of file kcalendarsystem.cpp. References QDate::daysInMonth(), QDate::month(), QDate::setYMD(), and QDate::year(). |
|
Gets the maximum year value supported by specific calendar type algorithms (QDate, 8000).
Implements KCalendarSystem. Definition at line 187 of file kcalendarsystem.cpp. |
|
Gets specific calendar type day number in month for a given date.
Implements KCalendarSystem. Definition at line 192 of file kcalendarsystem.cpp. References QDate::day(). Referenced by constructDateInMonth(), constructDateInYear(), nextMonthDate(), nextYearDate(), previousMonthDate(), and previousYearDate(). |
|
Gets specific calendar type day number in year for a given date.
Implements KCalendarSystem. Definition at line 202 of file kcalendarsystem.cpp. References QDate::dayOfYear(). |
|
Gets the day of the week traditionaly associated with pray.
Implements KCalendarSystem. Definition at line 207 of file kcalendarsystem.cpp. |
|
Just a small debugging test ;).
Implements KCalendarSystem. Definition at line 211 of file kcalendarsystem.cpp. |
The documentation for this class was generated from the following files: