summaryrefslogtreecommitdiff
path: root/core/pim/todo/todoview.h
authoreilers <eilers>2003-08-01 14:22:29 (UTC)
committer eilers <eilers>2003-08-01 14:22:29 (UTC)
commit7d51872c86155fbbf27aeb8e49e7a336d909caac (patch) (unidiff)
tree55ecf3452d6711065e36c6bceab8ec52bd5525d8 /core/pim/todo/todoview.h
parent34991bac7d96b1c17601be6a5607819342571e0c (diff)
downloadopie-7d51872c86155fbbf27aeb8e49e7a336d909caac.zip
opie-7d51872c86155fbbf27aeb8e49e7a336d909caac.tar.gz
opie-7d51872c86155fbbf27aeb8e49e7a336d909caac.tar.bz2
Merging changes from BRANCH_1_0 to HEAD
Diffstat (limited to 'core/pim/todo/todoview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/todoview.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/pim/todo/todoview.h b/core/pim/todo/todoview.h
index e73e808..e5ed66f 100644
--- a/core/pim/todo/todoview.h
+++ b/core/pim/todo/todoview.h
@@ -44,24 +44,34 @@ namespace Todo {
44 44
45 /** 45 /**
46 * due to inheretince problems we need this base class 46 * due to inheretince problems we need this base class
47 */ 47 */
48 struct ViewBase { 48 struct ViewBase {
49 public: 49 public:
50 virtual QWidget* widget() = 0; 50 virtual QWidget* widget() = 0;
51 virtual QString type()const = 0; 51 virtual QString type()const = 0;
52 virtual int current() = 0; 52 virtual int current() = 0;
53 virtual QString currentRepresentation() = 0; 53 virtual QString currentRepresentation() = 0;
54 virtual void showOverDue( bool ) = 0; 54 virtual void showOverDue( bool ) = 0;
55 55
56 /**
57 * the next record in the view or 0 if none is there
58 */
59 virtual int next() = 0;
60
61 /**
62 * the previous record or 0 if none is there..
63 */
64 virtual int prev() = 0;
65
56 /* 66 /*
57 * update the view 67 * update the view
58 */ 68 */
59 virtual void updateView() = 0; 69 virtual void updateView() = 0;
60 70
61 virtual void addEvent( const OTodo& ) = 0; 71 virtual void addEvent( const OTodo& ) = 0;
62 virtual void replaceEvent( const OTodo& ) = 0; 72 virtual void replaceEvent( const OTodo& ) = 0;
63 virtual void removeEvent( int uid ) = 0; 73 virtual void removeEvent( int uid ) = 0;
64 virtual void setShowCompleted( bool ) = 0; 74 virtual void setShowCompleted( bool ) = 0;
65 virtual void setShowDeadline( bool ) = 0; 75 virtual void setShowDeadline( bool ) = 0;
66 virtual void setShowCategory( const QString& = QString::null ) = 0; 76 virtual void setShowCategory( const QString& = QString::null ) = 0;
67 virtual void clear() = 0; 77 virtual void clear() = 0;
@@ -102,23 +112,25 @@ namespace Todo {
102 void setSortOrder( int order ); 112 void setSortOrder( int order );
103 void setAscending( bool ); 113 void setAscending( bool );
104 114
105 /* 115 /*
106 * These things needs to be implemented 116 * These things needs to be implemented
107 * in a implementation 117 * in a implementation
108 */ 118 */
109 void showTodo( int uid ); 119 void showTodo( int uid );
110 void edit( int uid ); 120 void edit( int uid );
111 void update(int uid, const SmallTodo& to ); 121 void update(int uid, const SmallTodo& to );
112 void update(int uid, const OTodo& ev); 122 void update(int uid, const OTodo& ev);
113 void remove( int uid ); 123 void remove( int uid );
124 /* will ask the user if the item should be deleted */
125 void removeQuery(int uid );
114 void complete( int uid ); 126 void complete( int uid );
115 void complete( const OTodo& ev ); 127 void complete( const OTodo& ev );
116 private: 128 private:
117 MainWindow *m_main; 129 MainWindow *m_main;
118 OTodoAccess::List m_sort; 130 OTodoAccess::List m_sort;
119 bool m_asc : 1; 131 bool m_asc : 1;
120 int m_sortOrder; 132 int m_sortOrder;
121 }; 133 };
122}; 134};
123 135
124#endif 136#endif