commonuis/CommonUi/src/FindItemDialog.cpp
branchRCL_3
changeset 72 a5e7a4f63858
parent 56 d48ab3b357f1
equal deleted inserted replaced
64:85902f042028 72:a5e7a4f63858
   989             contextPane->SetPictureToDefaultL();
   989             contextPane->SetPictureToDefaultL();
   990             break;
   990             break;
   991             }
   991             }
   992         // Phone number cmds
   992         // Phone number cmds
   993         case EFindItemCmdCall:
   993         case EFindItemCmdCall:
   994             {
   994             { // bit awkward but correct functionality provided.
   995             if ( !iHideCallSubMenu )
   995             TKeyEvent keyEvent;
   996                 { // bit awkward but correct functionality provided.
   996             keyEvent.iCode = EKeyPhoneSend;
   997                 TKeyEvent keyEvent;
   997             OfferKeyEventL( keyEvent, EEventKey );
   998                 keyEvent.iCode = EKeyPhoneSend;
       
   999                 OfferKeyEventL( keyEvent, EEventKey );
       
  1000                 }
       
  1001             else
       
  1002                 {
       
  1003                 if ( !iDialData )
       
  1004                     {
       
  1005                     break;
       
  1006                     }
       
  1007                 FormatDialDataL( aCommandId );
       
  1008 
       
  1009                 CAiwGenericParamList& paramList =
       
  1010                     iServiceHandler->InParamListL();
       
  1011 
       
  1012                 if ( iFindItemVoIPExtension->VoIPProfilesExistL() &&
       
  1013                     ( iSearchCase ==
       
  1014                     CFindItemEngine::EFindItemSearchMailAddressBin ||
       
  1015                     iSearchCase == KSearchTelInternetNumber ) )
       
  1016                     {
       
  1017                     //voip
       
  1018                     iDialData->SetCallType( CAiwDialData::EAIWVoiP );
       
  1019                     }
       
  1020 
       
  1021                 iDialData->FillInParamListL( paramList );
       
  1022 
       
  1023                 iServiceHandler->ExecuteServiceCmdL(
       
  1024                     KAiwCmdCall,
       
  1025                     paramList,
       
  1026                     iServiceHandler->OutParamListL(),
       
  1027                     0, // No options used.
       
  1028                     NULL ); // Dial results are not wanted.
       
  1029                 }
       
  1030             break;
   998             break;
  1031             }
   999             }
  1032         // fix for FAMZ-7JVQ4Y
  1000         // fix for FAMZ-7JVQ4Y
  1033         case EFindItemSubMenuSend:
  1001         case EFindItemSubMenuSend:
  1034            {
  1002            {
  1307             {
  1275             {
  1308             aMenuPane->DeleteMenuItem(EFindItemCmdCall);
  1276             aMenuPane->DeleteMenuItem(EFindItemCmdCall);
  1309             }
  1277             }
  1310         else if (
  1278         else if (
  1311             iSearchCase & CFindItemEngine::EFindItemSearchPhoneNumberBin &&
  1279             iSearchCase & CFindItemEngine::EFindItemSearchPhoneNumberBin &&
  1312             !iHideCallMenu && !iHideCallSubMenu )
  1280             !iHideCallMenu )
  1313             {
  1281             {
  1314             aMenuPane->SetItemDimmed( EFindItemCmdCall, ETrue );
  1282             aMenuPane->SetItemDimmed( EFindItemCmdCall, ETrue );
  1315             aMenuPane->AddMenuItemsL(
  1283             aMenuPane->AddMenuItemsL(
  1316                 R_FINDITEM_CALLUI_AIW_ITEM,
  1284                 R_FINDITEM_CALLUI_AIW_ITEM,
  1317                 EFindItemCmdCall );
  1285                 EFindItemCmdCall );
  1370 #ifndef RD_VIRTUAL_PHONEBOOK
  1338 #ifndef RD_VIRTUAL_PHONEBOOK
  1371         iPbkDataSave->DynInitMenuPaneL( aMenuId, aMenuPane );
  1339         iPbkDataSave->DynInitMenuPaneL( aMenuId, aMenuPane );
  1372 #endif // !RD_VIRTUAL_PHONEBOOK
  1340 #endif // !RD_VIRTUAL_PHONEBOOK
  1373         }
  1341         }
  1374     }
  1342     }
  1375 
       
  1376 
       
  1377 // -----------------------------------------------------------------------------
       
  1378 // CFindItemDialog::SetCallSubMenuVisibility
       
  1379 // Sets AIW submenu visibility
       
  1380 // -----------------------------------------------------------------------------
       
  1381 //
       
  1382 EXPORT_C void CFindItemDialog::SetCallSubMenuVisibility( TBool aVisible )
       
  1383     {
       
  1384     iHideCallSubMenu = !aVisible;
       
  1385     }
       
  1386 
       
  1387 
  1343 
  1388 // -----------------------------------------------------------------------------
  1344 // -----------------------------------------------------------------------------
  1389 // CFindItemDialog::OfferKeyEventL
  1345 // CFindItemDialog::OfferKeyEventL
  1390 //  Handles key events
  1346 //  Handles key events
  1391 // -----------------------------------------------------------------------------
  1347 // -----------------------------------------------------------------------------