\section{KCalendar\-System Class Reference}
\label{classKCalendarSystem}\index{KCalendarSystem@{KCalendarSystem}}
Calendar\-System abstract class, default derived kde gregorian class and factory class.  


{\tt \#include $<$kcalendarsystem.h$>$}

Inheritance diagram for KCalendar\-System:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=77pt]{classKCalendarSystem__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KCalendar\-System} (const {\bf KLocale} $\ast$locale=0)
\item 
virtual {\bf $\sim$KCalendar\-System} ()
\item 
virtual int {\bf year} (const {\bf QDate} \&date) const =0
\item 
virtual {\bf QString} {\bf year\-String} (const {\bf QDate} \&p\-Date, bool b\-Short) const 
\item 
virtual int {\bf year\-String\-To\-Integer} (const {\bf QString} \&s\-Num, int \&i\-Length) const 
\item 
virtual int {\bf month} (const {\bf QDate} \&date) const =0
\item 
virtual {\bf QString} {\bf month\-String} (const {\bf QDate} \&p\-Date, bool b\-Short) const 
\item 
virtual int {\bf month\-String\-To\-Integer} (const {\bf QString} \&s\-Num, int \&i\-Length) const 
\item 
virtual int {\bf day} (const {\bf QDate} \&date) const =0
\item 
virtual {\bf QString} {\bf day\-String} (const {\bf QDate} \&p\-Date, bool b\-Short) const 
\item 
virtual int {\bf day\-String\-To\-Integer} (const {\bf QString} \&s\-Num, int \&i\-Length) const 
\item 
virtual int {\bf day\-Of\-Week} (const {\bf QDate} \&date) const =0
\item 
virtual int {\bf day\-Of\-Year} (const {\bf QDate} \&date) const =0
\item 
virtual bool {\bf set\-YMD} ({\bf QDate} \&date, int y, int m, int d) const =0
\item 
virtual {\bf QDate} {\bf add\-Years} (const {\bf QDate} \&date, int nyears) const =0
\item 
virtual {\bf QDate} {\bf add\-Months} (const {\bf QDate} \&date, int nmonths) const =0
\item 
virtual {\bf QDate} {\bf add\-Days} (const {\bf QDate} \&date, int ndays) const =0
\item 
virtual int {\bf months\-In\-Year} (const {\bf QDate} \&date) const =0
\item 
virtual int {\bf days\-In\-Year} (const {\bf QDate} \&date) const =0
\item 
virtual int {\bf days\-In\-Month} (const {\bf QDate} \&date) const =0
\item 
virtual int {\bf weeks\-In\-Year} (int year) const =0
\item 
virtual int {\bf week\-Number} (const {\bf QDate} \&date, int $\ast$year\-Num=0) const =0
\item 
virtual {\bf QString} {\bf month\-Name} (int month, int year, bool short\-Name=false) const =0
\item 
virtual {\bf QString} {\bf month\-Name} (const {\bf QDate} \&date, bool short\-Name=false) const =0
\item 
virtual {\bf QString} {\bf month\-Name\-Possessive} (int month, int year, bool short\-Name=false) const =0
\item 
virtual {\bf QString} {\bf month\-Name\-Possessive} (const {\bf QDate} \&date, bool short\-Name=false) const =0
\item 
virtual {\bf QString} {\bf week\-Day\-Name} (int week\-Day, bool short\-Name=false) const =0
\item 
virtual {\bf QString} {\bf week\-Day\-Name} (const {\bf QDate} \&date, bool short\-Name=false) const =0
\item 
virtual int {\bf min\-Valid\-Year} () const =0
\item 
virtual int {\bf max\-Valid\-Year} () const =0
\item 
virtual int {\bf week\-Day\-Of\-Pray} () const =0
\item 
virtual {\bf QString} {\bf calendar\-Name} () const =0
\item 
virtual bool {\bf is\-Lunar} () const =0
\item 
virtual bool {\bf is\-Lunisolar} () const =0
\item 
virtual bool {\bf is\-Solar} () const =0
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
const {\bf KLocale} $\ast$ {\bf locale} () const \label{classKCalendarSystem_b0}

