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

kdecore

  • kdecore
kcalendarsystemhebrew.h
1 /*
2  Copyright (c) 2002-2003 Carlos Moro <cfmoro@correo.uniovi.es>
3  Copyright (c) 2002-2003 Hans Petter Bieker <bieker@kde.org>
4  Calendar conversion routines based on Hdate v6, by Amos
5  Shapir 1978 (rev. 1985, 1992)
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 
23 #ifndef KCALENDARSYSTEMHEBREW_H
24 #define KCALENDARSYSTEMHEBREW_H
25 
26 #include <tqdatetime.h>
27 #include <tqstring.h>
28 
29 #include "kcalendarsystem.h"
30 
31 class KCalendarSystemHebrewPrivate;
32 
45 class KDECORE_EXPORT KCalendarSystemHebrew : public KCalendarSystem
46 {
47 public:
49  KCalendarSystemHebrew(const KLocale * locale = 0);
50  virtual ~KCalendarSystemHebrew();
51 
52  virtual int year (const TQDate & date) const;
53  virtual int month (const TQDate & date) const;
54  virtual int day (const TQDate & date) const;
55  virtual int dayOfWeek (const TQDate & date) const;
56  virtual int dayOfYear (const TQDate & date) const;
57 
58  virtual bool setYMD(TQDate & date, int y, int m, int d) const;
59 
60  virtual TQDate addYears(const TQDate & date, int nyears) const;
61  virtual TQDate addMonths(const TQDate & date, int nmonths) const;
62  virtual TQDate addDays(const TQDate & date, int ndays) const;
63 
64  virtual int monthsInYear (const TQDate & date) const;
65  virtual int daysInYear (const TQDate & date) const;
66  virtual int daysInMonth (const TQDate & date) const;
67  virtual int weeksInYear(int year) const;
68  virtual int weekNumber(const TQDate& date, int * yearNum = 0) const;
69 
70  virtual TQString monthName (int month, int year, bool shortName = false) const;
71  virtual TQString monthName (const TQDate & date, bool shortName = false ) const;
72  virtual TQString monthNamePossessive(int month, int year, bool shortName = false) const;
73  virtual TQString monthNamePossessive(const TQDate & date, bool shortName = false ) const;
74  virtual TQString weekDayName (int weekDay, bool shortName = false) const;
75  virtual TQString weekDayName (const TQDate & date, bool shortName = false) const;
76 
77  virtual TQString dayString(const TQDate & pDate, bool bShort) const;
78  virtual TQString yearString(const TQDate & pDate, bool bShort) const;
79  virtual int dayStringToInteger(const TQString & sNum, int & iLength) const;
80  virtual int yearStringToInteger(const TQString & sNum, int & iLength) const;
81 
82  virtual int minValidYear () const;
83  virtual int maxValidYear () const;
84  virtual int weekDayOfPray () const;
85 
86  virtual TQString calendarName() const;
87 
88  virtual bool isLunar() const;
89  virtual bool isLunisolar() const;
90  virtual bool isSolar() const;
91 
92 private:
100  int hndays(int year, int mon) const;
101 
102  KCalendarSystemHebrewPrivate * d;
103 };
104 
105 #endif

kdecore

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

kdecore

Skip menu "kdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |