Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kdecore
kdecore
kdecore
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
32
class
KCalendarSystemJalaliPrivate;
36
class
KDECORE_EXPORT
KCalendarSystemJalali
:
public
KCalendarSystem
37
{
38
public
:
40
KCalendarSystemJalali
(
const
KLocale
* 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
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