calendarui/globaldata/src/calenglobaldata.cpp
branchRCL_3
changeset 27 55d60436f00b
parent 21 9711e452b5e9
child 30 d68a4b5d5885
equal deleted inserted replaced
21:9711e452b5e9 27:55d60436f00b
    46 #include <calcalendarinfo.h>
    46 #include <calcalendarinfo.h>
    47 #include <calcalendariterator.h>
    47 #include <calcalendariterator.h>
    48 #include <CalendarInternalCRKeys.h>
    48 #include <CalendarInternalCRKeys.h>
    49 #include <calenmulticalutil.h>
    49 #include <calenmulticalutil.h>
    50 
    50 
    51 #include <BAUTILS.H>
    51 #include <bautils.h>
    52 #include <calensvrmissedalarmmanagerresource.rsg>
    52 #include <calensvrmissedalarmmanagerresource.rsg>
    53 // Default Calendar database path
    53 // Default Calendar database path
    54 _LIT( KCalendarDatabaseFilePath, "c:calendar" );
    54 _LIT( KCalendarDatabaseFilePath, "c:calendar" );
    55 _LIT( KPhoneCalendar,"Personal" );
    55 _LIT( KPhoneCalendar,"Personal" );
    56 _LIT( KExtCalendar,"Ext calendar" );
    56 _LIT( KExtCalendar,"Ext calendar" );
  1392                 
  1392                 
  1393                 TBuf8<KBuffLength> keyBuff;
  1393                 TBuf8<KBuffLength> keyBuff;
  1394                 
  1394                 
  1395                 // Set the modification time as home time.
  1395                 // Set the modification time as home time.
  1396                 keyBuff.Zero();
  1396                 keyBuff.Zero();
       
  1397                 keyBuff.AppendNum(EModificationTime);
  1397                 TTime modificationTime;
  1398                 TTime modificationTime;
  1398                 modificationTime.HomeTime();
  1399                 modificationTime.HomeTime();
  1399                 TPckgC<TTime> pkgModificationTime(modificationTime);
  1400                 TPckgC<TTime> pkgModificationTime(modificationTime);
  1400                 caleninfo->SetPropertyL(keyBuff, pkgModificationTime);
  1401                 caleninfo->SetPropertyL(keyBuff, pkgModificationTime);
  1401                 
  1402                 
  1497 //
  1498 //
  1498 EXPORT_C void CCalenGlobalData::GetAllCalendarInfoL( 
  1499 EXPORT_C void CCalenGlobalData::GetAllCalendarInfoL( 
  1499                     RPointerArray<CCalCalendarInfo>& aCalendarInfoList )
  1500                     RPointerArray<CCalCalendarInfo>& aCalendarInfoList )
  1500 	{
  1501 	{
  1501 	TRACE_ENTRY_POINT;
  1502 	TRACE_ENTRY_POINT;
       
  1503 	CleanupClosePushL(aCalendarInfoList);
  1502     RFs fsSession;
  1504     RFs fsSession;
  1503     CleanupClosePushL( fsSession );
  1505     CleanupClosePushL( fsSession );
  1504     RResourceFile resourceFile;
  1506     RResourceFile resourceFile;
  1505     CleanupClosePushL( resourceFile );
  1507     CleanupClosePushL( resourceFile );
  1506     User::LeaveIfError( fsSession.Connect() );
  1508     User::LeaveIfError( fsSession.Connect() );
  1543 	   
  1545 	   
  1544             aCalendarInfoList.AppendL(iCalendarInfoList[index]);
  1546             aCalendarInfoList.AppendL(iCalendarInfoList[index]);
  1545 	        
  1547 	        
  1546 	    }
  1548 	    }
  1547 	 CleanupStack::PopAndDestroy(2);
  1549 	 CleanupStack::PopAndDestroy(2);
       
  1550 	 CleanupStack::Pop(&aCalendarInfoList);
  1548 	TRACE_EXIT_POINT;
  1551 	TRACE_EXIT_POINT;
  1549 	}
  1552 	}
  1550 
  1553 
  1551 // -----------------------------------------------------------------------------
  1554 // -----------------------------------------------------------------------------
  1552 // CCalenGlobalData::CreateNewSessionL
  1555 // CCalenGlobalData::CreateNewSessionL