photosgallery/imgvwr/src/glxivwrappui.cpp
branchRCL_3
changeset 15 191387a8b767
parent 11 71da52165949
child 23 b023a8d2866a
equal deleted inserted replaced
14:2dac0fdba72b 15:191387a8b767
   237 // ---------------------------------------------------------------------------
   237 // ---------------------------------------------------------------------------
   238 //
   238 //
   239 void CGlxIVwrAppUi::GetViewScoringIdsL( RArray<TUid>& aIds ) const
   239 void CGlxIVwrAppUi::GetViewScoringIdsL( RArray<TUid>& aIds ) const
   240 {
   240 {
   241 TRACER("void CGlxIVwrAppUi::GetViewScoringIdsL( RArray<TUid>& aIds ) const");
   241 TRACER("void CGlxIVwrAppUi::GetViewScoringIdsL( RArray<TUid>& aIds ) const");
   242 
   242     CleanupClosePushL(aIds);
   243 aIds.Reset(); // For maintenance safety
   243 aIds.Reset(); // For maintenance safety
   244 
   244 
   245 // get current navigational state
   245 // get current navigational state
   246 CMPXCollectionPath* naviState = iNavigationalState->StateLC();
   246 CMPXCollectionPath* naviState = iNavigationalState->StateLC();
   247 
   247 
   248 // no if check in needed here ,it makes the aapui aware of the list view depth
   248 // no if check in needed here ,it makes the aapui aware of the list view depth
   249 // to be removed.added by gopa   
   249 // to be removed.added by gopa   
   250 if ( naviState->Levels() >= 1)
   250 if ( naviState->Levels() >= 1)
   251     {
   251     {
   252     if (iNavigationalState->ViewingMode() == NGlxNavigationalState::EBrowse) 
   252         if (iNavigationalState->ViewingMode()
       
   253                 == NGlxNavigationalState::EBrowse)
   253         {
   254         {
   254         // For image viewer collection, goto view mode
   255         // For image viewer collection, goto view mode
   255         if (naviState->Id() == TMPXItemId(KGlxCollectionPluginImageViewerImplementationUid))
   256             if (naviState->Id() == TMPXItemId(
       
   257                     KGlxCollectionPluginImageViewerImplementationUid))
   256             {
   258             {
   257             aIds.AppendL( TUid::Uid(  KGlxViewingModeView ) );
   259             aIds.AppendL( TUid::Uid(  KGlxViewingModeView ) );
   258             }
   260             }
   259         else
   261         else
   260             {
   262             {
   278     // add scoring id for depth in the ui hierarchy
   280     // add scoring id for depth in the ui hierarchy
   279     aIds.AppendL( ViewScoringIdForNaviStateDepth( *naviState ) );
   281     aIds.AppendL( ViewScoringIdForNaviStateDepth( *naviState ) );
   280     }
   282     }
   281 
   283 
   282 CleanupStack::PopAndDestroy( naviState );
   284 CleanupStack::PopAndDestroy( naviState );
       
   285     CleanupStack::Pop(&aIds);
   283 }
   286 }
   284 // ---------------------------------------------------------------------------
   287 // ---------------------------------------------------------------------------
   285 // Handles the foreground events
   288 // Handles the foreground events
   286 // ---------------------------------------------------------------------------
   289 // ---------------------------------------------------------------------------
   287 //
   290 //