\end{CompactItemize}


\subsection{Detailed Description}
Calendar\-System abstract class, default derived kde gregorian class and factory class. 

Provides support for different calendar types for kde calendar widget and related stuff.

Derived classes must be created through KCalendar\-Factory class

\begin{Desc}
\item[Author:]Carlos Moro $<${\tt cfmoro@correo.uniovi.es}$>$ \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}




Definition at line 42 of file kcalendarsystem.h.

\subsection{Constructor \& Destructor Documentation}
\index{KCalendarSystem@{KCalendar\-System}!KCalendarSystem@{KCalendarSystem}}
\index{KCalendarSystem@{KCalendarSystem}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KCalendar\-System::KCalendar\-System (const {\bf KLocale} $\ast$ {\em locale} = {\tt 0})}\label{classKCalendarSystem_a0}


Constructor of abstract calendar class. 

This will be called by the derived classes.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em locale}]It will use this locale for translations, 0 means global. \end{description}
\end{Desc}


Definition at line 36 of file kcalendarsystem.cpp.\index{KCalendarSystem@{KCalendar\-System}!~KCalendarSystem@{$\sim$KCalendarSystem}}
\index{~KCalendarSystem@{$\sim$KCalendarSystem}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KCalendar\-System::$\sim${\bf KCalendar\-System} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKCalendarSystem_a1}


Descructor. 



Definition at line 42 of file kcalendarsystem.cpp.

\subsection{Member Function Documentation}
\index{KCalendarSystem@{KCalendar\-System}!year@{year}}
\index{year@{year}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KCalendar\-System::year (const {\bf QDate} \& {\em date}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a2}


Gets specific calendar type year for a given gregorian date. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]gregorian date \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]year \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a2})}.

Referenced by KLocale::format\-Date(), KLocale::read\-Date(), and year\-String().\index{KCalendarSystem@{KCalendar\-System}!yearString@{yearString}}
\index{yearString@{yearString}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KCalendar\-System::year\-String (const {\bf QDate} \& {\em p\-Date}, bool {\em b\-Short}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKCalendarSystem_a3}


Converts a date into a year literal. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em p\-Date}]The date to convert \item[{\em b\-Short}]If the short version of should be used \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The year literal of the date \end{Desc}


Definition at line 77 of file kcalendarsystem.cpp.

References QString::length(), QString::right(), QString::set\-Num(), and year().\index{KCalendarSystem@{KCalendar\-System}!yearStringToInteger@{yearStringToInteger}}
\index{yearStringToInteger@{yearStringToInteger}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KCalendar\-System::year\-String\-To\-Integer (const {\bf QString} \& {\em s\-Num}, int \& {\em i\-Length}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKCalendarSystem_a4}


Converts a year literal of a part of a string into a integer starting at the beginning of the string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em s\-Num}]The string to parse \item[{\em i\-Length}]The number of QChars used, and 0 if no valid symbols was found in the string \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]An integer corresponding to the year \end{Desc}


Definition at line 114 of file kcalendarsystem.cpp.

Referenced by KLocale::read\-Date().\index{KCalendarSystem@{KCalendar\-System}!month@{month}}
\index{month@{month}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KCalendar\-System::month (const {\bf QDate} \& {\em date}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a5}


Gets specific calendar type month for a given gregorian date. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]gregorian date \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]month number \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a3})}.

Referenced by KLocale::format\-Date(), and month\-String().\index{KCalendarSystem@{KCalendar\-System}!monthString@{monthString}}
\index{monthString@{monthString}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KCalendar\-System::month\-String (const {\bf QDate} \& {\em p\-Date}, bool {\em b\-Short}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKCalendarSystem_a6}


Converts a date into a month literal. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em p\-Date}]The date to convert \item[{\em b\-Short}]If the short version of should be used \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The month literal of the date \end{Desc}


