author | alwin <alwin> | 2005-03-17 22:39:08 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-17 22:39:08 (UTC) |
commit | 8d0d50514ea163dd6f465d37831979f0e0f73039 (patch) (unidiff) | |
tree | f19f0acc02e6605674cb301a3b7892f9f0dcce87 /core/pim/datebook/holiday/national/nationalholiday.h | |
parent | 65b5d22571cdc6ef3967005ed831376466bdf5bd (diff) | |
download | opie-8d0d50514ea163dd6f465d37831979f0e0f73039.zip opie-8d0d50514ea163dd6f465d37831979f0e0f73039.tar.gz opie-8d0d50514ea163dd6f465d37831979f0e0f73039.tar.bz2 |
added datebook plugins for xml-configurable national holidays.
may someone is needing it ;)
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 | ||