equal
deleted
inserted
replaced
441 |
441 |
442 // Set mailbox name to status pane |
442 // Set mailbox name to status pane |
443 iAppUi.SetActiveMailboxNameToStatusPaneL(); |
443 iAppUi.SetActiveMailboxNameToStatusPaneL(); |
444 } |
444 } |
445 CAknEnv::Static()->GetCurrentGlobalUiZoom( iCurrentZoomLevel ); |
445 CAknEnv::Static()->GetCurrentGlobalUiZoom( iCurrentZoomLevel ); |
446 // Set msk always empty when view is activated. |
|
447 SetMskL(); |
|
448 // <cmail> |
446 // <cmail> |
449 ReScaleUiL(); // In case that Landscape/Portrait has changed. |
447 ReScaleUiL(); // In case that Landscape/Portrait has changed. |
450 // </cmail> |
448 // </cmail> |
451 |
449 |
452 // <cmail> Touch |
450 // <cmail> Touch |
1694 |
1692 |
1695 TFSMailSortCriteria sortCriteria; |
1693 TFSMailSortCriteria sortCriteria; |
1696 sortCriteria.iField = EFSMailSortByDate; |
1694 sortCriteria.iField = EFSMailSortByDate; |
1697 sortCriteria.iOrder = EFSMailDescending; |
1695 sortCriteria.iOrder = EFSMailDescending; |
1698 iSearchOngoing = ETrue; |
1696 iSearchOngoing = ETrue; |
1699 // Model and list is set to be empty, set also MSK to empty |
|
1700 SetMskL(); |
|
1701 // Initialisr TextSearcher |
1697 // Initialisr TextSearcher |
1702 |
1698 |
1703 // Start search. |
1699 // Start search. |
1704 iMailBox->SearchL( iSearchStrings, sortCriteria, *this ); |
1700 iMailBox->SearchL( iSearchStrings, sortCriteria, *this ); |
1705 } |
1701 } |
1911 else |
1907 else |
1912 { |
1908 { |
1913 // Set the extendedability and extended size |
1909 // Set the extendedability and extended size |
1914 iSearchTreeListVisualizer->SetItemsAlwaysExtendedL( EFalse ); |
1910 iSearchTreeListVisualizer->SetItemsAlwaysExtendedL( EFalse ); |
1915 } |
1911 } |
1916 |
|
1917 // Set msk to "Open when first is found". |
|
1918 SetMskL(); |
|
1919 } |
1912 } |
1920 } |
1913 } |
1921 |
1914 |
1922 } |
1915 } |
1923 |
1916 |
2465 if ( iSearchList->Count() ) |
2458 if ( iSearchList->Count() ) |
2466 { |
2459 { |
2467 LaunchStylusPopupMenuL( aPoint ); |
2460 LaunchStylusPopupMenuL( aPoint ); |
2468 } |
2461 } |
2469 break; |
2462 break; |
2470 case MFsTreeListObserver::EFsTreeListItemWillGetFocused: |
|
2471 { |
|
2472 SetMskL(); |
|
2473 break; |
|
2474 } |
|
2475 case MFsTreeListObserver::EFsFocusVisibilityChange: |
2463 case MFsTreeListObserver::EFsFocusVisibilityChange: |
2476 { |
2464 { |
2477 iAppUi.SetFocusVisibility( EFalse ); |
2465 iAppUi.SetFocusVisibility( EFalse ); |
2478 break; |
2466 break; |
2479 } |
2467 } |
2560 iRequiredSearchPriority = KCallingSearchPriority; //decrease priority to enable search for contact |
2548 iRequiredSearchPriority = KCallingSearchPriority; //decrease priority to enable search for contact |
2561 return ETrue; // searching started - consume keyup event |
2549 return ETrue; // searching started - consume keyup event |
2562 } |
2550 } |
2563 } |
2551 } |
2564 return EFalse; //no calling key up will execute Call app |
2552 return EFalse; //no calling key up will execute Call app |
2565 } |
|
2566 |
|
2567 |
|
2568 // --------------------------------------------------------------------------- |
|
2569 // Logic for changing msk |
|
2570 // --------------------------------------------------------------------------- |
|
2571 // |
|
2572 void CFSEmailUiSearchListVisualiser::SetMskL() |
|
2573 { |
|
2574 FUNC_LOG; |
|
2575 if ( iFirstStartCompleted ) |
|
2576 { |
|
2577 if ( iSearchList && iSearchList->Count() ) |
|
2578 { |
|
2579 ChangeMskCommandL( R_FSE_QTN_MSK_OPEN ); |
|
2580 } |
|
2581 else |
|
2582 { |
|
2583 ChangeMskCommandL( R_FSE_QTN_MSK_EMPTY ); |
|
2584 } |
|
2585 } |
|
2586 } |
2553 } |
2587 |
2554 |
2588 //<cmail> |
2555 //<cmail> |
2589 // --------------------------------------------------------------------------- |
2556 // --------------------------------------------------------------------------- |
2590 // CFSEmailUiSearchListVisualiser::SetHeaderTextAttributesL() |
2557 // CFSEmailUiSearchListVisualiser::SetHeaderTextAttributesL() |