Definition at line 66 of file kcalendarsystem.cpp.

References QString::length(), month(), QString::prepend(), and QString::set\-Num().\index{KCalendarSystem@{KCalendar\-System}!monthStringToInteger@{monthStringToInteger}}
\index{monthStringToInteger@{monthStringToInteger}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KCalendar\-System::month\-String\-To\-Integer (const {\bf QString} \& {\em s\-Num}, int \& {\em i\-Length}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKCalendarSystem_a7}


Converts a month literal of a part of a string into a integer starting at the beginning of the string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em s\-Num}]The string to parse \item[{\em i\-Length}]The number of QChars used, and 0 if no valid symbols was found in the string \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]An integer corresponding to the month \end{Desc}


Definition at line 109 of file kcalendarsystem.cpp.

Referenced by KLocale::read\-Date().\index{KCalendarSystem@{KCalendar\-System}!day@{day}}
\index{day@{day}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KCalendar\-System::day (const {\bf QDate} \& {\em date}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a8}


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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]gregorian date equivalent to the specific one \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]day of the month \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a4})}.

Referenced by day\-String().\index{KCalendarSystem@{KCalendar\-System}!dayString@{dayString}}
\index{dayString@{dayString}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KCalendar\-System::day\-String (const {\bf QDate} \& {\em p\-Date}, bool {\em b\-Short}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKCalendarSystem_a9}


Converts a date into a day literal. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em p\-Date}]The date to convert \item[{\em b\-Short}]If the short version of should be used \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The day literal of the date \end{Desc}


Definition at line 55 of file kcalendarsystem.cpp.

References day(), QString::length(), QString::prepend(), and QString::set\-Num().\index{KCalendarSystem@{KCalendar\-System}!dayStringToInteger@{dayStringToInteger}}
\index{dayStringToInteger@{dayStringToInteger}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KCalendar\-System::day\-String\-To\-Integer (const {\bf QString} \& {\em s\-Num}, int \& {\em i\-Length}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKCalendarSystem_a10}


Converts a day literal of a part of a string into a integer starting at the beginning of the string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em s\-Num}]The string to parse \item[{\em i\-Length}]The number of QChars used, and 0 if no valid symbols was found in the string \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]An integer corresponding to the day \end{Desc}


Definition at line 104 of file kcalendarsystem.cpp.

Referenced by KLocale::read\-Date().\index{KCalendarSystem@{KCalendar\-System}!dayOfWeek@{dayOfWeek}}
\index{dayOfWeek@{dayOfWeek}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KCalendar\-System::day\-Of\-Week (const {\bf QDate} \& {\em date}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a11}


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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]gregorian date \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]day of week \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a5})}.\index{KCalendarSystem@{KCalendar\-System}!dayOfYear@{dayOfYear}}
\index{dayOfYear@{dayOfYear}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KCalendar\-System::day\-Of\-Year (const {\bf QDate} \& {\em date}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a12}


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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]gregorian date equivalent to the specific one \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]day number \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a6})}.\index{KCalendarSystem@{KCalendar\-System}!setYMD@{setYMD}}
\index{setYMD@{setYMD}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KCalendar\-System::set\-YMD ({\bf QDate} \& {\em date}, int {\em y}, int {\em m}, int {\em d}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a13}


Changes the date's year, month and day. 

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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]Date to change \item[{\em y}]Year \item[{\em m}]Month number \item[{\em d}]Day of month \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the date is valid; otherwise returns false. \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a7})}.

Referenced by KLocale::read\-Date().\index{KCalendarSystem@{KCalendar\-System}!addYears@{addYears}}
\index{addYears@{addYears}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QDate} KCalendar\-System::add\-Years (const {\bf QDate} \& {\em date}, int {\em nyears}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a14}


Returns a {\bf QDate} object containing a date nyears later. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]The old date \item[{\em nyears}]The number of years to add \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The new date \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a8})}.\index{KCalendarSystem@{KCalendar\-System}!addMonths@{addMonths}}
\index{addMonths@{addMonths}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QDate} KCalendar\-System::add\-Months (const {\bf QDate} \& {\em date}, int {\em nmonths}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a15}


