summaryrefslogtreecommitdiff
path: root/core/pim/datebook/holiday/birthday/birthday.h
blob: c308dd0fc3acfe164a49ea56c8744fd623afad51 (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
#ifndef __DUMMY_HOLIDAY_H
#define __DUMMY_HOLIDAY_H

#include <opie2/oholidayplugin.h>
#include <opie2/oholidaypluginif.h>
#include <opie2/ocontactaccess.h>

#include <qmap.h>

class Birthday:public Opie::Datebook::HolidayPlugin
{
typedef QMap<QDate,QStringList> tDayMap;

public:
    Birthday();
    virtual ~Birthday(){}

    virtual QString description();
    virtual QStringList entries(const QDate&);
    virtual QStringList entries(unsigned year, unsigned month, unsigned day);
    virtual QMap<QDate,QStringList> entries(const QDate&,const QDate&);
    virtual QValueList<EffectiveEvent> events(const QDate&,const QDate&);
protected:
    Opie::OPimContactAccess * m_contactdb;
    Opie::OPimContactAccess::List m_list;
    Opie::OPimContactAccess::List::Iterator m_it;
    virtual QMap<QDate,QString> _entries(const QDate&,const QDate&,bool anniversary);
};

#endif