summaryrefslogtreecommitdiff
path: root/core/pim/datebook/holiday/christian/chrisholiday.h
Unidiff
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.h33
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 @@
1#ifndef __DUMMY_HOLIDAY_H
2#define __DUMMY_HOLIDAY_H
3
4#include "hlist.h"
5
6#include <opie2/oholidayplugin.h>
7#include <opie2/oholidaypluginif.h>
8
9#include <qmap.h>
10
11class ChrisHoliday:public Opie::Datebook::HolidayPlugin
12{
13typedef QMap<QDate,QStringList> tDayMap;
14
15public:
16 ChrisHoliday():Opie::Datebook::HolidayPlugin(){_lastyear=0;}
17 virtual ~ChrisHoliday(){}
18
19 virtual QString description();
20 virtual QStringList entries(const QDate&);
21 virtual QStringList entries(unsigned year, unsigned month, unsigned day);
22protected:
23 HList _internallist;
24 unsigned int _lastyear;
25 tDayMap _days;
26
27 void calcit(int year);
28 void calc_easter();
29 void calc_christmas();
30};
31
32EXPORT_HOLIDAY_PLUGIN(ChrisHoliday);
33#endif