Returns a {\bf QDate} object containing a date nmonths later. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]The old date \item[{\em nmonths}]The number of months to add \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The new date \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a9})}.\index{KCalendarSystem@{KCalendar\-System}!addDays@{addDays}}
\index{addDays@{addDays}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QDate} KCalendar\-System::add\-Days (const {\bf QDate} \& {\em date}, int {\em ndays}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a16}


Returns a {\bf QDate} object containing a date ndays later. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]The old date \item[{\em ndays}]The number of days to add \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The new date \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a10})}.\index{KCalendarSystem@{KCalendar\-System}!monthsInYear@{monthsInYear}}
\index{monthsInYear@{monthsInYear}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KCalendar\-System::months\-In\-Year (const {\bf QDate} \& {\em date}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a17}


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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]The date whose year to use \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The number of months in that year \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a11})}.\index{KCalendarSystem@{KCalendar\-System}!daysInYear@{daysInYear}}
\index{daysInYear@{daysInYear}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KCalendar\-System::days\-In\-Year (const {\bf QDate} \& {\em date}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a18}


Gets the number of days in date whose years specified. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]Gregorian date equivalent to the specific one \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The number of days in year \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a12})}.\index{KCalendarSystem@{KCalendar\-System}!daysInMonth@{daysInMonth}}
\index{daysInMonth@{daysInMonth}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KCalendar\-System::days\-In\-Month (const {\bf QDate} \& {\em date}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a19}


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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]gregorian date \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]number of days for month in date \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a13})}.\index{KCalendarSystem@{KCalendar\-System}!weeksInYear@{weeksInYear}}
\index{weeksInYear@{weeksInYear}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KCalendar\-System::weeks\-In\-Year (int {\em year}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a20}


Gets the number of weeks in a specified year. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em year}]the year \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]number of weeks in year \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a14})}.\index{KCalendarSystem@{KCalendar\-System}!weekNumber@{weekNumber}}
\index{weekNumber@{weekNumber}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KCalendar\-System::week\-Number (const {\bf QDate} \& {\em date}, int $\ast$ {\em year\-Num} = {\tt 0}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a21}


Gets specific calendar type week number for a given date. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]gregorian date \item[{\em year\-Num}]The year the date belongs to \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]week number \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a15})}.\index{KCalendarSystem@{KCalendar\-System}!monthName@{monthName}}
\index{monthName@{monthName}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KCalendar\-System::month\-Name (int {\em month}, int {\em year}, bool {\em short\-Name} = {\tt false}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a22}


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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em month}]The month number \item[{\em year}]The year the month belongs to \item[{\em short\-Name}]Specifies if the short month name should be used \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The name of the month \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a21})}.

Referenced by KLocale::read\-Date().\index{KCalendarSystem@{KCalendar\-System}!monthName@{monthName}}
\index{monthName@{monthName}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KCalendar\-System::month\-Name (const {\bf QDate} \& {\em date}, bool {\em short\-Name} = {\tt false}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a23}


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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]Gregorian date \item[{\em short\-Name}]Specifies if the short month name should be used \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The name of the month \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a16})}.\index{KCalendarSystem@{KCalendar\-System}!monthNamePossessive@{monthNamePossessive}}
\index{monthNamePossessive@{monthNamePossessive}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KCalendar\-System::month\-Name\-Possessive (int {\em month}, int {\em year}, bool {\em short\-Name} = {\tt false}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a24}


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

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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em month}]The month number \item[{\em year}]The year the month belongs to \item[{\em short\-Name}]Specifies if the short month name should be used\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The possessive form of the name of the month \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a20})}.

