equal
deleted
inserted
replaced
199 // following are minimum values for avkon volume indicator component |
199 // following are minimum values for avkon volume indicator component |
200 const TInt KVolumeControlMinValue = 0; //from "AKNVOLUMECONTROL.CPP" |
200 const TInt KVolumeControlMinValue = 0; //from "AKNVOLUMECONTROL.CPP" |
201 const TInt KVolumeControlMaxValue = 10; //from "AKNVOLUMECONTROL.CPP" |
201 const TInt KVolumeControlMaxValue = 10; //from "AKNVOLUMECONTROL.CPP" |
202 const TInt KVolumeDefault = 8; |
202 const TInt KVolumeDefault = 8; |
203 const TInt KVolumeLevels = 10; |
203 const TInt KVolumeLevels = 10; |
|
204 const TInt KMmsSizeWaitDialogDisabled = 204800; |
204 |
205 |
205 #ifndef RD_MSG_NAVIPANE_IMPROVEMENT |
206 #ifndef RD_MSG_NAVIPANE_IMPROVEMENT |
206 const TUint KNaviGranularity = 2; |
207 const TUint KNaviGranularity = 2; |
207 const TInt KIconDefaultColor = 0; |
208 const TInt KIconDefaultColor = 0; |
208 #endif |
209 #endif |
556 User::Leave( error ); |
557 User::Leave( error ); |
557 } |
558 } |
558 |
559 |
559 iViewerState = EBusy; |
560 iViewerState = EBusy; |
560 iOpeningState = EOpeningMessage; |
561 iOpeningState = EOpeningMessage; |
561 LaunchWaitDialogL( 0 ); |
562 |
|
563 // Disabling Wait Dialog for messages less than 200kB |
|
564 if ( iMtm->MessageSize() > KMmsSizeWaitDialogDisabled ) |
|
565 { |
|
566 LaunchWaitDialogL( 0 ); |
|
567 } |
562 |
568 |
563 // iWaitDialog was deleted in case of error. Is this needed ? |
569 // iWaitDialog was deleted in case of error. Is this needed ? |
564 iLaunchOperation = new ( ELeave ) CMmsViewerLaunchOperation( |
570 iLaunchOperation = new ( ELeave ) CMmsViewerLaunchOperation( |
565 this, |
571 this, |
566 *this, |
572 *this, |
2824 { |
2830 { |
2825 // We are looking for a valid tap (button down and up) |
2831 // We are looking for a valid tap (button down and up) |
2826 // on a focused object. |
2832 // on a focused object. |
2827 iPointerTarget = baseControl; |
2833 iPointerTarget = baseControl; |
2828 |
2834 |
2829 if(baseControl && (iMskId == R_MMSVIEWER_MSK_BUTTON_PLAY_PRESENTATION |
2835 if ( baseControl && |
2830 || iMskId == R_MMSVIEWER_MSK_BUTTON_PLAY_AUDIO |
2836 ( baseControl->ControlId() == EMsgComponentIdAudio || |
2831 || iMskId ==R_MMSVIEWER_MSK_BUTTON_OPEN_IMAGE |
2837 baseControl->ControlId() == EMsgComponentIdImage || |
2832 || iMskId ==R_MMSVIEWER_MSK_BUTTON_PLAY_VIDEO |
2838 baseControl->ControlId() == EMsgComponentIdVideo || |
2833 || iMskId ==R_MMSVIEWER_MSK_BUTTON_STOP_AUDIO |
2839 baseControl->ControlId() == EMsgComponentIdSvg )&& |
2834 || iMskId ==R_MMSVIEWER_MSK_BUTTON_STOP_VIDEO |
2840 ((Document()->SmilType()!=ETemplateSmil)&&(Document()->SmilType()!=E3GPPSmil) )) |
2835 || iMskId ==R_MMSVIEWER_MSK_BUTTON_OPEN_OBJECTS |
|
2836 #ifdef RD_SVGT_IN_MESSAGING |
|
2837 || iMskId ==R_MMSVIEWER_MSK_BUTTON_PLAY_SVG) |
|
2838 #endif |
|
2839 ) |
|
2840 { |
2841 { |
2841 if(iLongTapDetector) |
2842 if(iLongTapDetector) |
2842 { |
2843 { |
2843 iLongTapDetector->EnableLongTapAnimation(ETrue); |
2844 iLongTapDetector->EnableLongTapAnimation(ETrue); |
2844 iLongTapDetector->PointerEventL( *pointerEvent ); |
2845 iLongTapDetector->PointerEventL( *pointerEvent ); |
2847 iTapConsumed = EFalse; |
2848 iTapConsumed = EFalse; |
2848 } |
2849 } |
2849 else if ( (!iTapConsumed) && (pointerEvent |
2850 else if ( (!iTapConsumed) && (pointerEvent |
2850 && pointerEvent->iType == TPointerEvent::EButton1Up) ) |
2851 && pointerEvent->iType == TPointerEvent::EButton1Up) ) |
2851 { |
2852 { |
|
2853 iLongTapDetector->CancelAnimationL(); |
2852 iTapConsumed = ETrue; |
2854 iTapConsumed = ETrue; |
2853 if ( baseControl && iPointerTarget == baseControl ) |
2855 if ( baseControl && iPointerTarget == baseControl ) |
2854 { |
2856 { |
2855 switch( iMskId ) |
2857 switch( iMskId ) |
2856 { |
2858 { |