summaryrefslogtreecommitdiff
path: root/core/pim/todo/todoview.h
Side-by-side diff
Diffstat (limited to 'core/pim/todo/todoview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/todoview.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/core/pim/todo/todoview.h b/core/pim/todo/todoview.h
index e4985a7..81ace3a 100644
--- a/core/pim/todo/todoview.h
+++ b/core/pim/todo/todoview.h
@@ -90,6 +90,9 @@ namespace Todo {
virtual QString currentRepresentation() = 0;
virtual void showOverDue( bool ) = 0;
- virtual void setTodos( OTodoAccess::List::Iterator it,
- OTodoAccess::List::Iterator end ) = 0;
+
+ /*
+ * update the view
+ */
+ virtual void updateView() = 0;
virtual void addEvent( const OTodo& ) = 0;
@@ -154,6 +157,10 @@ namespace Todo {
MainWindow* todoWindow();
OTodo event(int uid );
- OTodoAccess::List::Iterator begin();
- OTodoAccess::List::Iterator end();
+ OTodoAccess::List list();
+ OTodoAccess::List sorted();
+ void sort();
+ void sort(int sort );
+ void setSortOrder( int order );
+ void setAscending( bool );
/*
@@ -173,4 +180,7 @@ namespace Todo {
InternQtHack* hack;
MainWindow *m_main;
+ OTodoAccess::List m_sort;
+ bool m_asc : 1;
+ int m_sortOrder;
};
};