• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDECore

kcalendarsystemhebrew.h

Go to the documentation of this file.
00001 /*
00002     Copyright (c) 2002-2003 Carlos Moro <cfmoro@correo.uniovi.es>
00003     Copyright (c) 2002-2003 Hans Petter Bieker <bieker@kde.org>
00004     Copyright (c) 2007 John Layt <john@layt.net>
00005         Calendar conversion routines based on Hdate v6, by Amos
00006         Shapir 1978 (rev. 1985, 1992)
00007  
00008     This library is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU Library General Public
00010     License as published by the Free Software Foundation; either
00011     version 2 of the License, or (at your option) any later version.
00012  
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Library General Public License for more details.
00017  
00018     You should have received a copy of the GNU Library General Public License
00019     along with this library; see the file COPYING.LIB.  If not, write to
00020     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021     Boston, MA 02110-1301, USA.
00022 */
00023 
00024 #ifndef KCALENDARSYSTEMHEBREW_H
00025 #define KCALENDARSYSTEMHEBREW_H
00026 
00027 #include "kcalendarsystem.h"
00028 
00029 class KCalendarSystemHebrewPrivate;
00030 
00041 class KDECORE_EXPORT KCalendarSystemHebrew : public KCalendarSystem
00042 {
00043 public:
00044     explicit KCalendarSystemHebrew( const KLocale * locale = 0 );
00045     virtual ~KCalendarSystemHebrew();
00046 
00047     virtual QString calendarType() const;
00048 
00049     virtual QDate epoch() const;
00050     virtual QDate earliestValidDate() const;
00051     virtual QDate latestValidDate() const;
00052     virtual bool isValid( int year, int month, int day ) const;
00053     virtual bool isValid( const QDate &date ) const;
00054 
00055     virtual bool setDate( QDate &date, int year, int month, int day ) const;
00057     virtual bool setYMD( QDate &date, int year, int month, int day ) const;
00058 
00059     virtual int year( const QDate &date ) const;
00060     virtual int month( const QDate &date ) const;
00061     virtual int day( const QDate &date ) const;
00062 
00063     virtual QDate addYears( const QDate &date, int nyears ) const;
00064     virtual QDate addMonths( const QDate &date, int nmonths ) const;
00065     virtual QDate addDays( const QDate &date, int ndays ) const;
00066 
00067     virtual int monthsInYear( const QDate &date ) const;
00068     virtual int weeksInYear( const QDate &date ) const;
00069     virtual int weeksInYear( int year ) const;
00070     virtual int daysInYear( const QDate &date ) const;
00071     virtual int daysInMonth( const QDate &date ) const;
00072     virtual int daysInWeek( const QDate &date ) const;
00073 
00074     virtual int dayOfYear( const QDate &date ) const;
00075     virtual int dayOfWeek( const QDate &date ) const;
00076 
00077     virtual int weekNumber( const QDate &date, int *yearNum = 0 ) const;
00078 
00079     virtual bool isLeapYear( int year ) const;
00080     virtual bool isLeapYear( const QDate &date ) const;
00081 
00082     virtual QString monthName( int month, int year, MonthNameFormat format = LongName ) const;
00083     virtual QString monthName( const QDate &date, MonthNameFormat format = LongName ) const;
00084 
00085     virtual QString weekDayName( int weekDay, WeekDayNameFormat format = LongDayName ) const;
00086     virtual QString weekDayName( const QDate &date, WeekDayNameFormat format = LongDayName ) const;
00087 
00088     virtual QString yearString( const QDate & pDate, StringFormat format = LongFormat ) const;
00089     virtual QString monthString( const QDate &pDate, StringFormat format = LongFormat ) const;
00090     virtual QString dayString( const QDate &pDate, StringFormat format = LongFormat ) const;
00091 
00092     virtual int yearStringToInteger( const QString &sNum, int &iLength ) const;
00093     virtual int monthStringToInteger( const QString &sNum, int &iLength ) const;
00094     virtual int dayStringToInteger( const QString &sNum, int &iLength ) const;
00095 
00096     virtual QString formatDate( const QDate &date, KLocale::DateFormat format = KLocale::LongDate ) const;
00097 
00098     virtual QDate readDate( const QString &str, bool *ok = 0 ) const;
00099     virtual QDate readDate( const QString &intstr, const QString &fmt, bool *ok = 0 ) const;
00100     virtual QDate readDate( const QString &str, KLocale::ReadDateFlags flags, bool *ok = 0 ) const;
00101 
00102     virtual int weekStartDay() const;
00103     virtual int weekDayOfPray () const;
00104 
00105     virtual bool isLunar() const;
00106     virtual bool isLunisolar() const;
00107     virtual bool isSolar() const;
00108     virtual bool isProleptic() const;
00109 
00110 protected:
00111     virtual bool julianDayToDate( int jd, int &year, int &month, int &day ) const;
00112     virtual bool dateToJulianDay( int year, int month, int day, int &jd ) const;
00113 
00114 private:
00115     KCalendarSystemHebrewPrivate * const d;
00116 };
00117 
00118 #endif // KCALENDARSYSTEMHEBREW_H

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal