uifw/AvKon/src/AknSettingPage.cpp
branchRCL_3
changeset 16 71dd06cfe933
parent 15 08e69e956a8c
child 18 0aa5fbdfbc30
equal deleted inserted replaced
15:08e69e956a8c 16:71dd06cfe933
    45 //For MCoeCaptionRetrieverForFep
    45 //For MCoeCaptionRetrieverForFep
    46 #include <fepbase.h>
    46 #include <fepbase.h>
    47 #include <AknPopupFader.h>
    47 #include <AknPopupFader.h>
    48 #include <gfxtranseffect/gfxtranseffect.h>
    48 #include <gfxtranseffect/gfxtranseffect.h>
    49 #include <akntransitionutils.h>
    49 #include <akntransitionutils.h>
       
    50 #include <touchfeedback.h>
       
    51 #include <akntranseffect.h>
    50 #include "aknitemactionmenuregister.h"
    52 #include "aknitemactionmenuregister.h"
    51 #include "aknqueryeditorindicator.h"
    53 #include "aknqueryeditorindicator.h"
    52 
    54 
    53 // This determines the maximum number of digits in the optional number displayed on the
    55 // This determines the maximum number of digits in the optional number displayed on the
    54 // top left of the setting page
    56 // top left of the setting page
  1353  *
  1355  *
  1354  * @param	aAccept ETrue if the user accepted. EFalse if the user cancelled.
  1356  * @param	aAccept ETrue if the user accepted. EFalse if the user cancelled.
  1355  */
  1357  */
  1356 EXPORT_C void CAknSettingPage::AttemptExitL(TBool aAccept)
  1358 EXPORT_C void CAknSettingPage::AttemptExitL(TBool aAccept)
  1357 	{
  1359 	{
       
  1360     if ( AknLayoutUtils::PenEnabled() )
       
  1361         {
       
  1362         MTouchFeedback* feedback = MTouchFeedback::Instance();
       
  1363         if ( feedback )
       
  1364             {
       
  1365             TTouchLogicalFeedback fbLogicalType = ETouchFeedbackPopUp;
       
  1366             if ( CAknTransitionUtils::TransitionsEnabled(
       
  1367                     AknTransEffect::EComponentTransitionsOff ) )
       
  1368                 {
       
  1369                 fbLogicalType = ETouchFeedbackDecreasingPopUp;
       
  1370                 }
       
  1371             feedback->InstantFeedback(
       
  1372                                    this,
       
  1373                                    fbLogicalType,
       
  1374                                    ETouchFeedbackVibra,
       
  1375                                    TPointerEvent() );
       
  1376             }
       
  1377         }
  1358 	if ( OkToExitL( aAccept ) )
  1378 	if ( OkToExitL( aAccept ) )
  1359 		{
  1379 		{
  1360 		DismissL( aAccept );
  1380 		DismissL( aAccept );
  1361 		if(iReturn)
  1381 		if(iReturn)
  1362 			{
  1382 			{
  1652 	iUpdateMode = aMode;
  1672 	iUpdateMode = aMode;
  1653 
  1673 
  1654 // Ensure we have a menu bar by this point
  1674 // Ensure we have a menu bar by this point
  1655 	__ASSERT_DEBUG( iMenuBar, Panic( EAknPanicSettingPageNoMenuBar ) ) ;
  1675 	__ASSERT_DEBUG( iMenuBar, Panic( EAknPanicSettingPageNoMenuBar ) ) ;
  1656 
  1676 
       
  1677     if ( AknLayoutUtils::PenEnabled() )
       
  1678         {
       
  1679         MTouchFeedback* feedback = MTouchFeedback::Instance();
       
  1680         if ( feedback )
       
  1681             {
       
  1682             TTouchLogicalFeedback fbLogicalType = ETouchFeedbackPopUp;
       
  1683             if ( CAknTransitionUtils::TransitionsEnabled(
       
  1684                     AknTransEffect::EComponentTransitionsOff ) )
       
  1685                 {
       
  1686                 fbLogicalType = ETouchFeedbackIncreasingPopUp;
       
  1687                 }
       
  1688             feedback->InstantFeedback(
       
  1689                                    this,
       
  1690                                    fbLogicalType,
       
  1691                                    ETouchFeedbackVibra,
       
  1692                                    TPointerEvent() );
       
  1693             }
       
  1694         }
       
  1695     
  1657 	DynamicInitL();
  1696 	DynamicInitL();
  1658 	ActivateL();
  1697 	ActivateL();
  1659 
  1698 
  1660 	if ( iExtension->iEmbeddedSoftkeys )
  1699 	if ( iExtension->iEmbeddedSoftkeys )
  1661 	    {
  1700 	    {