00001 #ifndef _HOLIDAY_PLUGIN_H 00002 #define _HOLIDAY_PLUGIN_H 00003 00004 #include <qstring.h> 00005 #include <qstringlist.h> 00006 #include <qdatetime.h> 00007 #include <qmap.h> 00008 #include <qwidget.h> 00009 00010 class EffectiveEvent; 00011 00012 namespace Opie { 00013 namespace Datebook { 00014 00015 class HolidayPluginConfigWidget; 00016 00017 class HolidayPlugin 00018 { 00019 public: 00020 HolidayPlugin(){}; 00021 virtual ~HolidayPlugin(){}; 00022 virtual QString description()=0; 00023 virtual QStringList entries(const QDate&)=0; 00024 virtual QStringList entries(unsigned year, unsigned month, unsigned day)=0; 00025 virtual QMap<QDate,QStringList> entries(const QDate&,const QDate&)=0; 00026 virtual QValueList<EffectiveEvent> events(const QDate&,const QDate&)=0; 00027 00028 virtual HolidayPluginConfigWidget*configWidget(QWidget *parent=0, const char *name = 0, QWidget::WFlags fl = 0 ){return 0;} 00029 }; 00030 } 00031 } 00032 #endif 00033
1.4.2