calendarui/controller/src/calenmultipledbui.cpp
branchRCL_3
changeset 30 d68a4b5d5885
parent 27 55d60436f00b
child 48 bf573002ff72
equal deleted inserted replaced
27:55d60436f00b 30:d68a4b5d5885
   768     TBuf8<KBuffLength> keyBuff;
   768     TBuf8<KBuffLength> keyBuff;
   769     TBool syncstatus = EFalse;
   769     TBool syncstatus = EFalse;
   770     keyBuff.Zero();
   770     keyBuff.Zero();
   771     keyBuff.AppendNum( ESyncStatus ); 
   771     keyBuff.AppendNum( ESyncStatus ); 
   772     TPckgC<TBool> pckgSyncStatusValue(syncstatus);
   772     TPckgC<TBool> pckgSyncStatusValue(syncstatus);
   773     pckgSyncStatusValue.Set(iCalendarInfoEdited->PropertyValueL( keyBuff ));
   773     TRAP_IGNORE(pckgSyncStatusValue.Set(iCalendarInfoEdited->PropertyValueL( keyBuff ))); 
   774     iCalendarInfoOriginal->SetPropertyL( keyBuff, pckgSyncStatusValue );                
   774     iCalendarInfoOriginal->SetPropertyL( keyBuff, pckgSyncStatusValue );                
   775 
   775 
   776     iDbEditor = CCalenMultiDBEditor::NewL(*this,*iCalendarInfoEdited, iController,
   776     iDbEditor = CCalenMultiDBEditor::NewL(*this,*iCalendarInfoEdited, iController,
   777             ETrue);
   777             ETrue);
   778 
   778 
   873     keyBuff.Zero();
   873     keyBuff.Zero();
   874     keyBuff.AppendNum( ESyncStatus ); 
   874     keyBuff.AppendNum( ESyncStatus ); 
   875     TPckgC<TBool> pckgSyncStatusValueOriginal(syncstatusOriginal);
   875     TPckgC<TBool> pckgSyncStatusValueOriginal(syncstatusOriginal);
   876     pckgSyncStatusValueOriginal.Set(aCalendarInfoOriginal.PropertyValueL( keyBuff ));
   876     pckgSyncStatusValueOriginal.Set(aCalendarInfoOriginal.PropertyValueL( keyBuff ));
   877     TPckgC<TBool> pckgSyncStatusValueModified(syncstatusModified);
   877     TPckgC<TBool> pckgSyncStatusValueModified(syncstatusModified);
   878     pckgSyncStatusValueModified.Set(aCalendarInfoModified.PropertyValueL( keyBuff ));
   878     TRAP_IGNORE(pckgSyncStatusValueModified.Set(aCalendarInfoModified.PropertyValueL( keyBuff )));
   879     syncstatusOriginal = pckgSyncStatusValueOriginal();
   879     syncstatusOriginal = pckgSyncStatusValueOriginal();
   880     syncstatusModified = pckgSyncStatusValueModified();
   880     syncstatusModified = pckgSyncStatusValueModified();
   881     if (editedName->Compare(aCalendarInfoOriginal.NameL())
   881     if (editedName->Compare(aCalendarInfoOriginal.NameL())
   882             || aCalendarInfoModified.Color() != aCalendarInfoOriginal.Color()
   882             || aCalendarInfoModified.Color() != aCalendarInfoOriginal.Color()
   883             || aCalendarInfoModified.Enabled()!= aCalendarInfoOriginal.Enabled()
   883             || aCalendarInfoModified.Enabled()!= aCalendarInfoOriginal.Enabled()