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

tdecore

  • tdecore
kcalendarsystemjalali.h
1#ifndef KCALENDARSYSTEMJALALI_H
2#define KCALENDARSYSTEMJALALI_H
3
4
5/*
6 Copyright (C) 2002-2003 Arash Bijanzadeh and FarsiKDE Project <www.farsikde.org>
7 Contact: Arash Bijanzadeh <a.bijanzadeh@linuxiran.org>
8
9 This program is part of FarsiKDE
10
11 FarsiKDE is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Library General Public
13 License as published by the Free Software Foundation; either
14 version 2 of the License, or (at your option) any later version.
15
16 FarsiKDE is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Library General Public License for more details.
20
21 You should have received a copy of the GNU Library General Public License
22 along with this library; see the file COPYING.LIB. If not, write to
23 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 Boston, MA 02110-1301, USA.
25 */
26
27#include <tqdatetime.h>
28#include <tqstring.h>
29
30#include "kcalendarsystem.h"
31
32class KCalendarSystemJalaliPrivate;
36class TDECORE_EXPORT KCalendarSystemJalali : public KCalendarSystem
37{
38public:
40 KCalendarSystemJalali(const TDELocale * locale = 0);
41 virtual ~KCalendarSystemJalali();
42
43
44
45 virtual int year (const TQDate & date) const;
46 virtual int month (const TQDate & date) const;
47 virtual int day (const TQDate & date) const;
48 virtual int dayOfWeek (const TQDate & date) const;
49 virtual int dayOfYear (const TQDate & date) const;
50
51 virtual bool setYMD(TQDate & date, int y, int m, int d) const;
52
53 virtual TQDate addYears(const TQDate & date, int nyears) const;
54 virtual TQDate addMonths(const TQDate & date, int nmonths) const;
55 virtual TQDate addDays(const TQDate & date, int ndays) const;
56
57 virtual int monthsInYear (const TQDate & date) const;
58
59 virtual int daysInYear (const TQDate & date) const;
60 virtual int daysInMonth (const TQDate & date) const;
61 virtual int weeksInYear(int year) const;
62 virtual int weekNumber(const TQDate& date, int * yearNum = 0) const;
63
64 virtual TQString monthName (const TQDate & date, bool shortName = false ) const;
65 virtual TQString monthNamePossessive(const TQDate & date, bool shortName = false ) const;
66 virtual TQString weekDayName (int weekDay, bool shortName = false) const;
67 virtual TQString weekDayName (const TQDate & date, bool shortName = false) const;
68 virtual TQString monthNamePossessive(int month, int year, bool shortName = false) const;
69 virtual TQString monthName(int month, int year, bool shortName = false) const;
70
71 virtual int minValidYear () const;
72 virtual int maxValidYear () const;
73 virtual int weekDayOfPray () const;
74
75 virtual TQString calendarName() const;
76
77 virtual bool isLunar() const;
78 virtual bool isLunisolar() const;
79 virtual bool isSolar() const;
80
81};
82
83#endif
KCalendarSystemJalali
Jalali calendar type implementation.
Definition: kcalendarsystemjalali.h:37
KCalendarSystem
CalendarSystem abstract class, default derived kde gregorian class and factory class.
Definition: kcalendarsystem.h:43
KCalendarSystem::maxValidYear
virtual int maxValidYear() const =0
Gets the maximum year value supported by specific calendar type algorithms (TQDate,...
KCalendarSystem::weekDayName
virtual TQString weekDayName(int weekDay, bool shortName=false) const =0
Gets specific calendar type week day name If an invalid week day is specified, TQString::null is retu...
Definition: kcalendarsystem.cpp:119
KCalendarSystem::addYears
virtual TQDate addYears(const TQDate &date, int nyears) const =0
Returns a TQDate object containing a date nyears later.
KCalendarSystem::monthNamePossessive
virtual TQString monthNamePossessive(int month, int year, bool shortName=false) const =0
Returns a string containing the possessive form of the month name.
KCalendarSystem::isLunisolar
virtual bool isLunisolar() const =0
Gets if the calendar is lunisolar based.
KCalendarSystem::dayOfYear
virtual int dayOfYear(const TQDate &date) const =0
Gets specific calendar type day number of year for a given date.
KCalendarSystem::weekDayOfPray
virtual int weekDayOfPray() const =0
Gets the day of the week traditionaly associated with pray.
KCalendarSystem::monthsInYear
virtual int monthsInYear(const TQDate &date) const =0
Gets specific calendar type number of month for a given year.
KCalendarSystem::dayOfWeek
virtual int dayOfWeek(const TQDate &date) const =0
Gets specific calendar type number of day of week number for a given date.
KCalendarSystem::isSolar
virtual bool isSolar() const =0
Gets if the calendar is solar based.
KCalendarSystem::daysInMonth
virtual int daysInMonth(const TQDate &date) const =0
Gets specific calendar type number of days in month for a given date.
KCalendarSystem::weekNumber
virtual int weekNumber(const TQDate &date, int *yearNum=0) const =0
Gets specific calendar type week number for a given date.
KCalendarSystem::day
virtual int day(const TQDate &date) const =0
Gets specific calendar type day number of month for a given date.
KCalendarSystem::calendarName
virtual TQString calendarName() const =0
Gets the string representing the calendar.
KCalendarSystem::addDays
virtual TQDate addDays(const TQDate &date, int ndays) const =0
Returns a TQDate object containing a date ndays later.
KCalendarSystem::weeksInYear
virtual int weeksInYear(int year) const =0
Gets the number of weeks in a specified year.
KCalendarSystem::month
virtual int month(const TQDate &date) const =0
Gets specific calendar type month for a given gregorian date.
KCalendarSystem::minValidYear
virtual int minValidYear() const =0
Gets the first year value supported by specific calendar type algorithms.
KCalendarSystem::daysInYear
virtual int daysInYear(const TQDate &date) const =0
Gets the number of days in date whose years specified.
KCalendarSystem::isLunar
virtual bool isLunar() const =0
Gets if the calendar is lunar based.
KCalendarSystem::monthName
virtual TQString monthName(int month, int year, bool shortName=false) const =0
Gets specific calendar type month name for a given month number If an invalid month is specified,...
KCalendarSystem::setYMD
virtual bool setYMD(TQDate &date, int y, int m, int d) const =0
Changes the date's year, month and day.
KCalendarSystem::year
virtual int year(const TQDate &date) const =0
Gets specific calendar type year for a given gregorian date.
KCalendarSystem::addMonths
virtual TQDate addMonths(const TQDate &date, int nmonths) const =0
Returns a TQDate object containing a date nmonths later.
TDELocale
TDELocale provides support for country specific stuff like the national language.
Definition: tdelocale.h:124

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.