summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/ui/oholidayplugin.h
blob: 192a020d1e6543d48507a4402cd394d3ebddbcd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef _HOLIDAY_PLUGIN_H
#define _HOLIDAY_PLUGIN_H

#include <qstring.h>
#include <qstringlist.h>
#include <qdatetime.h>
#include <qmap.h>
#include <qwidget.h>

class EffectiveEvent;

namespace Opie {
namespace Datebook {

class HolidayPluginConfigWidget;

class HolidayPlugin
{
public:
    HolidayPlugin(){};
    virtual ~HolidayPlugin(){};
    virtual QString description()=0;
    virtual QStringList entries(const QDate&)=0;
    virtual QStringList entries(unsigned year, unsigned month, unsigned day)=0;
    virtual QMap<QDate,QStringList> entries(const QDate&,const QDate&)=0;
    virtual QValueList<EffectiveEvent> events(const QDate&,const QDate&)=0;

    virtual HolidayPluginConfigWidget*configWidget(QWidget *parent=0,  const char *name = 0, QWidget::WFlags fl = 0 ){return 0;}
};
}
}
#endif