[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: calendar_support: kdelibs/kdecore
From: Carlos Moro <cfmoro () correo ! uniovi ! es>
Date: 2002-12-24 20:42:07
[Download RAW message or body]
CVS commit by cfmoro:
Added calendar type functions
M +33 -2 kcalendarsystem.h 1.1.2.12
--- kdelibs/kdecore/kcalendarsystem.h #1.1.2.11:1.1.2.12
@@ -172,5 +172,5 @@ public:
* @return week number
*/
- virtual int weekNumber(const QDate& date) const = 0;
+ virtual int weekNumber(const QDate& date, int * yearNum = 0) const = 0;
/**
@@ -226,4 +226,14 @@ public:
/**
+ * Gets specific calendar type week day name
+ *
+ * @param date the date
+ * @param shortName short or complete day name
+ * @return day name
+ */
+ virtual QString weekDayName (const QDate & date, bool shortName = false) const = 0;
+
+
+ /**
* Gets the first year value supported by specific calendar type
* algorithms.
@@ -252,4 +262,25 @@ public:
*/
virtual QString calendarName() const = 0;
+
+ /**
+ * Gets if the calendar is lunar based
+ *
+ * @return if the calendar is lunar based
+ */
+ virtual bool isLunar() const = 0;
+
+ /**
+ * Gets if the calendar is lunisolar based
+ *
+ * @return if the calendar is lunisolar based
+ */
+ virtual bool isLunisolar() const = 0;
+
+ /**
+ * Gets if the calendar is solar based
+ *
+ * @return if the calendar is solar based
+ */
+ virtual bool isSolar() const = 0;
protected:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic