1 /* |
1 /* |
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2006-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". |
396 if ( aResourceId == R_PSUI_MAINVIEW_MENUPANE && |
396 if ( aResourceId == R_PSUI_MAINVIEW_MENUPANE && |
397 !FeatureManager::FeatureSupported( KFeatureIdHelp ) ) |
397 !FeatureManager::FeatureSupported( KFeatureIdHelp ) ) |
398 { |
398 { |
399 aMenuPane->DeleteMenuItem( EAknCmdHelp ); |
399 aMenuPane->DeleteMenuItem( EAknCmdHelp ); |
400 } |
400 } |
|
401 |
|
402 TInt index( KErrNotFound ); |
|
403 SettingCountAndIndex( index ); |
|
404 |
|
405 if ( KErrNotFound < index ) |
|
406 { |
|
407 // Hide delete option if sip profile used with presence settings |
|
408 // is registered. |
|
409 if ( iPSModel->IsSipProfileRegisteredL( index ) ) |
|
410 { |
|
411 TInt pos( KErrNotFound ); |
|
412 if ( aMenuPane->MenuItemExists( EPSUICmdDelete, pos ) ) |
|
413 { |
|
414 aMenuPane->SetItemSpecific( EPSUICmdDelete, EFalse ); |
|
415 aMenuPane->SetItemDimmed( EPSUICmdDelete, ETrue ); |
|
416 } |
|
417 } |
|
418 else |
|
419 { |
|
420 TInt pos( KErrNotFound ); |
|
421 if ( aMenuPane->MenuItemExists( EPSUICmdDelete, pos ) ) |
|
422 { |
|
423 aMenuPane->SetItemSpecific( EPSUICmdDelete, ETrue ); |
|
424 aMenuPane->SetItemDimmed( EPSUICmdDelete, EFalse ); |
|
425 } |
|
426 } |
|
427 } |
401 } |
428 } |
402 |
429 |
403 // --------------------------------------------------------------------------- |
430 // --------------------------------------------------------------------------- |
404 // CPSUIGSPlugin::PSModel() |
431 // CPSUIGSPlugin::PSModel() |
405 // See header for details. |
432 // See header for details. |