kcalendarsystemhebrew.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 #ifndef KCALENDARSYSTEMHEBREW_H
00024 #define KCALENDARSYSTEMHEBREW_H
00025 
00026 #include <qdatetime.h>
00027 #include <qstring.h>
00028 
00029 #include "kcalendarsystem.h"
00030 
00031 class KCalendarSystemHebrewPrivate;
00032 
00046 class KCalendarSystemHebrew : public KCalendarSystem
00047 {
00048 public:
00049   KCalendarSystemHebrew(const KLocale * locale = 0);
00050   virtual ~KCalendarSystemHebrew();
00051 
00052   virtual int year (const QDate & date) const;
00053   virtual int month (const QDate & date) const;
00054   virtual int day (const QDate & date) const;
00055   virtual int dayOfWeek (const QDate & date) const;
00056   virtual int dayOfYear (const QDate & date) const;
00057 
00058   virtual bool setYMD(QDate & date, int y, int m, int d) const;
00059 
00060   virtual QDate addYears(const QDate & date, int nyears) const;
00061   virtual QDate addMonths(const QDate & date, int nmonths) const;
00062   virtual QDate addDays(const QDate & date, int ndays) const;
00063 
00064   virtual int monthsInYear (const QDate & date) const;
00065   virtual int daysInYear (const QDate & date) const;
00066   virtual int daysInMonth (const QDate & date) const;
00067   virtual int weeksInYear(int year) const;
00068   virtual int weekNumber(const QDate& date, int * yearNum = 0) const;
00069 
00070   virtual QString monthName (int month, int year, bool shortName = false) const;
00071   virtual QString monthName (const QDate & date, bool shortName = false ) const;
00072   virtual QString monthNamePossessive(int month, int year, bool shortName = false) const;
00073   virtual QString monthNamePossessive(const QDate & date, bool shortName = false ) const;
00074   virtual QString weekDayName (int weekDay, bool shortName = false) const;
00075   virtual QString weekDayName (const QDate & date, bool shortName = false) const;
00076 
00077   virtual QString dayString(const QDate & pDate, bool bShort) const;
00078   virtual QString yearString(const QDate & pDate, bool bShort) const;
00079   virtual int dayStringToInteger(const QString & sNum, int & iLength) const;
00080   virtual int yearStringToInteger(const QString & sNum, int & iLength) const;
00081 
00082   virtual int minValidYear () const;
00083   virtual int maxValidYear () const;
00084   virtual int weekDayOfPray () const;
00085 
00086   virtual QString calendarName() const;
00087 
00088   virtual bool isLunar() const;
00089   virtual bool isLunisolar() const;
00090   virtual bool isSolar() const;
00091 
00092 private:
00100   int hndays(int year, int mon) const;
00101 
00102   KCalendarSystemHebrewPrivate * d;
00103 };
00104 
00105 #endif
 
This file is part of the documentation for kdecore Library Version 3.2.0.