Diffstat (limited to 'core/pim/datebook/holiday/christian/chrisholiday.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook/holiday/christian/chrisholiday.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/core/pim/datebook/holiday/christian/chrisholiday.h b/core/pim/datebook/holiday/christian/chrisholiday.h new file mode 100644 index 0000000..5f43e85 --- a/dev/null +++ b/core/pim/datebook/holiday/christian/chrisholiday.h @@ -0,0 +1,33 @@ +#ifndef __DUMMY_HOLIDAY_H
+#define __DUMMY_HOLIDAY_H
+
+#include "hlist.h"
+
+#include <opie2/oholidayplugin.h>
+#include <opie2/oholidaypluginif.h>
+
+#include <qmap.h>
+
+class ChrisHoliday:public Opie::Datebook::HolidayPlugin
+{
+typedef QMap<QDate,QStringList> tDayMap;
+
+public:
+ ChrisHoliday():Opie::Datebook::HolidayPlugin(){_lastyear=0;}
+ virtual ~ChrisHoliday(){}
+
+ virtual QString description();
+ virtual QStringList entries(const QDate&);
+ virtual QStringList entries(unsigned year, unsigned month, unsigned day);
+protected:
+ HList _internallist;
+ unsigned int _lastyear;
+ tDayMap _days;
+
+ void calcit(int year);
+ void calc_easter();
+ void calc_christmas();
+};
+
+EXPORT_HOLIDAY_PLUGIN(ChrisHoliday);
+#endif
|