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

tdecore

Public Member Functions | List of all members
KCalendarSystemJalali Class Reference

#include <kcalendarsystemjalali.h>

Inheritance diagram for KCalendarSystemJalali:
KCalendarSystem

Public Member Functions

 KCalendarSystemJalali (const TDELocale *locale=0)
 
virtual int year (const TQDate &date) const
 
virtual int month (const TQDate &date) const
 
virtual int day (const TQDate &date) const
 
virtual int dayOfWeek (const TQDate &date) const
 
virtual int dayOfYear (const TQDate &date) const
 
virtual bool setYMD (TQDate &date, int y, int m, int d) const
 
virtual TQDate addYears (const TQDate &date, int nyears) const
 
virtual TQDate addMonths (const TQDate &date, int nmonths) const
 
virtual TQDate addDays (const TQDate &date, int ndays) const
 
virtual int monthsInYear (const TQDate &date) const
 
virtual int daysInYear (const TQDate &date) const
 
virtual int daysInMonth (const TQDate &date) const
 
virtual int weeksInYear (int year) const
 
virtual int weekNumber (const TQDate &date, int *yearNum=0) const
 
virtual TQString monthName (const TQDate &date, bool shortName=false) const
 
virtual TQString monthNamePossessive (const TQDate &date, bool shortName=false) const
 
virtual TQString weekDayName (int weekDay, bool shortName=false) const
 
virtual TQString weekDayName (const TQDate &date, bool shortName=false) const
 
virtual TQString monthNamePossessive (int month, int year, bool shortName=false) const
 
virtual TQString monthName (int month, int year, bool shortName=false) const
 
virtual int minValidYear () const
 
virtual int maxValidYear () const
 
virtual int weekDayOfPray () const
 
virtual TQString calendarName () const
 
virtual bool isLunar () const
 
virtual bool isLunisolar () const
 
virtual bool isSolar () const
 
- Public Member Functions inherited from KCalendarSystem
 KCalendarSystem (const TDELocale *locale=0)
 
virtual ~KCalendarSystem ()
 
virtual int year (const TQDate &date) const =0
 
virtual TQString yearString (const TQDate &pDate, bool bShort) const
 
virtual int yearStringToInteger (const TQString &sNum, int &iLength) const
 
virtual int month (const TQDate &date) const =0
 
virtual TQString monthString (const TQDate &pDate, bool bShort) const
 
virtual int monthStringToInteger (const TQString &sNum, int &iLength) const
 
virtual int day (const TQDate &date) const =0
 
virtual TQString dayString (const TQDate &pDate, bool bShort) const
 
virtual int dayStringToInteger (const TQString &sNum, int &iLength) const
 
virtual int dayOfWeek (const TQDate &date) const =0
 
virtual int dayOfYear (const TQDate &date) const =0
 
virtual bool setYMD (TQDate &date, int y, int m, int d) const =0
 
virtual TQDate addYears (const TQDate &date, int nyears) const =0
 
virtual TQDate addMonths (const TQDate &date, int nmonths) const =0
 
virtual TQDate addDays (const TQDate &date, int ndays) const =0
 
virtual int monthsInYear (const TQDate &date) const =0
 
virtual int daysInYear (const TQDate &date) const =0
 
virtual int daysInMonth (const TQDate &date) const =0
 
virtual int weeksInYear (int year) const =0
 
virtual int weekNumber (const TQDate &date, int *yearNum=0) const =0
 
virtual TQString monthName (int month, int year, bool shortName=false) const =0
 
virtual TQString monthName (const TQDate &date, bool shortName=false) const =0
 
virtual TQString monthNamePossessive (int month, int year, bool shortName=false) const =0
 
virtual TQString monthNamePossessive (const TQDate &date, bool shortName=false) const =0
 
virtual TQString weekDayName (int weekDay, bool shortName=false) const =0
 
virtual TQString weekDayName (const TQDate &date, bool shortName=false) const =0
 
virtual int minValidYear () const =0
 
virtual int maxValidYear () const =0
 
virtual int weekDayOfPray () const =0
 
virtual TQString calendarName () const =0
 
virtual bool isLunar () const =0
 
virtual bool isLunisolar () const =0
 
virtual bool isSolar () const =0
 

Additional Inherited Members

- Protected Member Functions inherited from KCalendarSystem
const TDELocale * locale () const
 

Detailed Description

Jalali calendar type implementation.

Definition at line 36 of file kcalendarsystemjalali.h.

Constructor & Destructor Documentation

◆ KCalendarSystemJalali()

KCalendarSystemJalali::KCalendarSystemJalali ( const TDELocale *  locale = 0)

Constructor.

Just like KCalendarSystem::KCalendarSystem().

Definition at line 203 of file kcalendarsystemjalali.cpp.

◆ ~KCalendarSystemJalali()

KCalendarSystemJalali::~KCalendarSystemJalali ( )
virtual

