• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDECore

kcalendarsystemislamiccivil_p.h
Go to the documentation of this file.
00001 /*
00002     Copyright (c) 2002 Carlos Moro <cfmoro@correo.uniovi.es>
00003     Copyright (c) 2002-2003 Hans Petter Bieker <bieker@kde.org>
00004     Copyright 2007, 2010 John Layt <john@layt.net>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KCALENDARSYSTEMISLAMICCIVIL_H
00023 #define KCALENDARSYSTEMISLAMICCIVIL_H
00024 
00025 #include "kcalendarsystem.h"
00026 
00027 class KCalendarSystemIslamicCivilPrivate;
00028 
00043 class KCalendarSystemIslamicCivil : public KCalendarSystem
00044 {
00045 public:
00046     explicit KCalendarSystemIslamicCivil(const KLocale *locale = 0);
00047     explicit KCalendarSystemIslamicCivil(const KSharedConfig::Ptr config, const KLocale *locale = 0);
00048     virtual ~KCalendarSystemIslamicCivil();
00049 
00050     virtual QString calendarType() const;
00051 
00052     virtual QDate epoch() const;
00053     virtual QDate earliestValidDate() const;
00054     virtual QDate latestValidDate() const;
00055     virtual bool isValid(int year, int month, int day) const;
00056     virtual bool isValid(const QDate &date) const;
00057 
00058     virtual bool isLeapYear(int year) const;
00059     virtual bool isLeapYear(const QDate &date) const;
00060 
00061     virtual QString monthName(int month, int year, MonthNameFormat format = LongName) const;
00062     virtual QString monthName(const QDate &date, MonthNameFormat format = LongName) const;
00063 
00064     virtual QString weekDayName(int weekDay, WeekDayNameFormat format = LongDayName) const;
00065     virtual QString weekDayName(const QDate &date, WeekDayNameFormat format = LongDayName) const;
00066 
00067     virtual int weekDayOfPray() const;
00068 
00069     virtual bool isLunar() const;
00070     virtual bool isLunisolar() const;
00071     virtual bool isSolar() const;
00072     virtual bool isProleptic() const;
00073 
00074 protected:
00075     virtual bool julianDayToDate(int jd, int &year, int &month, int &day) const;
00076     virtual bool dateToJulianDay(int year, int month, int day, int &jd) const;
00077     KCalendarSystemIslamicCivil(KCalendarSystemIslamicCivilPrivate &dd,
00078                          const KSharedConfig::Ptr config = KSharedConfig::Ptr(),
00079                          const KLocale *locale = 0);
00080 
00081 private:
00082     Q_DECLARE_PRIVATE(KCalendarSystemIslamicCivil)
00083 };
00084 
00085 #endif // KCALENDARSYSTEMISLAMICCIVIL_H

KDECore

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.5
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