author | zecke <zecke> | 2003-02-23 21:27:08 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-02-23 21:27:08 (UTC) |
commit | 041eda0d7482d60cd67731b81fd36104fcd3120f (patch) (side-by-side diff) | |
tree | c7bc7730b9e76e22f828291d404821f7bd922d6f /core/pim/datebook2/view.h | |
parent | a195865dfdb03b4c7c972acfc8cfd87743ab3e6f (diff) | |
download | opie-041eda0d7482d60cd67731b81fd36104fcd3120f.zip opie-041eda0d7482d60cd67731b81fd36104fcd3120f.tar.gz opie-041eda0d7482d60cd67731b81fd36104fcd3120f.tar.bz2 |
Implement some of the new framework
-rw-r--r-- | core/pim/datebook2/view.h | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/core/pim/datebook2/view.h b/core/pim/datebook2/view.h index a7bc1d8..e2312a3 100644 --- a/core/pim/datebook2/view.h +++ b/core/pim/datebook2/view.h @@ -14,5 +14,5 @@ namespace Datebook { public: View( MainWindow* window, QWidget* parent ); - virtual ~View() = 0; + virtual ~View(); static QDate dateFromWeek( int week, int year, bool startOnMonda ); @@ -23,4 +23,9 @@ namespace Datebook { /** + * return the uid of the current item or 0 + */ + virtual int currentItem()const = 0; + + /** * loadConfig * saveConfig @@ -31,6 +36,8 @@ namespace Datebook { /** * the current range + * @param src Where to write the start datetime + * @param dest Where to write the end datetime */ - void currentRange( const QDateTime& src, const QDateTime& from); + virtual void currentRange( const QDateTime& src, const QDateTime& from) = 0; /** @@ -47,4 +54,5 @@ namespace Datebook { /** * show date in your view!! + * make the date visible in the current view */ virtual void showDay( const QDate& date ) = 0; @@ -53,12 +61,12 @@ namespace Datebook { * return the widget */ - virtual QWidget* widget(); + virtual QWidget* widget() = 0; /** * the view needs an update! */ - virtual void reschedule() = 0 + virtual void reschedule() = 0; protected: - void popup( int ); + void popup( int uid); QString toShortText(const OEffectiveEvent& eff)const; QString toText(const OEffectiveEvent& eff)const; @@ -115,6 +123,9 @@ namespace Datebook { * return related records for days */ - QPtrList<OPimRecord> records( const QDate& on ); - QPtrList<OPimRecord> records( const QDate& start, const QDate& to ); + QList<OPimRecord> records( const QDate& on ); + QList<OPimRecord> records( const QDate& start, const QDate& to ); + + private: + MainWindow* m_win; }; } |