-rw-r--r-- | libkcal/calendar.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libkcal/calendar.cpp b/libkcal/calendar.cpp index a3977d7..eeb5f48 100644 --- a/libkcal/calendar.cpp +++ b/libkcal/calendar.cpp | |||
@@ -245,12 +245,28 @@ QPtrList<Incidence> Calendar::incidences() | |||
245 | 245 | ||
246 | QPtrList<Journal> j = journals(); | 246 | QPtrList<Journal> j = journals(); |
247 | for( i = j.first(); i; i = j.next() ) incidences.append( i ); | 247 | for( i = j.first(); i; i = j.next() ) incidences.append( i ); |
248 | 248 | ||
249 | return incidences; | 249 | return incidences; |
250 | } | 250 | } |
251 | |||
252 | void Calendar::resetPilotStat() | ||
253 | { | ||
254 | QPtrList<Incidence> incidences; | ||
255 | |||
256 | Incidence *i; | ||
257 | |||
258 | QPtrList<Event> e = rawEvents(); | ||
259 | for( i = e.first(); i; i = e.next() ) i->setPilotId( 0 ); | ||
260 | |||
261 | QPtrList<Todo> t = rawTodos(); | ||
262 | for( i = t.first(); i; i = t.next() ) i->setPilotId( 0 ); | ||
263 | |||
264 | QPtrList<Journal> j = journals(); | ||
265 | for( i = j.first(); i; i = j.next() ) i->setPilotId( 0 ); | ||
266 | } | ||
251 | void Calendar::resetTempSyncStat() | 267 | void Calendar::resetTempSyncStat() |
252 | { | 268 | { |
253 | QPtrList<Incidence> incidences; | 269 | QPtrList<Incidence> incidences; |
254 | 270 | ||
255 | Incidence *i; | 271 | Incidence *i; |
256 | 272 | ||