Definition at line 208 of file kcalendarsystemjalali.cpp.

Member Function Documentation

◆ addDays()

TQDate KCalendarSystemJalali::addDays ( const TQDate &  date,
int  ndays 
) const
virtual

Returns a TQDate object containing a date ndays later.

Parameters
dateThe old date
ndaysThe number of days to add
Returns
The new date

Implements KCalendarSystem.

Definition at line 305 of file kcalendarsystemjalali.cpp.

◆ addMonths()

TQDate KCalendarSystemJalali::addMonths ( const TQDate &  date,
int  nmonths 
) const
virtual

Returns a TQDate object containing a date nmonths later.

Parameters
dateThe old date
nmonthsThe number of months to add
Returns
The new date

Implements KCalendarSystem.

Definition at line 282 of file kcalendarsystemjalali.cpp.

◆ addYears()

TQDate KCalendarSystemJalali::addYears ( const TQDate &  date,
int  nyears 
) const
virtual

Returns a TQDate object containing a date nyears later.

Parameters
dateThe old date
nyearsThe number of years to add
Returns
The new date

Implements KCalendarSystem.

Definition at line 273 of file kcalendarsystemjalali.cpp.

◆ calendarName()

TQString KCalendarSystemJalali::calendarName ( ) const
virtual

Gets the string representing the calendar.

Implements KCalendarSystem.

Definition at line 542 of file kcalendarsystemjalali.cpp.

◆ day()

int KCalendarSystemJalali::day ( const TQDate &  date) const
virtual

Gets specific calendar type day number of month for a given date.

Parameters
dategregorian date equivalent to the specific one
Returns
day of the month

Implements KCalendarSystem.

Definition at line 230 of file kcalendarsystemjalali.cpp.

◆ dayOfWeek()

int KCalendarSystemJalali::dayOfWeek ( const TQDate &  date) const
virtual

Gets specific calendar type number of day of week number for a given date.

Parameters
dategregorian date
Returns
day of week

Implements KCalendarSystem.

Definition at line 239 of file kcalendarsystemjalali.cpp.

◆ dayOfYear()

int KCalendarSystemJalali::dayOfYear ( const TQDate &  date) const
virtual

Gets specific calendar type day number of year for a given date.

Parameters
dategregorian date equivalent to the specific one
Returns
day number

Implements KCalendarSystem.

Definition at line 247 of file kcalendarsystemjalali.cpp.

◆ daysInMonth()

int KCalendarSystemJalali::daysInMonth ( const TQDate &  date) const
virtual

Gets specific calendar type number of days in month for a given date.

Parameters
dategregorian date
Returns
number of days for month in date

Implements KCalendarSystem.

Definition at line 329 of file kcalendarsystemjalali.cpp.

◆ daysInYear()

int KCalendarSystemJalali::daysInYear ( const TQDate &  date) const
virtual

Gets the number of days in date whose years specified.

Parameters
dateGregorian date equivalent to the specific one
Returns
The number of days in year

Implements KCalendarSystem.

Definition at line 317 of file kcalendarsystemjalali.cpp.

◆ isLunar()

bool KCalendarSystemJalali::isLunar ( ) const
virtual

Gets if the calendar is lunar based.

Returns
if the calendar is lunar based

Implements KCalendarSystem.

Definition at line 547 of file kcalendarsystemjalali.cpp.

◆ isLunisolar()

bool KCalendarSystemJalali::isLunisolar ( ) const
virtual

Gets if the calendar is lunisolar based.

Returns
if the calendar is lunisolar based

Implements KCalendarSystem.

Definition at line 552 of file kcalendarsystemjalali.cpp.

◆ isSolar()

bool KCalendarSystemJalali::isSolar ( ) const
virtual

Gets if the calendar is solar based.

Returns
if the calendar is solar based

Implements KCalendarSystem.

Definition at line 557 of file kcalendarsystemjalali.cpp.

◆ maxValidYear()

int KCalendarSystemJalali::maxValidYear ( ) const
virtual

Gets the maximum year value supported by specific calendar type algorithms (TQDate, 8000)

Returns
maximum year supported

Implements KCalendarSystem.

Definition at line 527 of file kcalendarsystemjalali.cpp.

◆ minValidYear()

int KCalendarSystemJalali::minValidYear ( ) const
virtual

Gets the first year value supported by specific calendar type algorithms.

Returns
first year supported

Implements KCalendarSystem.

Definition at line 519 of file kcalendarsystemjalali.cpp.

◆ month()

int KCalendarSystemJalali::month ( const TQDate &  date) const
virtual

Gets specific calendar type month for a given gregorian date.

Parameters
dategregorian date
Returns
month number

Implements KCalendarSystem.

Definition at line 221 of file kcalendarsystemjalali.cpp.

◆ monthName() [1/2]

