mediasettings/mediasettingsapp/src/MPSettingsAdvancedBwView.cpp
branchRCL_3
changeset 8 ce5ada96ab30
parent 1 6711b85517b7
equal deleted inserted replaced
6:7d91903f795f 8:ce5ada96ab30
    13 *
    13 *
    14 * Description:   View class for Advanced bandwidth settings list view.*
    14 * Description:   View class for Advanced bandwidth settings list view.*
    15 */
    15 */
    16 
    16 
    17 
    17 
    18 // Version : %version: 6 %
    18 // Version : %version: 8 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 // INCLUDE FILES
    22 // INCLUDE FILES
    23 #include    <aknViewAppUi.h>
    23 #include    <aknViewAppUi.h>
    39 // CMPSettingsAdvancedBwView::CMPSettingsAdvancedBwView
    39 // CMPSettingsAdvancedBwView::CMPSettingsAdvancedBwView
    40 // C++ default constructor can NOT contain any code, that
    40 // C++ default constructor can NOT contain any code, that
    41 // might leave.
    41 // might leave.
    42 // -----------------------------------------------------------------------------
    42 // -----------------------------------------------------------------------------
    43 //
    43 //
    44 CMPSettingsAdvancedBwView::CMPSettingsAdvancedBwView(CMPSettingsModelForROP* aModel, TBool iConstructAsGsPlugin) 
    44 CMPSettingsAdvancedBwView::CMPSettingsAdvancedBwView( 
    45     : iModel( aModel), iGsPlugin(iConstructAsGsPlugin)
    45         CMPSettingsModelForROP* aModel,
       
    46         TBool iConstructAsGsPlugin ) 
       
    47     : iModel( aModel), 
       
    48       iGsPlugin(iConstructAsGsPlugin)
    46     {
    49     {
    47     MPX_FUNC("#MS# CMPSettingsAdvancedBwView::CMPSettingsAdvancedBwView()");
    50     MPX_FUNC("#MS# CMPSettingsAdvancedBwView::CMPSettingsAdvancedBwView()");
    48     }
    51     }
    49 
    52 
    50 // ---------------------------------------------------------
    53 // ---------------------------------------------------------
    61 // -----------------------------------------------------------------------------
    64 // -----------------------------------------------------------------------------
    62 // CMPSettingsAdvancedBwView::NewLC
    65 // CMPSettingsAdvancedBwView::NewLC
    63 // Two-phased constructor.
    66 // Two-phased constructor.
    64 // -----------------------------------------------------------------------------
    67 // -----------------------------------------------------------------------------
    65 //
    68 //
    66 CMPSettingsAdvancedBwView* CMPSettingsAdvancedBwView::NewLC(CMPSettingsModelForROP* aModel, TBool iConstructAsGsPlugin)
    69 CMPSettingsAdvancedBwView* CMPSettingsAdvancedBwView::NewLC(
       
    70         CMPSettingsModelForROP* aModel, 
       
    71         TBool iConstructAsGsPlugin )
    67     {
    72     {
    68     MPX_DEBUG2(_L("#MS# CMPSettingsAdvancedBwView::NewLC(%d)"),iConstructAsGsPlugin);
    73     MPX_DEBUG2(_L("#MS# CMPSettingsAdvancedBwView::NewLC(%d)"),iConstructAsGsPlugin);
    69     CMPSettingsAdvancedBwView* self = new(ELeave) CMPSettingsAdvancedBwView(aModel,iConstructAsGsPlugin);
    74     CMPSettingsAdvancedBwView* self = new(ELeave) CMPSettingsAdvancedBwView(aModel,iConstructAsGsPlugin);
    70     
    75     
    71     CleanupStack::PushL(self);
    76     CleanupStack::PushL(self);
   105         {
   110         {
   106         case EMPSettCmdChange:
   111         case EMPSettCmdChange:
   107             static_cast<CMPSettingsAdvancedBwContainer*>(iContainer)->EditCurrentItemFromMenuL();
   112             static_cast<CMPSettingsAdvancedBwContainer*>(iContainer)->EditCurrentItemFromMenuL();
   108             break;
   113             break;
   109         case EAknSoftkeyBack:
   114         case EAknSoftkeyBack:
   110             AppUi()->ActivateLocalViewL(KMPSettNetworkViewId);
   115             AppUi()->ActivateLocalViewL( KMPSettStreamingViewId );
   111             break;
   116             break;
   112         case EMPSettCmdHelp:
   117         case EMPSettCmdHelp:
   113             if( FeatureManager::FeatureSupported( KFeatureIdHelp ) )
   118             if( FeatureManager::FeatureSupported( KFeatureIdHelp ) )
   114             {
   119                 {
   115                 HlpLauncher::LaunchHelpApplicationL(iEikonEnv->WsSession(), AppUi()->AppHelpContextL() );
   120                 HlpLauncher::LaunchHelpApplicationL(iEikonEnv->WsSession(), AppUi()->AppHelpContextL() );
   116             }
   121                 }
   117             break;
   122             break;
   118         default:
   123         default:
   119             AppUi()->HandleCommandL(aCommand);
   124             AppUi()->HandleCommandL(aCommand);
   120             break;
   125             break;
   121         }
   126         }
   137 // ---------------------------------------------------------------------------
   142 // ---------------------------------------------------------------------------
   138 //
   143 //
   139 void CMPSettingsAdvancedBwView::SetNaviPaneL()
   144 void CMPSettingsAdvancedBwView::SetNaviPaneL()
   140     {
   145     {
   141     MPX_FUNC("#MS# CMPSettingsAdvancedBwView::SetNaviPaneL()");
   146     MPX_FUNC("#MS# CMPSettingsAdvancedBwView::SetNaviPaneL()");
   142         if (!iGsPlugin)
   147     if (!iGsPlugin)
   143         {
   148         {
   144             iNaviPaneContext = NULL;
   149         iNaviPaneContext = NULL;
   145             CMPSettingsBaseView::SetNaviPaneL();
   150         CMPSettingsBaseView::SetNaviPaneL();
   146         }
   151         }
   147     CMPSettingsBaseView::SetMiddleSoftKeyLabelL(R_MEDIASETTING_MSK_CHANGE,EMPSettCmdChange);
   152     CMPSettingsBaseView::SetMiddleSoftKeyLabelL(R_MEDIASETTING_MSK_CHANGE,EMPSettCmdChange);
   148     }
   153     }
   149 // End of File
   154 // End of File
   150 
   155