installationservices/swi/source/swis/server/restorecontroller.cpp
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
     1 /*
     2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    91  		case EInstInstallation:
    91  		case EInstInstallation:
    92  			application->SetInstall(*controller);
    92  			application->SetInstall(*controller);
    93 			application->UserSelections().SetDrive(iInstallDrive);		
    93 			application->UserSelections().SetDrive(iInstallDrive);		
    94 			
    94 			
    95 			//if there are macthing languages then populate iMatchingDeviceLanguages array of application object
    95 			//if there are macthing languages then populate iMatchingDeviceLanguages array of application object
    96 			if (noOfMatchingLanguages)
    96 			if ( noOfMatchingLanguages )
    97 				{				
    97 				{
    98 				while( iMatchingSupportedLanguagesArray[matchingLanguageCount] != ELangNone)
    98 				while( iMatchingSupportedLanguagesArray[matchingLanguageCount] != ELangNone)
    99 					{		
    99 					{
   100 					DEBUG_PRINTF2(_L8("Device matching language for Restore - %d"),iMatchingSupportedLanguagesArray[matchingLanguageCount]);
   100 					application->PopulateMatchingDeviceLanguagesL(iMatchingSupportedLanguagesArray[matchingLanguageCount++]);
   101 					application->PopulateMatchingDeviceLanguagesL(iMatchingSupportedLanguagesArray[matchingLanguageCount++]);					
   101 					}
   102 					}				
       
   103 				}
   102 				}
   104 			++matchingLanguageCount;
       
   105  			break;
   103  			break;
   106  		
   104  		
   107  		case EInstPartialUpgrade:
   105  		case EInstPartialUpgrade:
   108  			application->SetPartialUpgrade(*controller);
   106  			application->SetPartialUpgrade(*controller);
   109 			application->UserSelections().SetDrive(iInstallDrive);	
   107 			application->UserSelections().SetDrive(iInstallDrive);	
   128 		case EInstAugmentation:	
   126 		case EInstAugmentation:	
   129 			application->SetAugmentation(*controller);
   127 			application->SetAugmentation(*controller);
   130 			application->UserSelections().SetDrive(iAugmentationDrives[augmentationIndex++]);
   128 			application->UserSelections().SetDrive(iAugmentationDrives[augmentationIndex++]);
   131 			
   129 			
   132 			//if there are macthing languages then populate iMatchingDeviceLanguages array of application object
   130 			//if there are macthing languages then populate iMatchingDeviceLanguages array of application object
   133 			if ( noOfMatchingLanguages)
   131 			if ( noOfMatchingLanguages )
   134 				{				
   132 				{
   135 				while( iMatchingSupportedLanguagesArray[matchingLanguageCount] != ELangNone)
   133 				while( iMatchingSupportedLanguagesArray[matchingLanguageCount] != ELangNone)
   136 					  {
   134 					  {
   137 					  DEBUG_PRINTF2(_L8("Device matching language for Restore - %d"),iMatchingSupportedLanguagesArray[matchingLanguageCount]);
   135 					   application->PopulateMatchingDeviceLanguagesL(iMatchingSupportedLanguagesArray[matchingLanguageCount++]);
   138 					  application->PopulateMatchingDeviceLanguagesL(iMatchingSupportedLanguagesArray[matchingLanguageCount++]);
   136 					  }
   139 					   
       
   140 					  }				
       
   141 				}
   137 				}
   142 			++matchingLanguageCount;
       
   143 			break;
   138 			break;
   144  			
   139  			
   145  		default:
   140  		default:
   146  			User::Leave(KErrNotSupported);
   141  			User::Leave(KErrNotSupported);
   147  			break;
   142  			break;