equal
deleted
inserted
replaced
384 if( mDateTime > AgendaUtil::minTime() ) |
384 if( mDateTime > AgendaUtil::minTime() ) |
385 { |
385 { |
386 // Two pass delete: |
386 // Two pass delete: |
387 // 1. pass |
387 // 1. pass |
388 // To prevent destroying entries starting and ending midnight |
388 // To prevent destroying entries starting and ending midnight |
389 // subtract one microsecond and do delete on that range. |
389 // subtract one second and do delete on that range. |
390 QTime time = mDateTime.time(); |
390 mDateTime = mDateTime.addSecs(-1); |
391 time.setHMS(time.hour(), time.minute(), time.second(), time.msec() - 1); |
|
392 mDateTime.setTime(time); |
|
393 mDateTime = ( mDateTime > AgendaUtil::minTime()? mDateTime : AgendaUtil::minTime()); |
391 mDateTime = ( mDateTime > AgendaUtil::minTime()? mDateTime : AgendaUtil::minTime()); |
394 |
392 |
395 HandleDeleteMultipleEventsL( AgendaUtil::minTime(), |
393 HandleDeleteMultipleEventsL( AgendaUtil::minTime(), |
396 mDateTime,1 ); |
394 mDateTime,1 ); |
397 notification = ECalenNotifyMultipleEntriesDeleted; |
395 notification = ECalenNotifyMultipleEntriesDeleted; |
548 |
546 |
549 //AgendaUtil& agendaInterface = iController.agendaInterface(); |
547 //AgendaUtil& agendaInterface = iController.agendaInterface(); |
550 // Connect to the signal that gets generated when deletion is completed |
548 // Connect to the signal that gets generated when deletion is completed |
551 connect(iController.agendaInterface(), SIGNAL(entriesDeleted(int)), this, |
549 connect(iController.agendaInterface(), SIGNAL(entriesDeleted(int)), this, |
552 SLOT(doCompleted(int))); |
550 SLOT(doCompleted(int))); |
|
551 AgendaUtil::FilterFlags filter = |
|
552 AgendaUtil::FilterFlags(AgendaUtil::IncludeAnniversaries |
|
553 | AgendaUtil::IncludeAppointments |
|
554 | AgendaUtil::IncludeEvents |
|
555 | AgendaUtil::IncludeReminders |
|
556 | AgendaUtil::IncludeIncompletedTodos); |
553 // 1: First pass, delete all entries. |
557 // 1: First pass, delete all entries. |
554 iController.agendaInterface()->deleteEntries(iStartTime, iEndTime); |
558 iController.agendaInterface()->deleteEntries(iStartTime, iEndTime, filter); |
555 |
559 |
556 TRACE_EXIT_POINT; |
560 TRACE_EXIT_POINT; |
557 } |
561 } |
558 |
562 |
559 // ---------------------------------------------------------------------------- |
563 // ---------------------------------------------------------------------------- |