• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

kcalendarsystemhebrew.h

00001 /*
00002    Copyright (c) 2002-2003 Carlos Moro <cfmoro@correo.uniovi.es>
00003    Copyright (c) 2002-2003 Hans Petter Bieker <bieker@kde.org>
00004        Calendar conversion routines based on Hdate v6, by Amos
00005        Shapir 1978 (rev. 1985, 1992)
00006 
00007    This library is free software; you can redistribute it and/or
00008    modify it under the terms of the GNU Library General Public
00009    License as published by the Free Software Foundation; either
00010    version 2 of the License, or (at your option) any later version.
00011 
00012    This library is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015    Library General Public License for more details.
00016 
00017    You should have received a copy of the GNU Library General Public License
00018    along with this library; see the file COPYING.LIB.  If not, write to
00019    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020    Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #ifndef KCALENDARSYSTEMHEBREW_H
00024 #define KCALENDARSYSTEMHEBREW_H
00025 
00026 #include <tqdatetime.h>
00027 #include <tqstring.h>
00028 
00029 #include "kcalendarsystem.h"
00030 
00031 class KCalendarSystemHebrewPrivate;
00032 
00045 class TDECORE_EXPORT KCalendarSystemHebrew : public KCalendarSystem
00046 {
00047 public:
00049   KCalendarSystemHebrew(const TDELocale * locale = 0);
00050   virtual ~KCalendarSystemHebrew();
00051 
00052   virtual int year (const TQDate & date) const;
00053   virtual int month (const TQDate & date) const;
00054   virtual int day (const TQDate & date) const;
00055   virtual int dayOfWeek (const TQDate & date) const;
00056   virtual int dayOfYear (const TQDate & date) const;
00057 
00058   virtual bool setYMD(TQDate & date, int y, int m, int d) const;
00059 
00060   virtual TQDate addYears(const TQDate & date, int nyears) const;
00061   virtual TQDate addMonths(const TQDate & date, int nmonths) const;
00062   virtual TQDate addDays(const TQDate & date, int ndays) const;
00063 
00064   virtual int monthsInYear (const TQDate & date) const;
00065   virtual int daysInYear (const TQDate & date) const;
00066   virtual int daysInMonth (const TQDate & date) const;
00067   virtual int weeksInYear(int year) const;
00068   virtual int weekNumber(const TQDate& date, int * yearNum = 0) const;
00069 
00070   virtual TQString monthName (int month, int year, bool shortName = false) const;
00071   virtual TQString monthName (const TQDate & date, bool shortName = false ) const;
00072   virtual TQString monthNamePossessive(int month, int year, bool shortName = false) const;
00073   virtual TQString monthNamePossessive(const TQDate & date, bool shortName = false ) const;
00074   virtual TQString weekDayName (int weekDay, bool shortName = false) const;
00075   virtual TQString weekDayName (const TQDate & date, bool shortName = false) const;
00076 
00077   virtual TQString dayString(const TQDate & pDate, bool bShort) const;
00078   virtual TQString yearString(const TQDate & pDate, bool bShort) const;
00079   virtual int dayStringToInteger(const TQString & sNum, int & iLength) const;
00080   virtual int yearStringToInteger(const TQString & sNum, int & iLength) const;
00081 
00082   virtual int minValidYear () const;
00083   virtual int maxValidYear () const;
00084   virtual int weekDayOfPray () const;
00085 
00086   virtual TQString 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

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.6.3
This website is maintained by Timothy Pearson.