TQString KCalendarSystemJalali::monthName ( const TQDate &  date,
bool  shortName = false 
) const
virtual

Gets specific calendar type month name for a given gregorian date.

Parameters
dateGregorian date
shortNameSpecifies if the short month name should be used
Returns
The name of the month

Implements KCalendarSystem.

Definition at line 448 of file kcalendarsystemjalali.cpp.

◆ monthName() [2/2]

TQString KCalendarSystemJalali::monthName ( int  month,
int  year,
bool  shortName = false 
) const
virtual

Gets specific calendar type month name for a given month number If an invalid month is specified, TQString::null is returned.

Parameters
monthThe month number
yearThe year the month belongs to
shortNameSpecifies if the short month name should be used
Returns
The name of the month

Implements KCalendarSystem.

Definition at line 383 of file kcalendarsystemjalali.cpp.

◆ monthNamePossessive() [1/2]

TQString KCalendarSystemJalali::monthNamePossessive ( const TQDate &  date,
bool  shortName = false 
) const
virtual

Returns a string containing the possessive form of the month name.

("of January", "of February", etc.) It's needed in long format dates in some languages.

Parameters
dateGregorian date
shortNameSpecifies if the short month name should be used
Returns
The possessive form of the name of the month

Implements KCalendarSystem.

Definition at line 457 of file kcalendarsystemjalali.cpp.

◆ monthNamePossessive() [2/2]

TQString KCalendarSystemJalali::monthNamePossessive ( int  month,
int  year,
bool  shortName = false 
) const
virtual

Returns a string containing the possessive form of the month name.

("of January", "of February", etc.) It's needed in long format dates in some languages. If an invalid month is specified, TQString::null is returned.

Parameters
monthThe month number
yearThe year the month belongs to
shortNameSpecifies if the short month name should be used
Returns
The possessive form of the name of the month

Implements KCalendarSystem.

Definition at line 463 of file kcalendarsystemjalali.cpp.

◆ monthsInYear()

int KCalendarSystemJalali::monthsInYear ( const TQDate &  date) const
virtual

Gets specific calendar type number of month for a given year.

Parameters
dateThe date whose year to use
Returns
The number of months in that year

Implements KCalendarSystem.

Definition at line 310 of file kcalendarsystemjalali.cpp.

◆ setYMD()

bool KCalendarSystemJalali::setYMD ( TQDate &  date,
int  y,
int  m,
int  d 
) const
virtual

Changes the date's year, month and day.

The range of the year, month and day depends on which calendar is being used.

Parameters
dateDate to change
yYear
mMonth number
dDay of month
Returns
true if the date is valid; otherwise returns false.

Implements KCalendarSystem.

Definition at line 256 of file kcalendarsystemjalali.cpp.

◆ weekDayName() [1/2]

TQString KCalendarSystemJalali::weekDayName ( const TQDate &  date,
bool  shortName = false 
) const
virtual

Gets specific calendar type week day name.

Parameters
datethe date
shortNameshort or complete day name
Returns
day name

Implements KCalendarSystem.

Definition at line 512 of file kcalendarsystemjalali.cpp.

◆ weekDayName() [2/2]

TQString KCalendarSystemJalali::weekDayName ( int  weekDay,
bool  shortName = false 
) const
virtual

Gets specific calendar type week day name If an invalid week day is specified, TQString::null is returned.

Parameters
weekDaynumber of day in week (1 -> Monday)
shortNameshort or complete day name
Returns
day name

Implements KCalendarSystem.

Definition at line 470 of file kcalendarsystemjalali.cpp.

◆ weekDayOfPray()

int KCalendarSystemJalali::weekDayOfPray ( ) const
virtual

Gets the day of the week traditionaly associated with pray.

Returns
day number

Implements KCalendarSystem.

Definition at line 538 of file kcalendarsystemjalali.cpp.

◆ weekNumber()

int KCalendarSystemJalali::weekNumber ( const TQDate &  date,
int *  yearNum = 0 
) const
virtual

Gets specific calendar type week number for a given date.

Parameters
dategregorian date
yearNumThe year the date belongs to
Returns
week number

Implements KCalendarSystem.

Definition at line 343 of file kcalendarsystemjalali.cpp.

◆ weeksInYear()

int KCalendarSystemJalali::weeksInYear ( int  year) const
virtual

Gets the number of weeks in a specified year.

Parameters
yearthe year
Returns
number of weeks in year

Implements KCalendarSystem.

Definition at line 335 of file kcalendarsystemjalali.cpp.

◆ year()

int KCalendarSystemJalali::year ( const TQDate &  date) const
virtual

Gets specific calendar type year for a given gregorian date.

Parameters
dategregorian date
Returns
year

Implements KCalendarSystem.

Definition at line 212 of file kcalendarsystemjalali.cpp.


The documentation for this class was generated from the following files:
  • kcalendarsystemjalali.h
  • kcalendarsystemjalali.cpp

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.