equal
deleted
inserted
replaced
535 { |
535 { |
536 TGestureCode eventCode( aEvent.Code( MGestureEvent::EAxisBoth ) ); |
536 TGestureCode eventCode( aEvent.Code( MGestureEvent::EAxisBoth ) ); |
537 FTRACE( FPrint( _L("CFMRadioAlfVisualizer::HandleGestureL(eventCode=%d)"), eventCode ) ); |
537 FTRACE( FPrint( _L("CFMRadioAlfVisualizer::HandleGestureL(eventCode=%d)"), eventCode ) ); |
538 |
538 |
539 CFMRadioAppUi* appUi = static_cast<CFMRadioAppUi*>( CCoeEnv::Static()->AppUi() ); |
539 CFMRadioAppUi* appUi = static_cast<CFMRadioAppUi*>( CCoeEnv::Static()->AppUi() ); |
540 // handle gestures only if there is no call ongoing |
540 // handle gestures only if there is no call or tuning ongoing |
541 if ( !appUi->RadioEngine()->IsInCall() ) |
541 if ( !appUi->RadioEngine()->IsInCall() && |
|
542 appUi->RadioState() != CFMRadioAppUi::EFMRadioStateBusySeek ) |
542 { |
543 { |
543 switch ( eventCode ) |
544 switch ( eventCode ) |
544 { |
545 { |
545 case EGestureTap: |
546 case EGestureTap: |
546 { |
547 { |
680 } |
681 } |
681 } |
682 } |
682 } |
683 } |
683 else |
684 else |
684 { |
685 { |
685 FTRACE(FPrint(_L("CFMRadioAlfVisualizer::HandleGestureL() call ongoing -> gestures ignored"))); |
686 FTRACE(FPrint(_L("CFMRadioAlfVisualizer::HandleGestureL() call or tuning ongoing -> gestures ignored"))); |
686 } |
687 } |
687 } |
688 } |
688 // ---------------------------------------------------------------------------- |
689 // ---------------------------------------------------------------------------- |
689 // CFMRadioAlfVisualizer::OfferEventL |
690 // CFMRadioAlfVisualizer::OfferEventL |
690 // From CAlfControl, takes care of alfred event handling. |
691 // From CAlfControl, takes care of alfred event handling. |
722 return ETrue; |
723 return ETrue; |
723 } |
724 } |
724 } |
725 } |
725 if ( aEvent.IsPointerEvent() ) |
726 if ( aEvent.IsPointerEvent() ) |
726 { |
727 { |
727 CGestureControl::OfferEventL( aEvent ); |
728 return CGestureControl::OfferEventL( aEvent ); |
728 } |
729 } |
729 return EFalse; |
730 return EFalse; |
730 } |
731 } |
731 |
732 |
732 // --------------------------------------------------------------------------- |
733 // --------------------------------------------------------------------------- |