summaryrefslogtreecommitdiffstats
path: root/libkcal/calendarlocal.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-30 07:52:23 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-30 07:52:23 +0000
commit4f6c584bacc8c3c694228f36ada3de77a76614a6 (patch)
treea4b40426f0bce6016a20b6f657fe588dfca9ff0f /libkcal/calendarlocal.cpp
parent5572a114be163aeae75648f8e82ce692d4a77517 (diff)
downloadtdepim-4f6c584bacc8c3c694228f36ada3de77a76614a6.tar.gz
tdepim-4f6c584bacc8c3c694228f36ada3de77a76614a6.zip
* Fixed CalDAV tasks loading when event loading fails
* Added calendar control functions to allow for a partial cache clear of only events, todos, or journals git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1169887 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkcal/calendarlocal.cpp')
-rw-r--r--libkcal/calendarlocal.cpp39
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 )
{