equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2003-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 "Eclipse Public License v1.0" |
5 * under the terms of "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". |
362 CAknSettingPage* dlg = NULL; |
362 CAknSettingPage* dlg = NULL; |
363 CDesCArrayFlat* itemArray = NULL; |
363 CDesCArrayFlat* itemArray = NULL; |
364 |
364 |
365 if( aSettingIndex == EAppMngr2SettingSwInstall ) |
365 if( aSettingIndex == EAppMngr2SettingSwInstall ) |
366 { |
366 { |
367 // Install software - toggle 'Signed only' and 'All' |
367 // Install software |
368 TBool allowUntrusted = EFalse; |
368 itemArray = iCoeEnv->ReadDesC16ArrayResourceL( |
369 repDB->Get( KSWInstallerAllowUntrusted, allowUntrusted ); |
369 R_APPMNGR2_ALLOW_UNTRUSTED_VALUE_ARRAY ); |
370 allowUntrusted = !allowUntrusted; |
370 repDB->Get( KSWInstallerAllowUntrusted, newIndex ); |
371 SetPermissionL( aSettingIndex, allowUntrusted, urlText ); |
371 if( newIndex ) |
|
372 { |
|
373 newIndex = 1; |
|
374 } |
|
375 dlg = new ( ELeave ) CAknRadioButtonSettingPage( |
|
376 R_APPMNGR2_SET_PAGE_ALLOW_UNTRUSTED, |
|
377 newIndex, itemArray ); |
372 } |
378 } |
373 else |
379 else |
374 { |
380 { |
375 // OCSP check |
381 // OCSP check |
376 repDB->Get( KSWInstallerOcspProcedure, newIndex ); |
382 repDB->Get( KSWInstallerOcspProcedure, newIndex ); |
381 R_APPMNGR2_OCSP_CHECK_PAGE, newIndex, itemArray ); |
387 R_APPMNGR2_OCSP_CHECK_PAGE, newIndex, itemArray ); |
382 } |
388 } |
383 CleanupStack::PopAndDestroy( repDB ); |
389 CleanupStack::PopAndDestroy( repDB ); |
384 CleanupStack::PushL( itemArray ); |
390 CleanupStack::PushL( itemArray ); |
385 |
391 |
386 if( dlg && dlg->ExecuteLD( CAknSettingPage::EUpdateWhenChanged ) ) |
392 if( dlg->ExecuteLD( CAknSettingPage::EUpdateWhenChanged ) ) |
387 { |
393 { |
388 SetPermissionL( aSettingIndex, newIndex, urlText ); |
394 SetPermissionL( aSettingIndex, newIndex, urlText ); |
389 } |
395 } |
390 CleanupStack::PopAndDestroy( itemArray ); |
396 CleanupStack::PopAndDestroy( itemArray ); |
391 } |
397 } |