KDECore
kcalendarsystemjalali.h
Go to the documentation of this file.00001 #ifndef KCALENDARSYSTEMJALALI_H
00002 #define KCALENDARSYSTEMJALALI_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <qdatetime.h>
00028 #include <qstring.h>
00029
00030 #include "kcalendarsystem.h"
00031
00032 class KCalendarSystemJalaliPrivate;
00036 class KDECORE_EXPORT KCalendarSystemJalali : public KCalendarSystem
00037 {
00038 public:
00040 KCalendarSystemJalali(const KLocale * locale = 0);
00041 virtual ~KCalendarSystemJalali();
00042
00043
00044
00045 virtual int year (const QDate & date) const;
00046 virtual int month (const QDate & date) const;
00047 virtual int day (const QDate & date) const;
00048 virtual int dayOfWeek (const QDate & date) const;
00049 virtual int dayOfYear (const QDate & date) const;
00050
00051 virtual bool setYMD(QDate & date, int y, int m, int d) const;
00052
00053 virtual QDate addYears(const QDate & date, int nyears) const;
00054 virtual QDate addMonths(const QDate & date, int nmonths) const;
00055 virtual QDate addDays(const QDate & date, int ndays) const;
00056
00057 virtual int monthsInYear (const QDate & date) const;
00058
00059 virtual int daysInYear (const QDate & date) const;
00060 virtual int daysInMonth (const QDate & date) const;
00061 virtual int weeksInYear(int year) const;
00062 virtual int weekNumber(const QDate& date, int * yearNum = 0) const;
00063
00064 virtual QString monthName (const QDate & date, bool shortName = false ) const;
00065 virtual QString monthNamePossessive(const QDate & date, bool shortName = false ) const;
00066 virtual QString weekDayName (int weekDay, bool shortName = false) const;
00067 virtual QString weekDayName (const QDate & date, bool shortName = false) const;
00068 virtual QString monthNamePossessive(int month, int year, bool shortName = false) const;
00069 virtual QString monthName(int month, int year, bool shortName = false) const;
00070
00071 virtual int minValidYear () const;
00072 virtual int maxValidYear () const;
00073 virtual int weekDayOfPray () const;
00074
00075 virtual QString calendarName() const;
00076
00077 virtual bool isLunar() const;
00078 virtual bool isLunisolar() const;
00079 virtual bool isSolar() const;
00080
00081 };
00082
00083 #endif