KDECore
KCalendarSystemHebrew Class Reference
#include <kcalendarsystemhebrew.h>
Public Member Functions | |
virtual QDate | addDays (const QDate &date, int ndays) const |
virtual QDate | addMonths (const QDate &date, int nmonths) const |
virtual QDate | addYears (const QDate &date, int nyears) const |
virtual QString | calendarName () const |
virtual int | day (const QDate &date) const |
virtual int | dayOfWeek (const QDate &date) const |
virtual int | dayOfYear (const QDate &date) const |
virtual int | daysInMonth (const QDate &date) const |
virtual int | daysInYear (const QDate &date) const |
virtual QString | dayString (const QDate &pDate, bool bShort) const |
virtual int | dayStringToInteger (const QString &sNum, int &iLength) const |
virtual bool | isLunar () const |
virtual bool | isLunisolar () const |
virtual bool | isSolar () const |
KCalendarSystemHebrew (const KLocale *locale=0) | |
virtual int | maxValidYear () const |
virtual int | minValidYear () const |
virtual int | month (const QDate &date) const |
virtual QString | monthName (const QDate &date, bool shortName=false) const |
virtual QString | monthName (int month, int year, bool shortName=false) const |
virtual QString | monthNamePossessive (const QDate &date, bool shortName=false) const |
virtual QString | monthNamePossessive (int month, int year, bool shortName=false) const |
virtual int | monthsInYear (const QDate &date) const |
virtual bool | setYMD (QDate &date, int y, int m, int d) const |
virtual QString | weekDayName (const QDate &date, bool shortName=false) const |
virtual QString | weekDayName (int weekDay, bool shortName=false) const |
virtual int | weekDayOfPray () const |
virtual int | weekNumber (const QDate &date, int *yearNum=0) const |
virtual int | weeksInYear (int year) const |
virtual int | year (const QDate &date) const |
virtual QString | yearString (const QDate &pDate, bool bShort) const |
virtual int | yearStringToInteger (const QString &sNum, int &iLength) const |
virtual | ~KCalendarSystemHebrew () |
Detailed Description
For internal use only.
This is the Hebrew calendar implementation.
The Hebrew calendar is the traditional Islamic calendar used in the Midle East.
- See also:
- KLocale,KCalendarSystem,KCalendarSystemFactory
- Since:
- 3.2
Definition at line 45 of file kcalendarsystemhebrew.h.
Constructor & Destructor Documentation
KCalendarSystemHebrew::KCalendarSystemHebrew | ( | const KLocale * | locale = 0 |
) |
Constructor.
Just like KCalendarSystem::KCalendarSystem().
Definition at line 262 of file kcalendarsystemhebrew.cpp.
KCalendarSystemHebrew::~KCalendarSystemHebrew | ( | ) | [virtual] |
Definition at line 268 of file kcalendarsystemhebrew.cpp.
Member Function Documentation
Returns a QDate object containing a date ndays later.
- Parameters:
-
date The old date ndays The number of days to add
- Returns:
- The new date
Implements KCalendarSystem.
Definition at line 575 of file kcalendarsystemhebrew.cpp.
Returns a QDate object containing a date nmonths later.
- Parameters:
-
date The old date nmonths The number of months to add
- Returns:
- The new date
Implements KCalendarSystem.
Definition at line 581 of file kcalendarsystemhebrew.cpp.
Returns a QDate object containing a date nyears later.
- Parameters:
-
date The old date nyears The number of years to add
- Returns:
- The new date
Implements KCalendarSystem.
Definition at line 604 of file kcalendarsystemhebrew.cpp.
QString KCalendarSystemHebrew::calendarName | ( | ) | const [virtual] |
Gets the string representing the calendar.
Implements KCalendarSystem.
Definition at line 615 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::day | ( | const QDate & | date | ) | const [virtual] |
Gets specific calendar type day number of month for a given date.
- Parameters:
-
date gregorian date equivalent to the specific one
- Returns:
- day of the month
Implements KCalendarSystem.
Definition at line 532 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::dayOfWeek | ( | const QDate & | date | ) | const [virtual] |
Gets specific calendar type number of day of week number for a given date.
- Parameters:
-
date gregorian date
- Returns:
- day of week
Implements KCalendarSystem.
Definition at line 470 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::dayOfYear | ( | const QDate & | date | ) | const [virtual] |
Gets specific calendar type day number of year for a given date.
- Parameters:
-
date gregorian date equivalent to the specific one
- Returns:
- day number
Implements KCalendarSystem.
Definition at line 480 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::daysInMonth | ( | const QDate & | date | ) | const [virtual] |
Gets specific calendar type number of days in month for a given date.
- Parameters:
-
date gregorian date
- Returns:
- number of days for month in date
Implements KCalendarSystem.
Definition at line 488 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::daysInYear | ( | const QDate & | date | ) | const [virtual] |
Gets the number of days in date whose years specified.
- Parameters:
-
date Gregorian date equivalent to the specific one
- Returns:
- The number of days in year
Implements KCalendarSystem.
Definition at line 559 of file kcalendarsystemhebrew.cpp.
Converts a date into a day literal.
- Parameters:
-
pDate The date to convert bShort If the short version of should be used
- Returns:
- The day literal of the date
Reimplemented from KCalendarSystem.
Definition at line 638 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::dayStringToInteger | ( | const QString & | sNum, | |
int & | iLength | |||
) | const [virtual] |
Converts a day literal of a part of a string into a integer starting at the beginning of the string.
- Parameters:
-
sNum The string to parse iLength The number of QChars used, and 0 if no valid symbols was found in the string
- Returns:
- An integer corresponding to the day
Reimplemented from KCalendarSystem.
Definition at line 722 of file kcalendarsystemhebrew.cpp.
bool KCalendarSystemHebrew::isLunar | ( | ) | const [virtual] |
Gets if the calendar is lunar based.
- Returns:
- if the calendar is lunar based
Implements KCalendarSystem.
Definition at line 621 of file kcalendarsystemhebrew.cpp.
bool KCalendarSystemHebrew::isLunisolar | ( | ) | const [virtual] |
Gets if the calendar is lunisolar based.
- Returns:
- if the calendar is lunisolar based
Implements KCalendarSystem.
Definition at line 627 of file kcalendarsystemhebrew.cpp.
bool KCalendarSystemHebrew::isSolar | ( | ) | const [virtual] |
Gets if the calendar is solar based.
- Returns:
- if the calendar is solar based
Implements KCalendarSystem.
Definition at line 633 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::maxValidYear | ( | ) | const [virtual] |
Gets the maximum year value supported by specific calendar type algorithms (QDate, 8000).
- Returns:
- maximum year supported
Implements KCalendarSystem.
Definition at line 524 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::minValidYear | ( | ) | const [virtual] |
Gets the first year value supported by specific calendar type algorithms.
- Returns:
- first year supported
Implements KCalendarSystem.
Definition at line 515 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::month | ( | const QDate & | date | ) | const [virtual] |
Gets specific calendar type month for a given gregorian date.
- Parameters:
-
date gregorian date
- Returns:
- month number
Implements KCalendarSystem.
Definition at line 540 of file kcalendarsystemhebrew.cpp.
QString KCalendarSystemHebrew::monthName | ( | const QDate & | date, | |
bool | shortName = false | |||
) | const [virtual] |
Gets specific calendar type month name for a given gregorian date.
- Parameters:
-
date Gregorian date shortName Specifies if the short month name should be used
- Returns:
- The name of the month
Implements KCalendarSystem.
Definition at line 365 of file kcalendarsystemhebrew.cpp.
QString KCalendarSystemHebrew::monthName | ( | int | month, | |
int | year, | |||
bool | shortName = false | |||
) | const [virtual] |
Gets specific calendar type month name for a given month number If an invalid month is specified, QString::null is returned.
- Parameters:
-
month The month number year The year the month belongs to shortName Specifies if the short month name should be used
- Returns:
- The name of the month
Implements KCalendarSystem.
Definition at line 379 of file kcalendarsystemhebrew.cpp.
QString KCalendarSystemHebrew::monthNamePossessive | ( | const QDate & | date, | |
bool | shortName = false | |||
) | const [virtual] |
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.
- Parameters:
-
date Gregorian date shortName Specifies if the short month name should be used
- Returns:
- The possessive form of the name of the month
Implements KCalendarSystem.
Definition at line 372 of file kcalendarsystemhebrew.cpp.
QString KCalendarSystemHebrew::monthNamePossessive | ( | int | month, | |
int | year, | |||
bool | shortName = false | |||
) | const [virtual] |
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.
- Parameters:
-
month The month number year The year the month belongs to shortName Specifies if the short month name should be used
- Returns:
- The possessive form of the name of the month
Implements KCalendarSystem.
Definition at line 437 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::monthsInYear | ( | const QDate & | date | ) | const [virtual] |
Gets specific calendar type number of month for a given year.
- Parameters:
-
date The date whose year to use
- Returns:
- The number of months in that year
Implements KCalendarSystem.
Definition at line 290 of file kcalendarsystemhebrew.cpp.
Changes the date's year, month and day.
The range of the year, month and day depends on which calendar is being used.
- Parameters:
-
date Date to change y Year m Month number d Day of month
- Returns:
- true if the date is valid; otherwise returns false.
Implements KCalendarSystem.
Definition at line 443 of file kcalendarsystemhebrew.cpp.
QString KCalendarSystemHebrew::weekDayName | ( | const QDate & | date, | |
bool | shortName = false | |||
) | const [virtual] |
Gets specific calendar type week day name.
- Parameters:
-
date the date shortName short or complete day name
- Returns:
- day name
Implements KCalendarSystem.
Definition at line 463 of file kcalendarsystemhebrew.cpp.
Gets specific calendar type week day name If an invalid week day is specified, QString::null is returned.
- Parameters:
-
weekDay number of day in week (1 -> Monday) shortName short or complete day name
- Returns:
- day name
Implements KCalendarSystem.
Definition at line 457 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::weekDayOfPray | ( | ) | const [virtual] |
Gets the day of the week traditionaly associated with pray.
- Returns:
- day number
Implements KCalendarSystem.
Definition at line 569 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::weekNumber | ( | const QDate & | date, | |
int * | yearNum = 0 | |||
) | const [virtual] |
Gets specific calendar type week number for a given date.
- Parameters:
-
date gregorian date yearNum The year the date belongs to
- Returns:
- week number
Implements KCalendarSystem.
Definition at line 316 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::weeksInYear | ( | int | year | ) | const [virtual] |
Gets the number of weeks in a specified year.
- Parameters:
-
year the year
- Returns:
- number of weeks in year
Implements KCalendarSystem.
Definition at line 299 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::year | ( | const QDate & | date | ) | const [virtual] |
Gets specific calendar type year for a given gregorian date.
- Parameters:
-
date gregorian date
- Returns:
- year
Implements KCalendarSystem.
Definition at line 283 of file kcalendarsystemhebrew.cpp.
Converts a date into a year literal.
- Parameters:
-
pDate The date to convert bShort If the short version of should be used
- Returns:
- The year literal of the date
Reimplemented from KCalendarSystem.
Definition at line 651 of file kcalendarsystemhebrew.cpp.
int KCalendarSystemHebrew::yearStringToInteger | ( | const QString & | sNum, | |
int & | iLength | |||
) | const [virtual] |
Converts a year literal of a part of a string into a integer starting at the beginning of the string.
- Parameters:
-
sNum The string to parse iLength The number of QChars used, and 0 if no valid symbols was found in the string
- Returns:
- An integer corresponding to the year
Reimplemented from KCalendarSystem.
Definition at line 733 of file kcalendarsystemhebrew.cpp.
The documentation for this class was generated from the following files: