summaryrefslogtreecommitdiff
path: root/core/pim/datebook/modules/weeklst/datebookweeklstview.h
Unidiff
Diffstat (limited to 'core/pim/datebook/modules/weeklst/datebookweeklstview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/modules/weeklst/datebookweeklstview.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/core/pim/datebook/modules/weeklst/datebookweeklstview.h b/core/pim/datebook/modules/weeklst/datebookweeklstview.h
index 2428f1f..3d47842 100644
--- a/core/pim/datebook/modules/weeklst/datebookweeklstview.h
+++ b/core/pim/datebook/modules/weeklst/datebookweeklstview.h
@@ -1,36 +1,43 @@
1#ifndef _DATEBOOKWEEKLISTVIEW_H 1#ifndef _DATEBOOKWEEKLISTVIEW_H
2#define _DATEBOOKWEEKLISTVIEW_H 2#define _DATEBOOKWEEKLISTVIEW_H
3 3
4#include <qpe/event.h> 4#include <qpe/event.h>
5 5
6#include <qwidget.h> 6#include <qwidget.h>
7#include <qvaluelist.h> 7#include <qvaluelist.h>
8#include <qstring.h> 8#include <qstring.h>
9#include <qdatetime.h> 9#include <qdatetime.h>
10 10
11class QKeyEvent; 11class QKeyEvent;
12class QVBoxLayout;
12 13
13class DateBookWeekLstView: public QWidget 14class DateBookWeekLstView: public QWidget
14{ 15{
15 Q_OBJECT 16 Q_OBJECT
16public: 17public:
17 DateBookWeekLstView(QValueList<EffectiveEvent> &ev, const QDate &d, bool onM, 18 DateBookWeekLstView(QValueList<EffectiveEvent> &ev, const QDate &d, bool onM, QWidget* parent = 0, const char* name = 0,
18 QWidget* parent = 0, const char* name = 0,
19 WFlags fl = 0 ); 19 WFlags fl = 0 );
20 ~DateBookWeekLstView(); 20 ~DateBookWeekLstView();
21
22 void setEvents(QValueList<EffectiveEvent> &ev, const QDate &d, bool onM);
23
21signals: 24signals:
22 void editEvent(const Event &e); 25 void editEvent(const Event &e);
23 void duplicateEvent(const Event &e); 26 void duplicateEvent(const Event &e);
24 void removeEvent(const Event &e); 27 void removeEvent(const Event &e);
25 void beamEvent(const Event &e); 28 void beamEvent(const Event &e);
26 void redraw(); 29 void redraw();
27 void showDate(int y, int m, int d); 30 void showDate(int y, int m, int d);
28 void addEvent(const QDateTime &start, const QDateTime &stop, 31 void addEvent(const QDateTime &start, const QDateTime &stop,
29 const QString &str, const QString &location); 32 const QString &str, const QString &location);
30private: 33protected:
31 bool bStartOnMonday; 34 bool bStartOnMonday;
35 QValueList<QObject*> childs;
36
37 QVBoxLayout*m_MainLayout;
38
32protected slots: 39protected slots:
33 void keyPressEvent(QKeyEvent *); 40 void keyPressEvent(QKeyEvent *);
34}; 41};
35 42
36#endif 43#endif