commonuis/CommonUi/src/FindItemDialog.cpp
branchRCL_3
changeset 72 a5e7a4f63858
parent 56 d48ab3b357f1
--- a/commonuis/CommonUi/src/FindItemDialog.cpp	Wed Sep 15 12:29:17 2010 +0300
+++ b/commonuis/CommonUi/src/FindItemDialog.cpp	Wed Oct 13 14:50:15 2010 +0300
@@ -991,42 +991,10 @@
             }
         // Phone number cmds
         case EFindItemCmdCall:
-            {
-            if ( !iHideCallSubMenu )
-                { // bit awkward but correct functionality provided.
-                TKeyEvent keyEvent;
-                keyEvent.iCode = EKeyPhoneSend;
-                OfferKeyEventL( keyEvent, EEventKey );
-                }
-            else
-                {
-                if ( !iDialData )
-                    {
-                    break;
-                    }
-                FormatDialDataL( aCommandId );
-
-                CAiwGenericParamList& paramList =
-                    iServiceHandler->InParamListL();
-
-                if ( iFindItemVoIPExtension->VoIPProfilesExistL() &&
-                    ( iSearchCase ==
-                    CFindItemEngine::EFindItemSearchMailAddressBin ||
-                    iSearchCase == KSearchTelInternetNumber ) )
-                    {
-                    //voip
-                    iDialData->SetCallType( CAiwDialData::EAIWVoiP );
-                    }
-
-                iDialData->FillInParamListL( paramList );
-
-                iServiceHandler->ExecuteServiceCmdL(
-                    KAiwCmdCall,
-                    paramList,
-                    iServiceHandler->OutParamListL(),
-                    0, // No options used.
-                    NULL ); // Dial results are not wanted.
-                }
+            { // bit awkward but correct functionality provided.
+            TKeyEvent keyEvent;
+            keyEvent.iCode = EKeyPhoneSend;
+            OfferKeyEventL( keyEvent, EEventKey );
             break;
             }
         // fix for FAMZ-7JVQ4Y
@@ -1309,7 +1277,7 @@
             }
         else if (
             iSearchCase & CFindItemEngine::EFindItemSearchPhoneNumberBin &&
-            !iHideCallMenu && !iHideCallSubMenu )
+            !iHideCallMenu )
             {
             aMenuPane->SetItemDimmed( EFindItemCmdCall, ETrue );
             aMenuPane->AddMenuItemsL(
@@ -1373,18 +1341,6 @@
         }
     }
 
-
-// -----------------------------------------------------------------------------
-// CFindItemDialog::SetCallSubMenuVisibility
-// Sets AIW submenu visibility
-// -----------------------------------------------------------------------------
-//
-EXPORT_C void CFindItemDialog::SetCallSubMenuVisibility( TBool aVisible )
-    {
-    iHideCallSubMenu = !aVisible;
-    }
-
-
 // -----------------------------------------------------------------------------
 // CFindItemDialog::OfferKeyEventL
 //  Handles key events