author | harlekin <harlekin> | 2002-09-15 21:03:47 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-09-15 21:03:47 (UTC) |
commit | 251fd5b1687994c30e8bea1091e893468086223f (patch) (side-by-side diff) | |
tree | 3df0ba1775f2c0e7862e9995324d4869ef4b936f /core/pim/today/today.h | |
parent | f79126f5ba0b1d1520e5fb07716ffe9e2479aedf (diff) | |
download | opie-251fd5b1687994c30e8bea1091e893468086223f.zip opie-251fd5b1687994c30e8bea1091e893468086223f.tar.gz opie-251fd5b1687994c30e8bea1091e893468086223f.tar.bz2 |
new today version, now plugin bases
-rw-r--r-- | core/pim/today/today.h | 93 |
1 files changed, 28 insertions, 65 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 @@ -3,7 +3,4 @@ * - * --------------------- - * - * begin : Sun 10 17:20:00 CEST 2002 * copyright : (c) 2002 by Maximilian Reiß - * email : max.reiss@gmx.de + * email : harlekin@handhelds.org * @@ -23,7 +20,3 @@ -#include <qpe/datebookdb.h> -#include <qpe/event.h> - #include <opie/tododb.h> -#include <opie/oclickablelabel.h> @@ -32,4 +25,8 @@ +#include <qpe/qlibrary.h> +#include <qpe/event.h> + #include "todayconfig.h" #include "todaybase.h" +#include "todayplugininterface.h" @@ -37,3 +34,13 @@ class QVBoxLayout; +struct TodayPlugin { + QLibrary *library; + TodayPluginInterface *iface; + TodayPluginObject *guiPart; + QString name; + bool active; + int pos; +}; + class Today : public TodayBase { + Q_OBJECT @@ -46,18 +53,14 @@ class Today : public TodayBase { void startConfig(); - void startTodo(); - void startDatebook(); void startAddressbook(); - void startMail(); + void launchApp( QString appName ); void editCard(); void draw(); - void editEvent(const Event &e); + void refresh(); + private: void init(); - void getDates(); - void getTodo(); - void getMail(); - void autoStart(); - bool checkIfModified(); void setOwnerField(); void setOwnerField(QString &string); + void loadPlugins(); + private slots: @@ -66,53 +69,13 @@ class Today : public TodayBase { private: - DateBookDB *db; - ToDoDB *todo; - todayconfig *conf; - QWidget* AllDateBookEvents; - //Config cfg; - int MAX_LINES_TASK; - int MAX_CHAR_CLIP; - int MAX_LINES_MEET; - int SHOW_LOCATION; - int SHOW_NOTES; -}; + TodayConfig *conf; + QStringList m_excludeApplets; -class DateBookEvent: public OClickableLabel { - Q_OBJECT -public: - DateBookEvent(const EffectiveEvent &ev, - QWidget* parent = 0, - int SHOW_LOCATION = 0, - int SHOW_NOTES = 0, - const char* name = 0, - WFlags fl = 0); -signals: - void editEvent(const Event &e); -private slots: - void editMe(); -private: - QString ampmTime(QTime); - const EffectiveEvent event; - bool ampm; -}; + QVBoxLayout *pluginLayout; -class DateBookEventLater: public OClickableLabel { - Q_OBJECT -public: - DateBookEventLater(const EffectiveEvent &ev, - QWidget* parent = 0, - int SHOW_LOCATION = 0, - int SHOW_NOTES = 0, - const char* name = 0, - WFlags fl = 0); -signals: - void editEvent(const Event &e); -private slots: - void editMe(); -private: - QString ampmTime(QTime); - const EffectiveEvent event; - bool ampm; + // QString m_autoStartTimer; + int m_newStart; + // int m_autoStart; + int m_maxCharClip; }; -#endif // TODAY_H - +#endif |