mmsharing/mmshmanagersrv/src/musavailabilitypluginmanager.cpp
branchRCL_3
changeset 21 33a5d2bbf6fc
parent 0 f0cf47e981f9
child 22 73a1feb507fb
equal deleted inserted replaced
20:2d2c7d1515f7 21:33a5d2bbf6fc
   304 
   304 
   305     MUS_LOG( "mus: [MUSSRV]  <- CMusAvailabilityPluginManager::\
   305     MUS_LOG( "mus: [MUSSRV]  <- CMusAvailabilityPluginManager::\
   306         AvailabilityChanged()" )	
   306         AvailabilityChanged()" )	
   307     }
   307     }
   308 
   308 
       
   309 
       
   310 // -----------------------------------------------------------------------------
       
   311 //
       
   312 // -----------------------------------------------------------------------------
       
   313 //
       
   314  void CMusAvailabilityPluginManager::AvailabilitiesAbleToShowIndicator()
       
   315 	{
       
   316 	    TInt err = 0;
       
   317 		TRAP( err, IndicateAvailabilityL() );
       
   318 		if ( err )
       
   319 			{
       
   320 			// Not sure about what to do. Very rare situation.
       
   321 			MUS_LOG1( "mus: [MUSSRV] AvailabilitiesAbleToShowIndicator() leave code: %d",err )
       
   322 			}
       
   323 	}
   309 // -----------------------------------------------------------------------------
   324 // -----------------------------------------------------------------------------
   310 //
   325 //
   311 // -----------------------------------------------------------------------------
   326 // -----------------------------------------------------------------------------
   312 //
   327 //
   313 void CMusAvailabilityPluginManager::AvailabilityError( 
   328 void CMusAvailabilityPluginManager::AvailabilityError( 
   745         MUS_LOG( "mus: [MUSSRV]    Status available" )
   760         MUS_LOG( "mus: [MUSSRV]    Status available" )
   746         if( !iIndicator )
   761         if( !iIndicator )
   747             {
   762             {
   748             MUS_LOG( "mus: [MUSSRV]    Create indicator" )
   763             MUS_LOG( "mus: [MUSSRV]    Create indicator" )
   749             iIndicator = CMusIndicatorApi::NewL( *this );
   764             iIndicator = CMusIndicatorApi::NewL( *this );
   750             iIndicator->IndicateAvailabilityL();
   765             }
   751             }
   766         iIndicator->IndicateAvailabilityL();
   752         iApplicationManager.SetIndicatorStatusL( ETrue );
   767         iApplicationManager.SetIndicatorStatusL( ETrue );
   753         }
   768         }
   754     else
   769     else
   755         {
   770         {
   756         MUS_LOG( "mus: [MUSSRV]    Not available" )
   771         MUS_LOG( "mus: [MUSSRV]    Not available" )