deviceupdatesui/deviceupdates/src/nsmldmsynchandler.cpp
changeset 67 fdbfe0a95492
parent 47 d316aecb87fd
equal deleted inserted replaced
62:03849bd79877 67:fdbfe0a95492
   232    	
   232    	
   233 	iSyncRunning = EFalse;
   233 	iSyncRunning = EFalse;
   234 	iSyncError = aError;    
   234 	iSyncError = aError;    
   235     iCheckUpdate = EFalse;        	
   235     iCheckUpdate = EFalse;        	
   236 
   236 
   237 #ifndef NO_UPDATE 
   237     CRepository* centrep = NULL;
   238         CRepository* centrep = NULL;
   238     TRAPD( err, centrep = CRepository::NewL( KCRUidNSmlDMSyncApp ) );
   239         TRAPD( err, centrep = CRepository::NewL( KCRUidNSmlDMSyncApp ) );
       
   240 	TInt profileId;
   239 	TInt profileId;
   241 	centrep->Get( KNSmlDMDefaultFotaProfileKey, profileId );
   240 	centrep->Get( KNSmlDMDefaultFotaProfileKey, profileId );
   242 	//FLOG( "CNSmlDMSyncHandler::SynchronizeCompletedL profileId = %d", profileId );
   241 	//FLOG( "CNSmlDMSyncHandler::SynchronizeCompletedL profileId = %d", profileId );
   243 	delete centrep;
   242 	delete centrep;
   244 	if ( profileId ==  iProfileId )
   243 	if ( profileId ==  iProfileId )
   268             //FLOG( "[OMADM]\t CNSmlDMSyncHandler::SynchronizeCompletedL(): No changes in FW Update states." );
   267             //FLOG( "[OMADM]\t CNSmlDMSyncHandler::SynchronizeCompletedL(): No changes in FW Update states." );
   269         iDialog = new HbDialog();
   268         iDialog = new HbDialog();
   270         iDialog->setHeadingWidget(new HbLabel(hbTrId("txt_device_update_title_phone_uptodate")));
   269         iDialog->setHeadingWidget(new HbLabel(hbTrId("txt_device_update_title_phone_uptodate")));
   271         iDialog->setContentWidget(new HbLabel(hbTrId("txt_device_update_dpopinfo_your_phone_is_already_u")));
   270         iDialog->setContentWidget(new HbLabel(hbTrId("txt_device_update_dpopinfo_your_phone_is_already_u")));
   272         iPrimaryAction = new HbAction();
   271         iPrimaryAction = new HbAction();
   273         iPrimaryAction->setText(hbTrId("OK"));
   272         iPrimaryAction->setText(hbTrId("txt_common_button_ok_single_dialog"));
   274 	    iDialog->setPrimaryAction(iPrimaryAction);
   273 	    iDialog->addAction(iPrimaryAction);
   275 	    iDialog->setTimeout(HbPopup::NoTimeout);
   274 	    iDialog->setTimeout(HbPopup::NoTimeout);
   276 	    iDialog->setDismissPolicy(HbPopup::NoDismiss);
   275 	    iDialog->setDismissPolicy(HbPopup::NoDismiss);
   277 	    iDialog->show();
   276 	    iDialog->show();
   278             // show the dialog
   277             // show the dialog
   279             }
   278             }
   280 
   279 
   281         }  
   280         }  
   282 #endif
       
   283 
   281 
   284 	iUseFotaProgressNote = EFalse;
   282 	iUseFotaProgressNote = EFalse;
   285     iSyncJob.Close();
   283     iSyncJob.Close();
   286     
   284     
   287 	// handle error in HandleActiveCallL (when active caller completes)
   285 	// handle error in HandleActiveCallL (when active caller completes)