summaryrefslogtreecommitdiff
path: root/core/pim/todo/todomanager.h
Side-by-side diff
Diffstat (limited to 'core/pim/todo/todomanager.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/todomanager.h38
1 files changed, 20 insertions, 18 deletions
diff --git a/core/pim/todo/todomanager.h b/core/pim/todo/todomanager.h
index 8544277..865b47b 100644
--- a/core/pim/todo/todomanager.h
+++ b/core/pim/todo/todomanager.h
@@ -30,15 +30,17 @@
#define OPIE_TODO_MANAGER_H
-#include <qarray.h>
-#include <qobject.h>
-#include <qstring.h>
+#include <opie2/opimtodo.h>
+#include <opie2/otodoaccess.h>
#include <qpe/categories.h>
-#include <opie/otodo.h>
-#include <opie/otodoaccess.h>
+#include <qarray.h>
+#include <qobject.h>
+#include <qstring.h>
#include "smalltodo.h"
+using Opie::OPimTodo;
+using Opie::OPimTodoAccess;
namespace Todo {
@@ -53,15 +55,15 @@ namespace Todo {
QStringList categories()/*const*/;
int catId(const QString&);
- OTodo event(int uid );
+ OPimTodo event(int uid );
void updateList();
/** returns the iterator sorted if set sorted*/
- OTodoAccess::List list()const;
- OTodoAccess::List sorted( bool asc, int so, int f, int cat );
+ OPimTodoAccess::List list()const;
+ OPimTodoAccess::List sorted( bool asc, int so, int f, int cat );
- OTodoAccess::List::Iterator overDue();
- OTodoAccess::List::Iterator fromTo( const QDate& start,
+ OPimTodoAccess::List::Iterator overDue();
+ OPimTodoAccess::List::Iterator fromTo( const QDate& start,
const QDate& end );
- OTodoAccess::List::Iterator query( const OTodo& ev, int query );
+ OPimTodoAccess::List::Iterator query( const OPimTodo& ev, int query );
void setCategory( bool sort, int category = -1);
@@ -71,5 +73,5 @@ namespace Todo {
void sort();
- OTodoAccess* todoDB();
+ OPimTodoAccess* todoDB();
bool saveAll();
@@ -80,7 +82,7 @@ namespace Todo {
public slots:
- void add( const OTodo& );
+ void add( const OPimTodo& );
void update( int uid, const SmallTodo& );
- void update( int uid, const OTodo& );
+ void update( int uid, const OPimTodo& );
bool remove( int uid );
void remove( const QArray<int>& );
@@ -95,8 +97,8 @@ namespace Todo {
private:
- OTodoAccess* m_db;
- OTodoAccess::List m_list;
- OTodoAccess::List::Iterator m_it;
- OTodoAccess::List m_sorted;
+ OPimTodoAccess* m_db;
+ OPimTodoAccess::List m_list;
+ OPimTodoAccess::List::Iterator m_it;
+ OPimTodoAccess::List m_sorted;
Categories m_cat;
int m_ca;