00001 #ifndef _DATEBOOKWEEKLISTVIEW_H
00002 #define _DATEBOOKWEEKLISTVIEW_H
00003
00004 #include <qpe/event.h>
00005
00006 #include <qwidget.h>
00007 #include <qvaluelist.h>
00008 #include <qstring.h>
00009 #include <qdatetime.h>
00010
00011 class QKeyEvent;
00012 class QVBoxLayout;
00013
00014 class DateBookWeekLstView: public QWidget
00015 {
00016 Q_OBJECT
00017 public:
00018 DateBookWeekLstView(QValueList<EffectiveEvent> &ev, const QDate &d, bool onM, QWidget* parent = 0, const char* name = 0,
00019 WFlags fl = 0 );
00020 ~DateBookWeekLstView();
00021
00022 void setEvents(QValueList<EffectiveEvent> &ev, const QDate &d, bool onM);
00023
00024 signals:
00025 void editEvent(const Event &e);
00026 void duplicateEvent(const Event &e);
00027 void removeEvent(const Event &e);
00028 void beamEvent(const Event &e);
00029 void redraw();
00030 void showDate(int y, int m, int d);
00031 void addEvent(const QDateTime &start, const QDateTime &stop,
00032 const QString &str, const QString &location);
00033 protected:
00034 bool bStartOnMonday;
00035 QValueList<QObject*> childs;
00036
00037 QVBoxLayout*m_MainLayout;
00038
00039 protected slots:
00040 void keyPressEvent(QKeyEvent *);
00041 };
00042
00043 #endif