Diffstat (limited to 'libopie2/opiepim/core/otodoaccess.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/otodoaccess.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libopie2/opiepim/core/otodoaccess.cpp b/libopie2/opiepim/core/otodoaccess.cpp index c258de6..d860411 100644 --- a/libopie2/opiepim/core/otodoaccess.cpp +++ b/libopie2/opiepim/core/otodoaccess.cpp | |||
@@ -42,24 +42,26 @@ OTodoAccess::List OTodoAccess::effectiveToDos( const QDate& start, | |||
42 | } | 42 | } |
43 | OTodoAccess::List OTodoAccess::overDue() { | 43 | OTodoAccess::List OTodoAccess::overDue() { |
44 | List lis( m_todoBackEnd->overDue(), this ); | 44 | List lis( m_todoBackEnd->overDue(), this ); |
45 | return lis; | 45 | return lis; |
46 | } | 46 | } |
47 | void OTodoAccess::addAlarm( const OTodo& event) { | 47 | void OTodoAccess::addAlarm( const OTodo& event) { |
48 | if (!event.hasAlarmDateTime() ) | 48 | /* FIXME use the new notifier architecture |
49 | if (!event.hasAlarmDateTime() ) | ||
49 | return; | 50 | return; |
50 | 51 | ||
51 | QDateTime now = QDateTime::currentDateTime(); | 52 | QDateTime now = QDateTime::currentDateTime(); |
52 | QDateTime schedule = event.alarmDateTime(); | 53 | QDateTime schedule = event.alarmDateTime(); |
53 | 54 | ||
54 | if ( schedule > now ){ | 55 | if ( schedule > now ){ |
55 | AlarmServer::addAlarm( schedule, | 56 | AlarmServer::addAlarm( schedule, |
56 | "QPE/Application/todolist", | 57 | "QPE/Application/todolist", |
57 | "alarm(QDateTime,int)", event.uid() ); | 58 | "alarm(QDateTime,int)", event.uid() ); |
58 | 59 | ||
59 | } | 60 | } |
61 | */ | ||
60 | } | 62 | } |
61 | void OTodoAccess::delAlarm( int uid) { | 63 | void OTodoAccess::delAlarm( int uid) { |
62 | 64 | ||
63 | QDateTime schedule; // Create null DateTime | 65 | QDateTime schedule; // Create null DateTime |
64 | 66 | ||
65 | // I hope this will remove all scheduled alarms | 67 | // I hope this will remove all scheduled alarms |
@@ -76,6 +78,9 @@ void OTodoAccess::delAlarm( int uid) { | |||
76 | OTodoAccess::List OTodoAccess::sorted( bool ascending, int sort,int filter, int cat ) { | 78 | OTodoAccess::List OTodoAccess::sorted( bool ascending, int sort,int filter, int cat ) { |
77 | QArray<int> ints = m_todoBackEnd->sorted( ascending, sort, | 79 | QArray<int> ints = m_todoBackEnd->sorted( ascending, sort, |
78 | filter, cat ); | 80 | filter, cat ); |
79 | OTodoAccess::List list( ints, this ); | 81 | OTodoAccess::List list( ints, this ); |
80 | return list; | 82 | return list; |
81 | } | 83 | } |
84 | void OTodoAccess::removeAllCompleted() { | ||
85 | m_todoBackEnd->removeAllCompleted(); | ||
86 | } | ||