psln/PslnFramework/src/PslnFWBaseView.cpp
branchRCL_3
changeset 9 0aa5fbdfbc30
parent 0 2f259fa3e83a
child 10 3d340a0166ff
equal deleted inserted replaced
8:71dd06cfe933 9:0aa5fbdfbc30
   127         {
   127         {
   128         CAknViewAppUi* appUi = AppUi();
   128         CAknViewAppUi* appUi = AppUi();
   129         if ( appUi )
   129         if ( appUi )
   130             {
   130             {
   131             CEikStatusPane* sp = appUi->StatusPane();
   131             CEikStatusPane* sp = appUi->StatusPane();
   132             iNaviControlContainer = static_cast<CAknNavigationControlContainer*>
   132             if ( sp )
   133                 ( sp->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ) );
   133                 {
       
   134                 iNaviControlContainer = static_cast<CAknNavigationControlContainer*>
       
   135                     ( sp->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ) );
       
   136                 }
   134             }
   137             }
   135         }
   138         }
   136 
   139 
   137     _LIT( KPanicText, "CPslnFWBaseView" );
   140     _LIT( KPanicText, "CPslnFWBaseView" );
   138     __ASSERT_DEBUG( iNaviControlContainer, User::Panic( KPanicText, KErrGeneral ) );
   141     __ASSERT_DEBUG( iNaviControlContainer, User::Panic( KPanicText, KErrGeneral ) );
   139     	        
   142 
   140     if ( iNaviPaneContext )
   143     if ( iNaviControlContainer )
   141         {
   144         {
   142         iNaviControlContainer->PushL( *iNaviPaneContext );
   145         if ( iNaviPaneContext )
   143         }
   146             {
   144     else
   147             iNaviControlContainer->PushL( *iNaviPaneContext );
   145         {
   148             }
   146         iNaviControlContainer->PushDefaultL();
   149         else
       
   150             {
       
   151             iNaviControlContainer->PushDefaultL();
       
   152             }
   147         }
   153         }
   148     PSLN_TRACE_DEBUG("CPslnFWBaseView::SetNaviPaneL END");
   154     PSLN_TRACE_DEBUG("CPslnFWBaseView::SetNaviPaneL END");
   149     }
   155     }
   150 
   156 
   151 // ---------------------------------------------------------------------------
   157 // ---------------------------------------------------------------------------