Diffstat (limited to 'core/pim/todo/taskeditoralarms.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/taskeditoralarms.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/pim/todo/taskeditoralarms.cpp b/core/pim/todo/taskeditoralarms.cpp index bcc40fe..930c94e 100644 --- a/core/pim/todo/taskeditoralarms.cpp +++ b/core/pim/todo/taskeditoralarms.cpp | |||
@@ -25,15 +25,14 @@ | |||
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "taskeditoralarms.h" | 29 | #include "taskeditoralarms.h" |
30 | 30 | ||
31 | #include <opie/otodo.h> | 31 | #include <opie2/opimnotifymanager.h> |
32 | #include <opie/opimnotifymanager.h> | 32 | #include <opie2/otimepicker.h> |
33 | #include <opie/otimepicker.h> | ||
34 | 33 | ||
35 | #include <qpe/datebookmonth.h> | 34 | #include <qpe/datebookmonth.h> |
36 | #include <qpe/resource.h> | 35 | #include <qpe/resource.h> |
37 | 36 | ||
38 | #include <qlistview.h> | 37 | #include <qlistview.h> |
39 | #include <qlayout.h> | 38 | #include <qlayout.h> |
@@ -119,13 +118,13 @@ void TaskEditorAlarms::slotDelete(){ | |||
119 | 118 | ||
120 | lstAlarms->takeItem( item ); delete item; | 119 | lstAlarms->takeItem( item ); delete item; |
121 | 120 | ||
122 | 121 | ||
123 | } | 122 | } |
124 | 123 | ||
125 | void TaskEditorAlarms::load( const OTodo& todo) { | 124 | void TaskEditorAlarms::load( const OPimTodo& todo) { |
126 | lstAlarms->clear(); | 125 | lstAlarms->clear(); |
127 | if (!todo.hasNotifiers() ) return; | 126 | if (!todo.hasNotifiers() ) return; |
128 | 127 | ||
129 | OPimNotifyManager::Alarms als = todo.notifiers().alarms(); | 128 | OPimNotifyManager::Alarms als = todo.notifiers().alarms(); |
130 | 129 | ||
131 | if (als.isEmpty() ) return; | 130 | if (als.isEmpty() ) return; |
@@ -133,13 +132,13 @@ void TaskEditorAlarms::load( const OTodo& todo) { | |||
133 | OPimNotifyManager::Alarms::Iterator it = als.begin(); | 132 | OPimNotifyManager::Alarms::Iterator it = als.begin(); |
134 | for ( ; it != als.end(); ++it ) | 133 | for ( ; it != als.end(); ++it ) |
135 | (void)new AlarmItem( lstAlarms, (*it) ); | 134 | (void)new AlarmItem( lstAlarms, (*it) ); |
136 | 135 | ||
137 | 136 | ||
138 | } | 137 | } |
139 | void TaskEditorAlarms::save( OTodo& todo ) { | 138 | void TaskEditorAlarms::save( OPimTodo& todo ) { |
140 | if (lstAlarms->childCount() <= 0 ) return; | 139 | if (lstAlarms->childCount() <= 0 ) return; |
141 | 140 | ||
142 | OPimNotifyManager::Alarms alarms; | 141 | OPimNotifyManager::Alarms alarms; |
143 | 142 | ||
144 | for ( QListViewItem* item = lstAlarms->firstChild(); item; item = item->nextSibling() ) { | 143 | for ( QListViewItem* item = lstAlarms->firstChild(); item; item = item->nextSibling() ) { |
145 | AlarmItem *alItem = static_cast<AlarmItem*>(item); | 144 | AlarmItem *alItem = static_cast<AlarmItem*>(item); |