installationservices/swi/source/swis/server/restorecontroller.cpp
branchRCL_3
changeset 25 7333d7932ef7
parent 0 ba25891c3a9e
child 26 8b7f4e561641
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
     1 /*
     1 /*
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2004-2010 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 					application->PopulateMatchingDeviceLanguagesL(iMatchingSupportedLanguagesArray[matchingLanguageCount++]);
   100 					DEBUG_PRINTF2(_L8("Device matching language for Restore - %d"),iMatchingSupportedLanguagesArray[matchingLanguageCount]);
   101 					}
   101 					application->PopulateMatchingDeviceLanguagesL(iMatchingSupportedLanguagesArray[matchingLanguageCount++]);					
       
   102 					}				
   102 				}
   103 				}
       
   104 			++matchingLanguageCount;
   103  			break;
   105  			break;
   104  		
   106  		
   105  		case EInstPartialUpgrade:
   107  		case EInstPartialUpgrade:
   106  			application->SetPartialUpgrade(*controller);
   108  			application->SetPartialUpgrade(*controller);
   107 			application->UserSelections().SetDrive(iInstallDrive);	
   109 			application->UserSelections().SetDrive(iInstallDrive);	
   126 		case EInstAugmentation:	
   128 		case EInstAugmentation:	
   127 			application->SetAugmentation(*controller);
   129 			application->SetAugmentation(*controller);
   128 			application->UserSelections().SetDrive(iAugmentationDrives[augmentationIndex++]);
   130 			application->UserSelections().SetDrive(iAugmentationDrives[augmentationIndex++]);
   129 			
   131 			
   130 			//if there are macthing languages then populate iMatchingDeviceLanguages array of application object
   132 			//if there are macthing languages then populate iMatchingDeviceLanguages array of application object
   131 			if ( noOfMatchingLanguages )
   133 			if ( noOfMatchingLanguages)
   132 				{
   134 				{				
   133 				while( iMatchingSupportedLanguagesArray[matchingLanguageCount] != ELangNone)
   135 				while( iMatchingSupportedLanguagesArray[matchingLanguageCount] != ELangNone)
   134 					  {
   136 					  {
   135 					   application->PopulateMatchingDeviceLanguagesL(iMatchingSupportedLanguagesArray[matchingLanguageCount++]);
   137 					  DEBUG_PRINTF2(_L8("Device matching language for Restore - %d"),iMatchingSupportedLanguagesArray[matchingLanguageCount]);
   136 					  }
   138 					  application->PopulateMatchingDeviceLanguagesL(iMatchingSupportedLanguagesArray[matchingLanguageCount++]);
       
   139 					   
       
   140 					  }				
   137 				}
   141 				}
       
   142 			++matchingLanguageCount;
   138 			break;
   143 			break;
   139  			
   144  			
   140  		default:
   145  		default:
   141  			User::Leave(KErrNotSupported);
   146  			User::Leave(KErrNotSupported);
   142  			break;
   147  			break;