-rw-r--r-- | core/pim/today/today.h | 97 |
1 files changed, 30 insertions, 67 deletions
diff --git a/core/pim/today/today.h b/core/pim/today/today.h index f28c029..ca17020 100644 --- a/core/pim/today/today.h +++ b/core/pim/today/today.h | |||
@@ -2,9 +2,6 @@ | |||
2 | * today.h | 2 | * today.h |
3 | * | 3 | * |
4 | * --------------------- | ||
5 | * | ||
6 | * begin : Sun 10 17:20:00 CEST 2002 | ||
7 | * copyright : (c) 2002 by Maximilian Reiß | 4 | * copyright : (c) 2002 by Maximilian Reiß |
8 | * email : max.reiss@gmx.de | 5 | * email : harlekin@handhelds.org |
9 | * | 6 | * |
10 | */ | 7 | */ |
@@ -22,19 +19,29 @@ | |||
22 | #define TODAY_H | 19 | #define TODAY_H |
23 | 20 | ||
24 | #include <qpe/datebookdb.h> | ||
25 | #include <qpe/event.h> | ||
26 | |||
27 | #include <opie/tododb.h> | 21 | #include <opie/tododb.h> |
28 | #include <opie/oclickablelabel.h> | ||
29 | 22 | ||
30 | #include <qdatetime.h> | 23 | #include <qdatetime.h> |
31 | #include <qlist.h> | 24 | #include <qlist.h> |
32 | 25 | ||
26 | #include <qpe/qlibrary.h> | ||
27 | #include <qpe/event.h> | ||
28 | |||
33 | #include "todayconfig.h" | 29 | #include "todayconfig.h" |
34 | #include "todaybase.h" | 30 | #include "todaybase.h" |
31 | #include "todayplugininterface.h" | ||
35 | 32 | ||
36 | class QVBoxLayout; | 33 | class QVBoxLayout; |
37 | 34 | ||
35 | struct TodayPlugin { | ||
36 | QLibrary *library; | ||
37 | TodayPluginInterface *iface; | ||
38 | TodayPluginObject *guiPart; | ||
39 | QString name; | ||
40 | bool active; | ||
41 | int pos; | ||
42 | }; | ||
43 | |||
38 | class Today : public TodayBase { | 44 | class Today : public TodayBase { |
45 | |||
39 | Q_OBJECT | 46 | Q_OBJECT |
40 | 47 | ||
@@ -45,74 +52,30 @@ class Today : public TodayBase { | |||
45 | private slots: | 52 | private slots: |
46 | void startConfig(); | 53 | void startConfig(); |
47 | void startTodo(); | ||
48 | void startDatebook(); | ||
49 | void startAddressbook(); | 54 | void startAddressbook(); |
50 | void startMail(); | 55 | void launchApp( QString appName ); |
51 | void editCard(); | 56 | void editCard(); |
52 | void draw(); | 57 | void draw(); |
53 | void editEvent(const Event &e); | 58 | void refresh(); |
54 | private: | 59 | |
60 | private: | ||
55 | void init(); | 61 | void init(); |
56 | void getDates(); | ||
57 | void getTodo(); | ||
58 | void getMail(); | ||
59 | void autoStart(); | ||
60 | bool checkIfModified(); | ||
61 | void setOwnerField(); | 62 | void setOwnerField(); |
62 | void setOwnerField(QString &string); | 63 | void setOwnerField(QString &string); |
63 | private slots: | 64 | void loadPlugins(); |
65 | |||
66 | private slots: | ||
64 | void channelReceived(const QCString &msg, const QByteArray & data); | 67 | void channelReceived(const QCString &msg, const QByteArray & data); |
65 | 68 | ||
66 | private: | 69 | private: |
67 | DateBookDB *db; | 70 | TodayConfig *conf; |
68 | ToDoDB *todo; | 71 | QStringList m_excludeApplets; |
69 | todayconfig *conf; | ||
70 | QWidget* AllDateBookEvents; | ||
71 | //Config cfg; | ||
72 | int MAX_LINES_TASK; | ||
73 | int MAX_CHAR_CLIP; | ||
74 | int MAX_LINES_MEET; | ||
75 | int SHOW_LOCATION; | ||
76 | int SHOW_NOTES; | ||
77 | }; | ||
78 | 72 | ||
79 | class DateBookEvent: public OClickableLabel { | 73 | QVBoxLayout *pluginLayout; |
80 | Q_OBJECT | ||
81 | public: | ||
82 | DateBookEvent(const EffectiveEvent &ev, | ||
83 | QWidget* parent = 0, | ||
84 | int SHOW_LOCATION = 0, | ||
85 | int SHOW_NOTES = 0, | ||
86 | const char* name = 0, | ||
87 | WFlags fl = 0); | ||
88 | signals: | ||
89 | void editEvent(const Event &e); | ||
90 | private slots: | ||
91 | void editMe(); | ||
92 | private: | ||
93 | QString ampmTime(QTime); | ||
94 | const EffectiveEvent event; | ||
95 | bool ampm; | ||
96 | }; | ||
97 | 74 | ||
98 | class DateBookEventLater: public OClickableLabel { | 75 | // QString m_autoStartTimer; |
99 | Q_OBJECT | 76 | int m_newStart; |
100 | public: | 77 | // int m_autoStart; |
101 | DateBookEventLater(const EffectiveEvent &ev, | 78 | int m_maxCharClip; |
102 | QWidget* parent = 0, | ||
103 | int SHOW_LOCATION = 0, | ||
104 | int SHOW_NOTES = 0, | ||
105 | const char* name = 0, | ||
106 | WFlags fl = 0); | ||
107 | signals: | ||
108 | void editEvent(const Event &e); | ||
109 | private slots: | ||
110 | void editMe(); | ||
111 | private: | ||
112 | QString ampmTime(QTime); | ||
113 | const EffectiveEvent event; | ||
114 | bool ampm; | ||
115 | }; | 79 | }; |
116 | 80 | ||
117 | #endif // TODAY_H | 81 | #endif |
118 | |||