Diffstat (limited to 'core/pim/datebook/holiday/national/nationalholiday.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/holiday/national/nationalholiday.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/core/pim/datebook/holiday/national/nationalholiday.h b/core/pim/datebook/holiday/national/nationalholiday.h new file mode 100644 index 0000000..6581263 --- a/dev/null +++ b/core/pim/datebook/holiday/national/nationalholiday.h | |||
@@ -0,0 +1,34 @@ | |||
1 | #ifndef __NATIONAL_HOLIDAY_H | ||
2 | #define __NATIONAL_HOLIDAY_H | ||
3 | |||
4 | #include "nationalcfg.h" | ||
5 | |||
6 | #include <opie2/oholidayplugin.h> | ||
7 | #include <opie2/oholidaypluginif.h> | ||
8 | |||
9 | #include <qmap.h> | ||
10 | #include <qstringlist.h> | ||
11 | |||
12 | class NationalHoliday:public Opie::Datebook::HolidayPlugin | ||
13 | { | ||
14 | |||
15 | public: | ||
16 | NationalHoliday(); | ||
17 | virtual ~NationalHoliday(){} | ||
18 | |||
19 | virtual QString description(); | ||
20 | virtual QStringList entries(const QDate&); | ||
21 | virtual QStringList entries(unsigned year, unsigned month, unsigned day); | ||
22 | virtual QMap<QDate,QStringList> entries(const QDate&,const QDate&); | ||
23 | virtual QValueList<EffectiveEvent> events(const QDate&,const QDate&); | ||
24 | |||
25 | protected: | ||
26 | void init(); | ||
27 | unsigned int _lastyear; | ||
28 | tholidaylist _days; | ||
29 | QStringList files; | ||
30 | bool init_done:1; | ||
31 | void load_days(); | ||
32 | }; | ||
33 | |||
34 | #endif | ||