idlefw/src/framework/aistateprovider.cpp
branchRCL_3
changeset 74 edd621764147
parent 51 15e4dd19031c
equal deleted inserted replaced
64:b276298d5729 74:edd621764147
   249 // ----------------------------------------------------------------------------
   249 // ----------------------------------------------------------------------------
   250 //
   250 //
   251 void CAiStateProvider::NotifyEcomRegistryChanged()
   251 void CAiStateProvider::NotifyEcomRegistryChanged()
   252     {
   252     {
   253     __PRINTS( "CAiStateProvider::NotifyEcomRegistryChanged" );    
   253     __PRINTS( "CAiStateProvider::NotifyEcomRegistryChanged" );    
       
   254     
   254     iObserver.NotifyReloadPlugins();
   255     iObserver.NotifyReloadPlugins();
   255     __PRINTS( "CAiStateProvider::NotifyEcomRegistryChanged - return void" );    
   256     
       
   257     __PRINTS( "CAiStateProvider::NotifyEcomRegistryChanged - done" );    
   256     }
   258     }
   257 
   259 
   258 // ----------------------------------------------------------------------------
   260 // ----------------------------------------------------------------------------
   259 // CAiStateProvider::LoadPlugin()
   261 // CAiStateProvider::LoadPlugin()
   260 // 
   262 // 
   261 // ----------------------------------------------------------------------------
   263 // ----------------------------------------------------------------------------
   262 //
   264 //
   263 TInt CAiStateProvider::LoadPlugin( const THsPublisherInfo& aPublisherInfo, 
   265 void CAiStateProvider::LoadPlugin( const TAiFwPublisherInfo& aInfo )     
   264     TAiFwLoadReason aReason )
   266     {
   265     {
   267     iObserver.NotifyLoadPlugin( aInfo );
   266     return iObserver.NotifyLoadPlugin( aPublisherInfo, aReason );
       
   267     }
   268     }
   268 
   269 
   269 // ----------------------------------------------------------------------------
   270 // ----------------------------------------------------------------------------
   270 // CAiStateProvider::DestroyPlugin()
   271 // CAiStateProvider::DestroyPlugin()
   271 // 
   272 // 
   272 // ----------------------------------------------------------------------------
   273 // ----------------------------------------------------------------------------
   273 //
   274 //
   274 void CAiStateProvider::DestroyPlugin( const THsPublisherInfo& aPublisherInfo,
   275 void CAiStateProvider::DestroyPlugin( const TAiFwPublisherInfo& aInfo )    
   275     TAiFwDestroyReason aReason )
   276     {
   276     {
   277     iObserver.NotifyDestroyPlugin( aInfo );
   277     iObserver.NotifyDestroyPlugin( aPublisherInfo, aReason );
       
   278     }
   278     }
   279 
   279 
   280 // ----------------------------------------------------------------------------
   280 // ----------------------------------------------------------------------------
   281 // CAiStateProvider::ChangePluginState()
   281 // CAiStateProvider::ChangePluginState()
   282 // 
   282 // 
   326 //
   326 //
   327 /* static */ TInt CAiStateProvider::SwiUidListEvent( TAny* aAny )
   327 /* static */ TInt CAiStateProvider::SwiUidListEvent( TAny* aAny )
   328     {
   328     {
   329     CAiStateProvider* self = static_cast< CAiStateProvider* >( aAny );
   329     CAiStateProvider* self = static_cast< CAiStateProvider* >( aAny );
   330 
   330 
   331     RArray<TUid> uidList;
   331     RArray< TUid > list;
   332     if ( KErrNone == Swi::GetAllUids( uidList ) )
   332     
   333         {
   333     if ( Swi::GetAllUids( list ) == KErrNone )
   334         self->iObserver.NotifyReleasePlugins( uidList );
   334         {
   335         }
   335         self->iObserver.NotifyReleasePlugins( list );
   336 
   336         }
       
   337 
       
   338     list.Reset();
       
   339     
   337     return KErrNone;
   340     return KErrNone;
   338     }
   341     }
   339 
   342 
   340 // End of file
   343 // End of file
   341 
   344