diff options
Diffstat (limited to 'libkcal/calendarlocal.cpp')
-rw-r--r-- | libkcal/calendarlocal.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp index 716fa5e98..27b27e0e2 100644 --- a/libkcal/calendarlocal.cpp +++ b/libkcal/calendarlocal.cpp @@ -104,6 +104,45 @@ void CalendarLocal::close() setObserversEnabled( true ); } +void CalendarLocal::closeEvents() +{ + setObserversEnabled( false ); + mFileName = TQString::null; + + deleteAllEvents(); + + mDeletedIncidences.clear(); + setModified( false ); + + setObserversEnabled( true ); +} + +void CalendarLocal::closeTodos() +{ + setObserversEnabled( false ); + mFileName = TQString::null; + + deleteAllTodos(); + + mDeletedIncidences.clear(); + setModified( false ); + + setObserversEnabled( true ); +} + +void CalendarLocal::closeJournals() +{ + setObserversEnabled( false ); + mFileName = TQString::null; + + deleteAllJournals(); + + mDeletedIncidences.clear(); + setModified( false ); + + setObserversEnabled( true ); +} + bool CalendarLocal::addEvent( Event *event ) { |