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 @@ -1,118 +1,81 @@ /* * today.h * - * --------------------- - * - * begin : Sun 10 17:20:00 CEST 2002 * copyright : (c) 2002 by Maximilian Reiß - * email : max.reiss@gmx.de + * email : harlekin@handhelds.org * */ /*************************************************************************** * * * 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 <qpe/datebookdb.h> -#include <qpe/event.h> - #include <opie/tododb.h> -#include <opie/oclickablelabel.h> #include <qdatetime.h> #include <qlist.h> +#include <qpe/qlibrary.h> +#include <qpe/event.h> + #include "todayconfig.h" #include "todaybase.h" +#include "todayplugininterface.h" class QVBoxLayout; +struct TodayPlugin { + QLibrary *library; + TodayPluginInterface *iface; + TodayPluginObject *guiPart; + QString name; + bool active; + int pos; +}; + 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 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: void channelReceived(const QCString &msg, const QByteArray & data); 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 |