serviceproviders/sapi_calendar/calendarservice/src/addentry.cpp
branchRCL_3
changeset 34 5dae2c62e9b6
parent 23 50974a8b132e
equal deleted inserted replaced
32:4ac3198c2c5b 34:5dae2c62e9b6
   177 		if( iCalendarEntry->ModifiedAttributes() & CEntryAttributes::ERepeatRule )
   177 		if( iCalendarEntry->ModifiedAttributes() & CEntryAttributes::ERepeatRule )
   178 			User::Leave( KErrArgument );
   178 			User::Leave( KErrArgument );
   179 		
   179 		
   180 		TCalTime instanceStTime = iCalendarEntry->InstanceStartTime();
   180 		TCalTime instanceStTime = iCalendarEntry->InstanceStartTime();
   181         
   181         
   182 		CCalInstance* instance;
   182 		CCalInstance* instance = NULL;
   183 		
   183 		
   184 
   184 
   185 		// Fetch instance having start time and LocalUid specified and GlobalUid specified
   185 		// Fetch instance having start time and LocalUid specified and GlobalUid specified
   186 		if(iCalendarEntry->ModifiedAttributes() & CEntryAttributes::ELocalUid)
   186 		if(iCalendarEntry->ModifiedAttributes() & CEntryAttributes::ELocalUid)
   187 		    {
   187 		    {
   260 		}
   260 		}
   261 	// Entry Modification
   261 	// Entry Modification
   262 	else
   262 	else
   263 		{
   263 		{
   264 		// Fetch entry to be modified
   264 		// Fetch entry to be modified
   265 		CCalEntry* entry ;
   265 		CCalEntry* entry = NULL;
   266 
   266 
   267 		if(iCalendarEntry->ModifiedAttributes() & CEntryAttributes::ELocalUid)
   267 		if(iCalendarEntry->ModifiedAttributes() & CEntryAttributes::ELocalUid)
   268             {
   268             {
   269             entry = iSessionInfo->EntryView()->FetchL( iCalendarEntry->LocalUid() );
   269             entry = iSessionInfo->EntryView()->FetchL( iCalendarEntry->LocalUid() );
   270             }
   270             }