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

kdecore

kcalendarsystemhijri.h
00001 /*
00002    Copyright (c) 2002 Carlos Moro <cfmoro@correo.uniovi.es>
00003    Copyright (c) 2002-2003 Hans Petter Bieker <bieker@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KCALENDARSYSTEMHIJRI_H
00022 #define KCALENDARSYSTEMHIJRI_H
00023 
00024 #include <tqdatetime.h>
00025 #include <tqstring.h>
00026 
00027 #include "kcalendarsystem.h"
00028 
00029 class KCalendarSystemHijriPrivate;
00030 
00043 class KDECORE_EXPORT KCalendarSystemHijri : public KCalendarSystem
00044 {
00045 public:
00047   KCalendarSystemHijri(const KLocale * locale = 0);
00048   virtual ~KCalendarSystemHijri();
00049 
00050   virtual int year (const TQDate & date) const;
00051   virtual int month (const TQDate & date) const;
00052   virtual int day (const TQDate & date) const;
00053   virtual int dayOfWeek (const TQDate & date) const;
00054   virtual int dayOfYear (const TQDate & date) const;
00055 
00056   virtual bool setYMD(TQDate & date, int y, int m, int d) const;
00057 
00058   virtual TQDate addYears(const TQDate & date, int nyears) const;
00059   virtual TQDate addMonths(const TQDate & date, int nmonths) const;
00060   virtual TQDate addDays(const TQDate & date, int ndays) const;
00061 
00062   virtual int monthsInYear (const TQDate & date) const;
00063   virtual int daysInYear (const TQDate & date) const;
00064   virtual int daysInMonth (const TQDate & date) const;
00065   virtual int weeksInYear(int year) const;
00066   virtual int weekNumber(const TQDate& date, int * yearNum = 0) const;
00067 
00068   virtual TQString monthName (int month, int year, bool shortName = false) const;
00069   virtual TQString monthName (const TQDate & date, bool shortName = false ) const;
00070   virtual TQString monthNamePossessive(int month, int year, bool shortName = false) const;
00071   virtual TQString monthNamePossessive(const TQDate & date, bool shortName = false ) const;
00072   virtual TQString weekDayName (int weekDay, bool shortName = false) const;
00073   virtual TQString weekDayName (const TQDate & date, bool shortName = false) const;
00074 
00075   virtual int minValidYear () const;
00076   virtual int maxValidYear () const;
00077   virtual int weekDayOfPray () const;
00078 
00079   virtual TQString calendarName() const;
00080 
00081   virtual bool isLunar() const;
00082   virtual bool isLunisolar() const;
00083   virtual bool isSolar() const;
00084 
00085   private:
00093   int hndays(int month, int year) const;
00094 
00095   KCalendarSystemHijriPrivate * d;
00096 };
00097 
00098 #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.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |