summaryrefslogtreecommitdiff
path: root/core/pim/today/today.h
Side-by-side diff
Diffstat (limited to 'core/pim/today/today.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/core/pim/today/today.h b/core/pim/today/today.h
index b3b7d01..0a0837c 100644
--- a/core/pim/today/today.h
+++ b/core/pim/today/today.h
@@ -1,65 +1,84 @@
/*
* today.h
*
* ---------------------
*
* begin : Sun 10 17:20:00 CEST 2002
* copyright : (c) 2002 by Maximilian Reiß
* email : max.reiss@gmx.de
*
*/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef TODAY_H
#define TODAY_H
-#include "todaybase.h"
#include <qpe/datebookdb.h>
+#include <qpe/event.h>
#include <qdatetime.h>
#include <qlist.h>
+
#include "TodoItem.h"
#include "todayconfig.h"
+#include "todaybase.h"
+#include "clickablelabel.h"
+
+class QVBoxLayout;
-class Today : public TodayBase
-{
+class Today : public TodayBase {
Q_OBJECT
public:
Today( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~Today();
private slots:
void startConfig();
void startTodo();
void startDatebook();
void startMail();
void draw();
private:
void init();
void getDates();
void getTodo();
void getMail();
void autoStart();
bool checkIfModified();
QList<TodoItem> loadTodo(const char *filename);
private:
DateBookDB *db;
todayconfig *conf;
//Config cfg;
int MAX_LINES_TASK;
int MAX_CHAR_CLIP;
int MAX_LINES_MEET;
int SHOW_LOCATION;
int SHOW_NOTES;
};
+
+class DateBookEvent: public ClickableLabel {
+ Q_OBJECT
+public:
+ DateBookEvent(const EffectiveEvent &ev,
+ QWidget* parent = 0, const char* name = 0,
+ WFlags fl = 0);
+signals:
+ void editEvent(const Event &e);
+private slots:
+ void editMe();
+private:
+ const EffectiveEvent event;
+};
+
#endif // TODAY_H