contentstorage/casrv/caappscanner/src/casrvappscanner.cpp
changeset 124 e36b2f4799c0
parent 109 e0aa398e6810
equal deleted inserted replaced
121:0b3699f6c654 124:e36b2f4799c0
   874             else if( appTypeUid == KCWRTApplicationTypeUid )
   874             else if( appTypeUid == KCWRTApplicationTypeUid )
   875                 {
   875                 {
   876                 changed = SetCWRTAppL( aEntry ) || changed;
   876                 changed = SetCWRTAppL( aEntry ) || changed;
   877                 }
   877                 }
   878             }
   878             }
   879         }
   879         
       
   880         TApaAppCapabilityBuf appCap;
       
   881         TInt screenNumber = 0;
       
   882         
       
   883         User::LeaveIfError( iApaLsSession.GetAppCapability
       
   884             ( appCap, info->iUid ) );
       
   885         User::LeaveIfError( iApaLsSession.GetDefaultScreenNumber
       
   886             ( screenNumber, info->iUid ) );
       
   887         
       
   888         const TBool hidden = appCap().iAppIsHidden || screenNumber != 0;
       
   889         
       
   890         const TBool visible = aEntry->GetFlags() & EVisible;
       
   891         
       
   892         if ( hidden && visible ) 
       
   893             {
       
   894             changed = ETrue;
       
   895             aEntry->SetFlags(aEntry->GetFlags() & ~EVisible);
       
   896             }
       
   897         }
       
   898     
   880     CleanupStack::PopAndDestroy( info );
   899     CleanupStack::PopAndDestroy( info );
   881     return changed;
   900     return changed;
   882     }
   901     }
   883 
   902 
   884 // ---------------------------------------------------------------------------
   903 // ---------------------------------------------------------------------------
  1257 
  1276 
  1258         CleanupStack::PopAndDestroy( &newComponentId );
  1277         CleanupStack::PopAndDestroy( &newComponentId );
  1259         }
  1278         }
  1260     return updated;
  1279     return updated;
  1261     }
  1280     }
       
  1281