Referenced by KLocale::read\-Date().\index{KCalendarSystem@{KCalendar\-System}!monthNamePossessive@{monthNamePossessive}}
\index{monthNamePossessive@{monthNamePossessive}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KCalendar\-System::month\-Name\-Possessive (const {\bf QDate} \& {\em date}, bool {\em short\-Name} = {\tt false}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a25}


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

(\char`\"{}of January\char`\"{}, \char`\"{}of February\char`\"{}, etc.) It's needed in long format dates in some languages.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]Gregorian date \item[{\em short\-Name}]Specifies if the short month name should be used\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The possessive form of the name of the month \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a17})}.\index{KCalendarSystem@{KCalendar\-System}!weekDayName@{weekDayName}}
\index{weekDayName@{weekDayName}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KCalendar\-System::week\-Day\-Name (int {\em week\-Day}, bool {\em short\-Name} = {\tt false}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a26}


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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em week\-Day}]number of day in week (1 -$>$ Monday) \item[{\em short\-Name}]short or complete day name \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]day name \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a18})}.

Definition at line 119 of file kcalendarsystem.cpp.

References KLocale::translate().

Referenced by KLocale::read\-Date(), and KLocale::week\-Day\-Name().\index{KCalendarSystem@{KCalendar\-System}!weekDayName@{weekDayName}}
\index{weekDayName@{weekDayName}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KCalendar\-System::week\-Day\-Name (const {\bf QDate} \& {\em date}, bool {\em short\-Name} = {\tt false}) const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a27}


Gets specific calendar type week day name. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em date}]the date \item[{\em short\-Name}]short or complete day name \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]day name \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a19})}.\index{KCalendarSystem@{KCalendar\-System}!minValidYear@{minValidYear}}
\index{minValidYear@{minValidYear}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KCalendar\-System::min\-Valid\-Year () const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a28}


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

\begin{Desc}
\item[Returns:]first year supported \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a22})}.\index{KCalendarSystem@{KCalendar\-System}!maxValidYear@{maxValidYear}}
\index{maxValidYear@{maxValidYear}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KCalendar\-System::max\-Valid\-Year () const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a29}


Gets the maximum year value supported by specific calendar type algorithms ({\bf QDate}, 8000). 

\begin{Desc}
\item[Returns:]maximum year supported \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a23})}.\index{KCalendarSystem@{KCalendar\-System}!weekDayOfPray@{weekDayOfPray}}
\index{weekDayOfPray@{weekDayOfPray}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual int KCalendar\-System::week\-Day\-Of\-Pray () const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a30}


Gets the day of the week traditionaly associated with pray. 

\begin{Desc}
\item[Returns:]day number \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a24})}.\index{KCalendarSystem@{KCalendar\-System}!calendarName@{calendarName}}
\index{calendarName@{calendarName}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KCalendar\-System::calendar\-Name () const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a31}


Gets the string representing the calendar. 



Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a25})}.\index{KCalendarSystem@{KCalendar\-System}!isLunar@{isLunar}}
\index{isLunar@{isLunar}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KCalendar\-System::is\-Lunar () const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a32}


Gets if the calendar is lunar based. 

\begin{Desc}
\item[Returns:]if the calendar is lunar based \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a26})}.\index{KCalendarSystem@{KCalendar\-System}!isLunisolar@{isLunisolar}}
\index{isLunisolar@{isLunisolar}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KCalendar\-System::is\-Lunisolar () const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a33}


Gets if the calendar is lunisolar based. 

\begin{Desc}
\item[Returns:]if the calendar is lunisolar based \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a27})}.\index{KCalendarSystem@{KCalendar\-System}!isSolar@{isSolar}}
\index{isSolar@{isSolar}!KCalendarSystem@{KCalendar\-System}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KCalendar\-System::is\-Solar () const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCalendarSystem_a34}


Gets if the calendar is solar based. 

\begin{Desc}
\item[Returns:]if the calendar is solar based \end{Desc}


Implemented in {\bf KCalendar\-System\-Jalali} {\rm (p.\,\pageref{classKCalendarSystemJalali_a28})}.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kcalendarsystem.h\item 
kcalendarsystem.cpp\end{CompactItemize}
