summaryrefslogtreecommitdiffstats
path: root/libkcal/calendarresources.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/calendarresources.cpp')
-rw-r--r--libkcal/calendarresources.cpp45
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;