summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/view.h
Unidiff
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 {
15 View( MainWindow* window, QWidget* parent ); 15 View( MainWindow* window, QWidget* parent );
16 virtual ~View() = 0; 16 virtual ~View();
17 17
@@ -24,2 +24,7 @@ namespace Datebook {
24 /** 24 /**
25 * return the uid of the current item or 0
26 */
27 virtual int currentItem()const = 0;
28
29 /**
25 * loadConfig 30 * loadConfig
@@ -32,4 +37,6 @@ namespace Datebook {
32 * the current range 37 * the current range
38 * @param src Where to write the start datetime
39 * @param dest Where to write the end datetime
33 */ 40 */
34 void currentRange( const QDateTime& src, const QDateTime& from); 41 virtual void currentRange( const QDateTime& src, const QDateTime& from) = 0;
35 42
@@ -48,2 +55,3 @@ namespace Datebook {
48 * show date in your view!! 55 * show date in your view!!
56 * make the date visible in the current view
49 */ 57 */
@@ -54,3 +62,3 @@ namespace Datebook {
54 */ 62 */
55 virtual QWidget* widget(); 63 virtual QWidget* widget() = 0;
56 64
@@ -59,5 +67,5 @@ namespace Datebook {
59 */ 67 */
60 virtual void reschedule() = 0 68 virtual void reschedule() = 0;
61 protected: 69 protected:
62 void popup( int ); 70 void popup( int uid);
63 QString toShortText(const OEffectiveEvent& eff)const; 71 QString toShortText(const OEffectiveEvent& eff)const;
@@ -116,4 +124,7 @@ namespace Datebook {
116 */ 124 */
117 QPtrList<OPimRecord> records( const QDate& on ); 125 QList<OPimRecord> records( const QDate& on );
118 QPtrList<OPimRecord> records( const QDate& start, const QDate& to ); 126 QList<OPimRecord> records( const QDate& start, const QDate& to );
127
128 private:
129 MainWindow* m_win;
119 }; 130 };