diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-30 07:52:23 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-30 07:52:23 +0000 |
commit | 4f6c584bacc8c3c694228f36ada3de77a76614a6 (patch) | |
tree | a4b40426f0bce6016a20b6f657fe588dfca9ff0f /libkcal/calendarresources.cpp | |
parent | 5572a114be163aeae75648f8e82ce692d4a77517 (diff) | |
download | tdepim-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/calendarresources.cpp')
-rw-r--r-- | libkcal/calendarresources.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/libkcal/calendarresources.cpp b/libkcal/calendarresources.cpp index 94ce0ca31..42f618dc3 100644 --- a/libkcal/calendarresources.cpp +++ b/libkcal/calendarresources.cpp @@ -204,6 +204,51 @@ void CalendarResources::close() } } +void CalendarResources::closeEvents() +{ + kdDebug(5800) << "CalendarResources::close" << endl; + + if ( mOpen ) { + CalendarResourceManager::ActiveIterator it; + for ( it = mManager->activeBegin(); it != mManager->activeEnd(); ++it ) { + (*it)->close(); + } + + setModified( false ); + mOpen = false; + } +} + +void CalendarResources::closeTodos() +{ + kdDebug(5800) << "CalendarResources::close" << endl; + + if ( mOpen ) { + CalendarResourceManager::ActiveIterator it; + for ( it = mManager->activeBegin(); it != mManager->activeEnd(); ++it ) { + (*it)->close(); + } + + setModified( false ); + mOpen = false; + } +} + +void CalendarResources::closeJournals() +{ + kdDebug(5800) << "CalendarResources::close" << endl; + + if ( mOpen ) { + CalendarResourceManager::ActiveIterator it; + for ( it = mManager->activeBegin(); it != mManager->activeEnd(); ++it ) { + (*it)->close(); + } + + setModified( false ); + mOpen = false; + } +} + void CalendarResources::save() { kdDebug(5800) << "CalendarResources::save()" << endl; |