kdecore Library: kcalendarsystemjalali.h Source File (kdecore Library)

| # kdecore Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# kcalendarsystemjalali.h

    00001 #ifndef KCALENDARSYSTEMJALALI_H
    00002 #define KCALENDARSYSTEMJALALI_H
    00003
    00004
    00005 /*
    00006    Copyright (C) 2002-2003 Arash Bijanzadeh  and FarsiKDE Project <www.farsikde.org>
    00007    Contact: Arash Bijanzadeh <a.bijanzadeh@linuxiran.org>
    00008
    00009    This program is part of FarsiKDE
    00010
    00011    FarsiKDE is free software; you can redistribute it and/or
    00012    modify it under the terms of the GNU Library General Public
    00013    License as published by the Free Software Foundation; either
    00014    version 2 of the License, or (at your option) any later version.
    00015
    00016    FarsiKDE is distributed in the hope that it will be useful,
    00017    but WITHOUT ANY WARRANTY; without even the implied warranty of
    00018    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00019    Library General Public License for more details.
    00020
    00021    You should have received a copy of the GNU Library General Public License
    00022    along with this library; see the file COPYING.LIB.  If not, write to
    00023    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00024    Boston, MA 02111-1307, USA.
    00025  */
    00026
    00027 #include <qdatetime.h>
    00028 #include <qstring.h>
    00029
    00030 #include "kcalendarsystem.h"
    00031
    00032 class KCalendarSystemJalaliPrivate;
    00036 class KDECORE_EXPORT KCalendarSystemJalali : public KCalendarSystem
    00037 {
    00038 public:
    00039   KCalendarSystemJalali(const KLocale * locale = 0);
    00040   virtual ~KCalendarSystemJalali();
    00041
    00042
    00043
    00044   virtual int year (const QDate & date) const;
    00045   virtual int month (const QDate & date) const;
    00046   virtual int day (const QDate & date) const;
    00047   virtual int dayOfWeek (const QDate & date) const;
    00048   virtual int dayOfYear (const QDate & date) const;
    00049
    00050   virtual bool setYMD(QDate & date, int y, int m, int d) const;
    00051
    00052   virtual QDate addYears(const QDate & date, int nyears) const;
    00053   virtual QDate addMonths(const QDate & date, int nmonths) const;
    00054   virtual QDate addDays(const QDate & date, int ndays) const;
    00055
    00056   virtual int monthsInYear (const QDate & date) const;
    00057
    00058   virtual int daysInYear (const QDate & date) const;
    00059   virtual int daysInMonth (const QDate & date) const;
    00060   virtual int weeksInYear(int year) const;
    00061   virtual int weekNumber(const QDate& date, int * yearNum = 0) const;
    00062
    00063   virtual QString monthName (const QDate & date, bool shortName = false ) const;
    00064   virtual QString monthNamePossessive(const QDate & date, bool shortName = false ) const;
    00065   virtual QString weekDayName (int weekDay, bool shortName = false) const;
    00066   virtual QString weekDayName (const QDate & date, bool shortName = false) const;
    00067   virtual QString monthNamePossessive(int month, int year, bool shortName = false) const;
    00068   virtual QString monthName(int month, int year, bool shortName = false) const;
    00069
    00070   virtual int minValidYear () const;
    00071   virtual int maxValidYear () const;
    00072   virtual int weekDayOfPray () const;
    00073
    00074   virtual QString calendarName() const;
    00075
    00076   virtual bool isLunar() const;
    00077   virtual bool isLunisolar() const;
    00078   virtual bool isSolar() const;
    00079
    00080 };
    00081
    00082 #endif

This file is part of the documentation for kdecore Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:18:01 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003