calendarui/multicaluidialog/src/multicaluidialogmodel.cpp
branchRCL_3
changeset 21 9711e452b5e9
parent 13 0f07cd1b5772
child 27 55d60436f00b
--- a/calendarui/multicaluidialog/src/multicaluidialogmodel.cpp	Wed Apr 14 15:55:57 2010 +0300
+++ b/calendarui/multicaluidialog/src/multicaluidialogmodel.cpp	Tue Apr 27 16:36:22 2010 +0300
@@ -26,8 +26,6 @@
 #include "multicaluidialogmodel.h"
 #include "calendarui_debug.h"
 
-_LIT( KCalendarDatabaseFilePath, "c:calendar" );
-
 // ----------------------------------------------------------------------------
 // CMultiCalUiDialogModel::CMultiCalUiDialogModel
 // Constructor
@@ -150,7 +148,7 @@
         {
         iCalendarStatus.Append(0);
 
-       /* if (!index) //First create the default session
+        if (!index) //First create the default session
             {
             const TPtrC name = iCalendarInfoList[index]->FileNameL();
             defaultSession->OpenL(name);
@@ -160,7 +158,7 @@
             iCalEntryViewArray.Append(entryView);
             CleanupStack::Pop(entryView);
             }
-        else*/
+        else
             {
             CCalSession* session = CCalSession::NewL(*defaultSession);
             CleanupStack::PushL(session);
@@ -307,15 +305,7 @@
     CCalCalendarInfo* calendarInfo = calIter->FirstL();
     while (calendarInfo)
         {
-        TPtrC fileNamePtr = calendarInfo->FileNameL();
-        if(fileNamePtr.CompareF(KCalendarDatabaseFilePath))
-           {
-           aCalendarInfoList.AppendL(calendarInfo);
-           }
-        else
-           {
-           delete calendarInfo;
-           }
+        aCalendarInfoList.AppendL(calendarInfo);
         calendarInfo = calIter->NextL();
         }
     CleanupStack::PopAndDestroy(calIter);