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 { // bit awkward but correct functionality provided. |
994 { |
995 TKeyEvent keyEvent; |
995 if ( !iHideCallSubMenu ) |
996 keyEvent.iCode = EKeyPhoneSend; |
996 { // bit awkward but correct functionality provided. |
997 OfferKeyEventL( keyEvent, EEventKey ); |
997 TKeyEvent keyEvent; |
|
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 } |
998 break; |
1030 break; |
999 } |
1031 } |
1000 // fix for FAMZ-7JVQ4Y |
1032 // fix for FAMZ-7JVQ4Y |
1001 case EFindItemSubMenuSend: |
1033 case EFindItemSubMenuSend: |
1002 { |
1034 { |
1275 { |
1307 { |
1276 aMenuPane->DeleteMenuItem(EFindItemCmdCall); |
1308 aMenuPane->DeleteMenuItem(EFindItemCmdCall); |
1277 } |
1309 } |
1278 else if ( |
1310 else if ( |
1279 iSearchCase & CFindItemEngine::EFindItemSearchPhoneNumberBin && |
1311 iSearchCase & CFindItemEngine::EFindItemSearchPhoneNumberBin && |
1280 !iHideCallMenu ) |
1312 !iHideCallMenu && !iHideCallSubMenu ) |
1281 { |
1313 { |
1282 aMenuPane->SetItemDimmed( EFindItemCmdCall, ETrue ); |
1314 aMenuPane->SetItemDimmed( EFindItemCmdCall, ETrue ); |
1283 aMenuPane->AddMenuItemsL( |
1315 aMenuPane->AddMenuItemsL( |
1284 R_FINDITEM_CALLUI_AIW_ITEM, |
1316 R_FINDITEM_CALLUI_AIW_ITEM, |
1285 EFindItemCmdCall ); |
1317 EFindItemCmdCall ); |
1338 #ifndef RD_VIRTUAL_PHONEBOOK |
1370 #ifndef RD_VIRTUAL_PHONEBOOK |
1339 iPbkDataSave->DynInitMenuPaneL( aMenuId, aMenuPane ); |
1371 iPbkDataSave->DynInitMenuPaneL( aMenuId, aMenuPane ); |
1340 #endif // !RD_VIRTUAL_PHONEBOOK |
1372 #endif // !RD_VIRTUAL_PHONEBOOK |
1341 } |
1373 } |
1342 } |
1374 } |
|
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 |
1343 |
1387 |
1344 // ----------------------------------------------------------------------------- |
1388 // ----------------------------------------------------------------------------- |
1345 // CFindItemDialog::OfferKeyEventL |
1389 // CFindItemDialog::OfferKeyEventL |
1346 // Handles key events |
1390 // Handles key events |
1347 // ----------------------------------------------------------------------------- |
1391 // ----------------------------------------------------------------------------- |