mpxplugins/viewplugins/views/audioeffectsview/src/mpxaudioeffectsviewimp.cpp
branchRCL_3
changeset 12 171e07ac910f
parent 0 ff3acec5bc43
child 21 cb96c29156b2
equal deleted inserted replaced
11:943ff5625028 12:171e07ac910f
    26 #include <avkon.rsg>
    26 #include <avkon.rsg>
    27 #include <mpxuser.h>
    27 #include <mpxuser.h>
    28 
    28 
    29 #include <mpxplaybackutility.h>
    29 #include <mpxplaybackutility.h>
    30 #include <mpxaudioeffectsview.rsg>
    30 #include <mpxaudioeffectsview.rsg>
       
    31 #include <mpxviewutility.h>
    31 #include "mpxaudioeffectengine.h"
    32 #include "mpxaudioeffectengine.h"
    32 
    33 
    33 #include "mpxaudioeffectsmodel.h"
    34 #include "mpxaudioeffectsmodel.h"
    34 #include "mpxaudioeffectsviewcontainer.h"
    35 #include "mpxaudioeffectsviewcontainer.h"
    35 #include "mpxaudioeffectsviewimp.h"
    36 #include "mpxaudioeffectsviewimp.h"
    69 
    70 
    70     // Get the playback utility instance from engine
    71     // Get the playback utility instance from engine
    71     iPlaybackUtility = MMPXPlaybackUtility::UtilityL( KPbModeDefault );
    72     iPlaybackUtility = MMPXPlaybackUtility::UtilityL( KPbModeDefault );
    72 
    73 
    73     iModel = CMPXAudioEffectsModel::NewL( *iPlaybackUtility );
    74     iModel = CMPXAudioEffectsModel::NewL( *iPlaybackUtility );
       
    75         
       
    76     iViewUtility = MMPXViewUtility::UtilityL();
    74     }
    77     }
    75 
    78 
    76 // ---------------------------------------------------------------------------
    79 // ---------------------------------------------------------------------------
    77 // Two-phased constructor.
    80 // Two-phased constructor.
    78 // ---------------------------------------------------------------------------
    81 // ---------------------------------------------------------------------------
   111 
   114 
   112     if ( iResourceOffset )
   115     if ( iResourceOffset )
   113         {
   116         {
   114         CCoeEnv::Static()->DeleteResourceFile( iResourceOffset );
   117         CCoeEnv::Static()->DeleteResourceFile( iResourceOffset );
   115         }
   118         }
       
   119 
       
   120     if ( iViewUtility )
       
   121         {
       
   122         iViewUtility->Close();
       
   123         }
       
   124 
   116     }
   125     }
   117 
   126 
   118 // -----------------------------------------------------------------------------
   127 // -----------------------------------------------------------------------------
   119 // CMPXAudioEffectsViewImp::ChangeSelectedItemL
   128 // CMPXAudioEffectsViewImp::ChangeSelectedItemL
   120 // (other items were commented in a header).
   129 // (other items were commented in a header).
   155         case EAknCmdHelp:
   164         case EAknCmdHelp:
   156         case ESettingsListCmdHelp:
   165         case ESettingsListCmdHelp:
   157             {
   166             {
   158             HlpLauncher::LaunchHelpApplicationL(iEikonEnv->WsSession(),
   167             HlpLauncher::LaunchHelpApplicationL(iEikonEnv->WsSession(),
   159             AppUi()->AppHelpContextL());
   168             AppUi()->AppHelpContextL());
       
   169             break;
       
   170             }
       
   171         case EAknSoftkeyBack:
       
   172             {
       
   173             iViewUtility->ActivatePreviousViewL();
   160             break;
   174             break;
   161             }
   175             }
   162         default:
   176         default:
   163             {
   177             {
   164             // Pass the command to AppUi to handle.
   178             // Pass the command to AppUi to handle.