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

KDECore

kcalendarsystemgregorian.h

Go to the documentation of this file.
00001 /*
00002    Copyright (c) 2002 Carlos Moro <cfmoro@correo.uniovi.es>
00003    Copyright (c) 2002 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 KCALENDARSYSTEMGREGORIAN_H
00022 #define KCALENDARSYSTEMGREGORIAN_H
00023 
00024 #include <qdatetime.h>
00025 #include <qstring.h>
00026 
00027 #include "kcalendarsystem.h"
00028 
00029 class KCalendarSystemGregorianPrivate;
00030 
00043 class KDECORE_EXPORT KCalendarSystemGregorian: public KCalendarSystem
00044 {
00045 public:
00047   KCalendarSystemGregorian (const KLocale * locale = 0);
00048   virtual ~KCalendarSystemGregorian ();
00049 
00050   virtual int year (const QDate & date) const;
00051   virtual int month (const QDate & date) const;
00052   virtual int day (const QDate & date) const;
00053   virtual int dayOfWeek (const QDate & date) const;
00054   virtual int dayOfYear (const QDate & date) const;
00055 
00056   virtual bool setYMD(QDate & date, int y, int m, int d) const;
00057 
00058   virtual QDate addYears(const QDate & date, int nyears) const;
00059   virtual QDate addMonths(const QDate & date, int nmonths) const;
00060   virtual QDate addDays(const QDate & date, int ndays) const;
00061 
00062   virtual int monthsInYear (const QDate & date) const;
00063 
00064   virtual int daysInYear (const QDate & date) const;
00065   virtual int daysInMonth (const QDate & date) const;
00066   virtual int weeksInYear(int year) const;
00067   virtual int weekNumber(const QDate& date, int * yearNum = 0) const;
00068 
00069   virtual int yearStringToInteger(const QString & sNum, int & iLength) const;
00070 
00071   virtual QString monthName (int month, int year, bool shortName = false) const;
00072   virtual QString monthName (const QDate & date, bool shortName = false ) const;
00073   virtual QString monthNamePossessive(int month, int year, bool shortName = false) const;
00074   virtual QString monthNamePossessive(const QDate & date, bool shortName = false ) const;
00075   virtual QString weekDayName (int weekDay, bool shortName = false) const;
00076   virtual QString weekDayName (const QDate & date, bool shortName = false) const;
00077 
00078   virtual int minValidYear () const;
00079   virtual int maxValidYear () const;
00080   virtual int weekDayOfPray () const;
00081 
00082   virtual QString calendarName() const;
00083 
00084   virtual bool isLunar() const;
00085   virtual bool isLunisolar() const;
00086   virtual bool isSolar() const;
00087 
00088 private:
00089   KCalendarSystemGregorianPrivate * d;
00090 };
00091 
00092 #endif

KDECore

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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