author | alwin <alwin> | 2005-03-18 16:57:24 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-18 16:57:24 (UTC) |
commit | 977193cc46768da220ddb01aca74286b28e6b7ee (patch) (unidiff) | |
tree | eff59fc4011b0b3a6fd610b2b04e934eb21a0687 /core/pim/datebook/holiday/national/nationalholiday.h | |
parent | f32b76432aeb554204f06ca15ed1ec8d5387fb12 (diff) | |
download | opie-977193cc46768da220ddb01aca74286b28e6b7ee.zip opie-977193cc46768da220ddb01aca74286b28e6b7ee.tar.gz opie-977193cc46768da220ddb01aca74286b28e6b7ee.tar.bz2 |
work on plugins finished.
these plugins now may have a config-widget (sorry guys - I had to change the
plugininterface and so the UUID again.)
the plugin for nationalholidays now has such a widget, the datebook will insert
configwidgets into its settingsdialog.
corrected the .pro file of opiepim2/ui so it contains the header/cpp files
for that pluginsystem.
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 | |||
@@ -2,12 +2,13 @@ | |||
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 | { |
@@ -18,12 +19,13 @@ public: | |||
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; |