summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/view.h
Side-by-side diff
Diffstat (limited to 'core/pim/datebook2/view.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook2/view.h25
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
@@ -15,3 +15,3 @@ namespace Datebook {
View( MainWindow* window, QWidget* parent );
- virtual ~View() = 0;
+ virtual ~View();
@@ -24,2 +24,7 @@ namespace Datebook {
/**
+ * return the uid of the current item or 0
+ */
+ virtual int currentItem()const = 0;
+
+ /**
* loadConfig
@@ -32,4 +37,6 @@ 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;
@@ -48,2 +55,3 @@ namespace Datebook {
* show date in your view!!
+ * make the date visible in the current view
*/
@@ -54,3 +62,3 @@ namespace Datebook {
*/
- virtual QWidget* widget();
+ virtual QWidget* widget() = 0;
@@ -59,5 +67,5 @@ namespace Datebook {
*/
- virtual void reschedule() = 0
+ virtual void reschedule() = 0;
protected:
- void popup( int );
+ void popup( int uid);
QString toShortText(const OEffectiveEvent& eff)const;
@@ -116,4 +124,7 @@ namespace Datebook {
*/
- 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;
};