summaryrefslogtreecommitdiff
path: root/core/pim/todo/todoview.h
Side-by-side diff
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
@@ -35,8 +35,10 @@
#include <qwidget.h>
-#include <opie/otodoaccess.h>
+#include <opie2/otodoaccess.h>
#include "smalltodo.h"
+using Opie::OPimTodo;
+using Opie::OPimTodoAccess;
namespace Todo {
@@ -69,6 +71,6 @@ namespace Todo {
virtual void updateView() = 0;
- virtual void addEvent( const OTodo& ) = 0;
- virtual void replaceEvent( const OTodo& ) = 0;
+ virtual void addEvent( const OPimTodo& ) = 0;
+ virtual void replaceEvent( const OPimTodo& ) = 0;
virtual void removeEvent( int uid ) = 0;
virtual void setShowCompleted( bool ) = 0;
@@ -105,7 +107,7 @@ namespace Todo {
protected:
MainWindow* todoWindow();
- OTodo event(int uid );
- OTodoAccess::List list();
- OTodoAccess::List sorted()const;
+ OPimTodo event(int uid );
+ OPimTodoAccess::List list();
+ OPimTodoAccess::List sorted()const;
void sort();
void sort(int sort );
@@ -120,13 +122,13 @@ namespace Todo {
void edit( int uid );
void update(int uid, const SmallTodo& to );
- void update(int uid, const OTodo& ev);
+ void update(int uid, const OPimTodo& ev);
void remove( int uid );
/* will ask the user if the item should be deleted */
void removeQuery(int uid );
void complete( int uid );
- void complete( const OTodo& ev );
+ void complete( const OPimTodo& ev );
private:
MainWindow *m_main;
- OTodoAccess::List m_sort;
+ OPimTodoAccess::List m_sort;
bool m_asc : 1;
int m_sortOrder;