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