summaryrefslogtreecommitdiff
path: root/core/pim/todo/todoview.h
authordrw <drw>2004-02-25 16:32:24 (UTC)
committer drw <drw>2004-02-25 16:32:24 (UTC)
commitbea97f98bfb31994425908e7ce982b2450696706 (patch) (unidiff)
tree2f2bc2f55d4656b7c63a06cdce6bc35346d9388f /core/pim/todo/todoview.h
parentf84a46fce6c1b7702ec1eaebd40e363b67253649 (diff)
downloadopie-bea97f98bfb31994425908e7ce982b2450696706.zip
opie-bea97f98bfb31994425908e7ce982b2450696706.tar.gz
opie-bea97f98bfb31994425908e7ce982b2450696706.tar.bz2
Todo: libopie->libopie2
Diffstat (limited to 'core/pim/todo/todoview.h') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/todoview.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/core/pim/todo/todoview.h b/core/pim/todo/todoview.h
index e5ed66f..a5ea9f5 100644
--- a/core/pim/todo/todoview.h
+++ b/core/pim/todo/todoview.h
@@ -31,16 +31,18 @@
31 31
32#include <qarray.h> 32#include <qarray.h>
33#include <qstring.h> 33#include <qstring.h>
34#include <qvaluelist.h> 34#include <qvaluelist.h>
35#include <qwidget.h> 35#include <qwidget.h>
36 36
37#include <opie/otodoaccess.h> 37#include <opie2/otodoaccess.h>
38 38
39#include "smalltodo.h" 39#include "smalltodo.h"
40 40
41using Opie::OPimTodo;
42using Opie::OPimTodoAccess;
41 43
42namespace Todo { 44namespace Todo {
43 class MainWindow; 45 class MainWindow;
44 46
45 /** 47 /**
46 * due to inheretince problems we need this base class 48 * due to inheretince problems we need this base class
@@ -65,14 +67,14 @@ namespace Todo {
65 67
66 /* 68 /*
67 * update the view 69 * update the view
68 */ 70 */
69 virtual void updateView() = 0; 71 virtual void updateView() = 0;
70 72
71 virtual void addEvent( const OTodo& ) = 0; 73 virtual void addEvent( const OPimTodo& ) = 0;
72 virtual void replaceEvent( const OTodo& ) = 0; 74 virtual void replaceEvent( const OPimTodo& ) = 0;
73 virtual void removeEvent( int uid ) = 0; 75 virtual void removeEvent( int uid ) = 0;
74 virtual void setShowCompleted( bool ) = 0; 76 virtual void setShowCompleted( bool ) = 0;
75 virtual void setShowDeadline( bool ) = 0; 77 virtual void setShowDeadline( bool ) = 0;
76 virtual void setShowCategory( const QString& = QString::null ) = 0; 78 virtual void setShowCategory( const QString& = QString::null ) = 0;
77 virtual void clear() = 0; 79 virtual void clear() = 0;
78 virtual void newDay() = 0; 80 virtual void newDay() = 0;
@@ -101,36 +103,36 @@ namespace Todo {
101 *d'tor 103 *d'tor
102 */ 104 */
103 virtual ~TodoView(); 105 virtual ~TodoView();
104 106
105 protected: 107 protected:
106 MainWindow* todoWindow(); 108 MainWindow* todoWindow();
107 OTodo event(int uid ); 109 OPimTodo event(int uid );
108 OTodoAccess::List list(); 110 OPimTodoAccess::List list();
109 OTodoAccess::List sorted()const; 111 OPimTodoAccess::List sorted()const;
110 void sort(); 112 void sort();
111 void sort(int sort ); 113 void sort(int sort );
112 void setSortOrder( int order ); 114 void setSortOrder( int order );
113 void setAscending( bool ); 115 void setAscending( bool );
114 116
115 /* 117 /*
116 * These things needs to be implemented 118 * These things needs to be implemented
117 * in a implementation 119 * in a implementation
118 */ 120 */
119 void showTodo( int uid ); 121 void showTodo( int uid );
120 void edit( int uid ); 122 void edit( int uid );
121 void update(int uid, const SmallTodo& to ); 123 void update(int uid, const SmallTodo& to );
122 void update(int uid, const OTodo& ev); 124 void update(int uid, const OPimTodo& ev);
123 void remove( int uid ); 125 void remove( int uid );
124 /* will ask the user if the item should be deleted */ 126 /* will ask the user if the item should be deleted */
125 void removeQuery(int uid ); 127 void removeQuery(int uid );
126 void complete( int uid ); 128 void complete( int uid );
127 void complete( const OTodo& ev ); 129 void complete( const OPimTodo& ev );
128 private: 130 private:
129 MainWindow *m_main; 131 MainWindow *m_main;
130 OTodoAccess::List m_sort; 132 OPimTodoAccess::List m_sort;
131 bool m_asc : 1; 133 bool m_asc : 1;
132 int m_sortOrder; 134 int m_sortOrder;
133 }; 135 };
134}; 136};
135 137
136#endif 138#endif