KDECore
kcalendarsystemjalali.cpp
Go to the documentation of this file.
56 virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const;
82 format = i18nc("(kdedt-format) Jalali, AP, full era year format used for %EY, e.g. 2000 AP", "%Ey %EC");
179 QString KCalendarSystemJalaliPrivate::monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const
279 return ki18nc("Jalali month 1 - KLocale::LongName Possessive", "of Farvardin").toString(locale());
281 return ki18nc("Jalali month 2 - KLocale::LongName Possessive", "of Ordibehesht").toString(locale());
283 return ki18nc("Jalali month 3 - KLocale::LongName Possessive", "of Khordad").toString(locale());
289 return ki18nc("Jalali month 6 - KLocale::LongName Possessive", "of Shahrivar").toString(locale());
299 return ki18nc("Jalali month 11 - KLocale::LongName Possessive", "of Bahman").toString(locale());
301 return ki18nc("Jalali month 12 - KLocale::LongName Possessive", "of Esfand").toString(locale());
338 QString KCalendarSystemJalaliPrivate::weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
408 KCalendarSystemJalali::KCalendarSystemJalali(const KSharedConfig::Ptr config, const KLocale *locale)
virtual bool julianDayToDate(int jd, int &year, int &month, int &day) const
Internal method to convert a Julian Day number into the YMD values for this calendar system...
Definition: kcalendarsystemjalali.cpp:515
QString toString() const
Finalizes the translation, creates QString with placeholders substituted.
Definition: klocalizedstring.cpp:192
virtual bool isLeapYear(int year) const =0
Returns whether a given year is a leap year.
Definition: kcalendarsystem.cpp:1720
virtual int earliestValidYear() const
Definition: kcalendarsystem.cpp:371
virtual QString monthName(int month, int year, MonthNameFormat format=LongName) const =0
Gets specific calendar type month name for a given month number If an invalid month is specified...
Definition: kcalendarsystem.cpp:1842
virtual void loadDefaultEraList()
Definition: kcalendarsystem.cpp:269
virtual int monthsInYear(int year) const
Definition: kcalendarsystem.cpp:277
virtual int day(const QDate &date) const
Returns the day portion of a given date in the current calendar system.
Definition: kcalendarsystem.cpp:1357
virtual int weekDayOfPray() const
Definition: kcalendarsystemjalali.cpp:490
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const
Gets specific calendar type week day name.
Definition: kcalendarsystemjalali.cpp:480
KCalendarSystemJalali(const KLocale *locale=0)
Definition: kcalendarsystemjalali.cpp:402
virtual int maxMonthsInYear() const
Definition: kcalendarsystem.cpp:362
KCalendarSystem abstract base class, provides support for local Calendar Systems in KDE...
Definition: kcalendarsystem.h:40
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
virtual int daysInYear(int year) const
Definition: kcalendarsystem.cpp:304
virtual int daysInWeek() const
Definition: kcalendarsystem.cpp:315
virtual QDate earliestValidDate() const
Returns the earliest date valid in this calendar system implementation.
Definition: kcalendarsystemjalali.cpp:436
virtual QString monthName(int month, int year, MonthNameFormat format=LongName) const
Gets specific calendar type month name for a given month number If an invalid month is specified...
Definition: kcalendarsystemjalali.cpp:470
virtual ~KCalendarSystemJalali()
Definition: kcalendarsystemjalali.cpp:421
Jalali Calendar, aka Persian or Iranian, also used in Afghanistan.
Definition: klocale.h:796
virtual bool isValid(int year, int month, int day) const
Returns whether a given date is valid in this calendar system.
Definition: kcalendarsystemjalali.cpp:450
int toJulianDay() const
virtual bool isSolar() const
Returns whether the calendar is solar based.
Definition: kcalendarsystemjalali.cpp:505
virtual bool isProleptic() const
Returns whether the calendar system is proleptic, i.e.
Definition: kcalendarsystemjalali.cpp:510
virtual QString calendarType() const
Definition: kcalendarsystemjalali.cpp:425
virtual bool hasLeapMonths() const
Definition: kcalendarsystem.cpp:341
virtual bool isValid(int year, int month, int day) const =0
Returns whether a given date is valid in this calendar system.
Definition: kcalendarsystem.cpp:1133
virtual bool isLunisolar() const
Returns whether the calendar is lunisolar based.
Definition: kcalendarsystemjalali.cpp:500
virtual int maxDaysInWeek() const
Definition: kcalendarsystem.cpp:355
virtual bool isLunar() const
Returns whether the calendar is lunar based.
Definition: kcalendarsystemjalali.cpp:495
virtual bool hasYearZero() const
Definition: kcalendarsystem.cpp:348
virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive=false) const
Definition: kcalendarsystem.cpp:387
virtual int latestValidYear() const
Definition: kcalendarsystem.cpp:380
virtual int daysInMonth(int year, int month) const
Definition: kcalendarsystem.cpp:285
virtual bool dateToJulianDay(int year, int month, int day, int &jd) const
Internal method to convert YMD values for this calendar system into a Julian Day number.
Definition: kcalendarsystemjalali.cpp:573
KLocale provides support for country specific stuff like the national language.
Definition: klocale.h:69
virtual QString weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
Definition: kcalendarsystem.cpp:398
KLocalizedString ki18nc(const char *ctxt, const char *msg)
Creates localized string from a given message, with added context.
Definition: klocalizedstring.cpp:929
virtual bool isLeapYear(int year) const
Returns whether a given year is a leap year.
Definition: kcalendarsystemjalali.cpp:460
virtual QDate epoch() const
Returns a QDate holding the epoch of the calendar system.
Definition: kcalendarsystemjalali.cpp:430
virtual KLocale::CalendarSystem calendarSystem() const
Definition: kcalendarsystem.cpp:261
virtual bool isLeapYear(int year) const
Definition: kcalendarsystem.cpp:322
QDate fromJulianDay(int jd)
virtual QDate latestValidDate() const
Returns the latest date valid in this calendar system implementation.
Definition: kcalendarsystemjalali.cpp:443
QDate firstDayOfYear(int year) const
Definition: kcalendarsystem.cpp:1743
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const =0
Gets specific calendar type week day name.
Definition: kcalendarsystem.cpp:1881
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.