27#include "kcalendarsystemfactory.h"
29#include "kcalendarsystemgregorian.h"
30#include "kcalendarsystemhijri.h"
31#include "kcalendarsystemhebrew.h"
32#include "kcalendarsystemjalali.h"
34KCalendarSystemFactory::KCalendarSystemFactory()
36 kdDebug(5400) <<
"Created factory calendar" <<
endl;
39KCalendarSystemFactory::~KCalendarSystemFactory()
46 if ( calType ==
"hebrew" )
47 return new KCalendarSystemHebrew(locale);
48 if ( calType ==
"hijri" )
49 return new KCalendarSystemHijri(locale);
50 if ( calType ==
"gregorian" )
51 return new KCalendarSystemGregorian(locale);
52 if ( calType ==
"jalali" )
55 kdDebug(5400) <<
"Calendar " << calType <<
" not found, defaulting to gregorian" <<
endl;
58 return new KCalendarSystemGregorian(locale);
66 lst.append(
"gregorian");
static KCalendarSystem * create(const TQString &calType=TQString::fromLatin1("gregorian"), const TDELocale *locale=0)
Gets specific calendar type number of days in previous month for a given date.
static TQStringList calendarSystems()
Gets list of names of supported calendar systems.
Jalali calendar type implementation.
CalendarSystem abstract class, default derived kde gregorian class and factory class.
TDELocale provides support for country specific stuff like the national language.
kndbgstream & endl(kndbgstream &s)
Does nothing.