equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-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 "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". |
423 User::LeaveIfError( err ); |
423 User::LeaveIfError( err ); |
424 |
424 |
425 num = iList->Attribute( EAutoUpdateCheck ); |
425 num = iList->Attribute( EAutoUpdateCheck ); |
426 err = cenrep->Set( KIAUpdateAutoUpdateCheck, num ); |
426 err = cenrep->Set( KIAUpdateAutoUpdateCheck, num ); |
427 User::LeaveIfError( err ); |
427 User::LeaveIfError( err ); |
428 |
428 |
429 num = iList->Attribute( ERoamingWarning ); |
|
430 err = cenrep->Set( KIAUpdateRoamingWarning, num ); |
|
431 User::LeaveIfError( err ); |
|
432 |
|
433 TUint32 ignore = KErrNone; |
429 TUint32 ignore = KErrNone; |
434 User::LeaveIfError( cenrep->CommitTransaction( ignore ) ); |
430 User::LeaveIfError( cenrep->CommitTransaction( ignore ) ); |
435 CleanupStack::PopAndDestroy(); // CleanupCancelTransactionPushL() |
431 CleanupStack::PopAndDestroy(); // CleanupCancelTransactionPushL() |
436 CleanupStack::PopAndDestroy( cenrep ); |
432 CleanupStack::PopAndDestroy( cenrep ); |
437 } |
433 } |
478 item = new (ELeave) CAknEnumeratedTextPopupSettingItem |
474 item = new (ELeave) CAknEnumeratedTextPopupSettingItem |
479 ( aSettingId, iAutoUpdateCheck ); |
475 ( aSettingId, iAutoUpdateCheck ); |
480 break; |
476 break; |
481 } |
477 } |
482 |
478 |
483 case EIAUpdateSettingRoamingWarning: |
|
484 { |
|
485 User::LeaveIfError( cenrep->Get( KIAUpdateRoamingWarning, iRoamingWarning ) ); |
|
486 item = new (ELeave) CAknBinaryPopupSettingItem |
|
487 ( aSettingId, iRoamingWarning ); |
|
488 break; |
|
489 } |
|
490 |
|
491 default: |
479 default: |
492 { |
480 { |
493 item = new (ELeave) CAknSettingItem( aSettingId ); |
481 item = new (ELeave) CAknSettingItem( aSettingId ); |
494 break; |
482 break; |
495 } |
483 } |
546 case CIAUpdateSettingDialog::EAutoUpdateCheck: |
534 case CIAUpdateSettingDialog::EAutoUpdateCheck: |
547 { |
535 { |
548 ret = iAutoUpdateCheck; |
536 ret = iAutoUpdateCheck; |
549 break; |
537 break; |
550 } |
538 } |
551 case CIAUpdateSettingDialog::ERoamingWarning: |
|
552 { |
|
553 ret = iRoamingWarning; |
|
554 break; |
|
555 } |
|
556 default: |
539 default: |
557 { |
540 { |
558 IAUpdateDialogUtil::Panic( KErrNotSupported ); |
541 IAUpdateDialogUtil::Panic( KErrNotSupported ); |
559 break; |
542 break; |
560 } |
543 } |
574 if ( iAutoUpdateCheck != EIAUpdateSettingValueDisable && |
557 if ( iAutoUpdateCheck != EIAUpdateSettingValueDisable && |
575 iAutoUpdateCheck != EIAUpdateSettingValueDisableWhenRoaming && |
558 iAutoUpdateCheck != EIAUpdateSettingValueDisableWhenRoaming && |
576 iAutoUpdateCheck != EIAUpdateSettingValueEnable ) |
559 iAutoUpdateCheck != EIAUpdateSettingValueEnable ) |
577 { |
560 { |
578 iAutoUpdateCheck = EIAUpdateSettingValueEnable; |
561 iAutoUpdateCheck = EIAUpdateSettingValueEnable; |
579 } |
|
580 |
|
581 if ( iRoamingWarning != EIAUpdateSettingValueOff && |
|
582 iRoamingWarning != EIAUpdateSettingValueOn ) |
|
583 { |
|
584 iRoamingWarning = EIAUpdateSettingValueOn; |
|
585 } |
562 } |
586 } |
563 } |
587 |
564 |
588 |
565 |
589 |
566 |