calendarui/globaldata/src/calenfilemapping.cpp
branchRCL_3
changeset 14 21239b3bcd78
parent 0 f979ecb2b13e
--- a/calendarui/globaldata/src/calenfilemapping.cpp	Wed Mar 31 21:29:10 2010 +0300
+++ b/calendarui/globaldata/src/calenfilemapping.cpp	Wed Apr 14 15:55:57 2010 +0300
@@ -16,6 +16,7 @@
  */
 #include "calendarui_debug.h"
 #include "calenfilemapping.h"
+#include "calendbchangenotifier.h"      // MCalenDBChangeObserver
 
 #include <calsession.h>
 #include <calentryview.h>           // Calendar Entry view
@@ -68,6 +69,12 @@
     {
     TRACE_ENTRY_POINT
     
+    if( iDBChangeNotifier )
+        {
+        delete iDBChangeNotifier;
+        iDBChangeNotifier = NULL;
+        }
+    
     if(iEntryView)
         {
         delete iEntryView;
@@ -195,4 +202,27 @@
     return iSessionPtr;
     }
 
+/*
+ * Set the dbchangenotifier observer
+ * @param CCalSession pointer to a session 
+ */
+void CCalenFileMapping::SetDBChangeNotifier(CCalenDbChangeNotifier* aDBChangeNotifier )
+    {
+    TRACE_ENTRY_POINT;
+    
+    iDBChangeNotifier = aDBChangeNotifier;
+    TRACE_EXIT_POINT;
+    }
+
+/*
+ * Get the dbchangenotifier observer.
+ * @return CCalSession pointer to session.
+ */
+CCalenDbChangeNotifier *CCalenFileMapping::GetDBChangeNotifier()
+    {
+    TRACE_ENTRY_POINT;
+    TRACE_EXIT_POINT;
+    return iDBChangeNotifier;
+    }
+
 //End