homescreenpluginsrv/hspsmanager/src/hspsthemeserver.cpp
branchRCL_3
changeset 118 8baec10861af
parent 114 a5a39a295112
child 130 67f2ed48ad91
equal deleted inserted replaced
114:a5a39a295112 118:8baec10861af
   622     iLogBus->LogText( _L( "--------------------------------------------------------" ) );
   622     iLogBus->LogText( _L( "--------------------------------------------------------" ) );
   623 #endif        
   623 #endif        
   624 
   624 
   625     if( aRepositoryInfo.iEventType & EhspsODTUpdated ||
   625     if( aRepositoryInfo.iEventType & EhspsODTUpdated ||
   626         aRepositoryInfo.iEventType & EhspsODTModified ||
   626         aRepositoryInfo.iEventType & EhspsODTModified ||
   627         aRepositoryInfo.iEventType & EhspsPluginReplaced )
   627         aRepositoryInfo.iEventType & EhspsPluginReplaced ||
       
   628         aRepositoryInfo.iEventType == EhspsODTActivated )
   628         {
   629         {
   629         SetResourceFileCopyRequired( aRepositoryInfo.iAppUid );
   630         SetResourceFileCopyRequired( aRepositoryInfo.iAppUid );
   630         }    
   631         }    
   631     
   632     
   632     // If header cache should be updated from files in the Plug-in Repository
   633     // If header cache should be updated from files in the Plug-in Repository
  3378                 aOdt,
  3379                 aOdt,
  3379                 uids[ i ],
  3380                 uids[ i ],
  3380                 header->ThemeVersion() ) );
  3381                 header->ThemeVersion() ) );
  3381             if ( err == KErrNone )
  3382             if ( err == KErrNone )
  3382                 {
  3383                 {
  3383                 // Check that configuration resource files are found
  3384                 ChspsODT* odt = ChspsODT::NewL();
  3384                 TRAP( err, hspsServerUtil::CheckResourceFilesL( 
  3385                 CleanupStack::PushL( odt );
  3385                     aOdt, 
  3386                 err = GetConfigurationL( 0, header->ThemeUid(), *odt );                                
  3386                     uids[ i ] ) );
  3387                 if ( err == KErrNone )
       
  3388                     {   
       
  3389 	                // Check that configuration resource files are found
       
  3390                     TRAP( err,
       
  3391                             hspsServerUtil::CheckResourceFilesL(
       
  3392                                     aOdt,                                
       
  3393                                     *odt,
       
  3394                                     iFsSession );
       
  3395                             );    
       
  3396                     }
       
  3397                 CleanupStack::PopAndDestroy();
  3387                 }
  3398                 }
  3388             }
  3399             }
  3389         
  3400         
  3390         // Check configuration state attribute
  3401         // Check configuration state attribute
  3391         // Configuration UID as HEX string
  3402         // Configuration UID as HEX string
  3630                         break;
  3641                         break;
  3631                         }
  3642                         }
  3632                     }                                                     
  3643                     }                                                     
  3633                 if ( !alreadyIncluded )
  3644                 if ( !alreadyIncluded )
  3634                     {                
  3645                     {                
  3635                     notificationTargets.Append( header );
  3646                     notificationTargets.AppendL( header );
  3636 
  3647 
  3637                     // Check if active configuration supports the current family
  3648                     // Check if active configuration supports the current family
  3638                     TBool updateRequired = ETrue;
  3649                     TBool updateRequired = ETrue;
  3639                     for( TInt i=0; i < iHeaderListCache->Count(); i++ )
  3650                     for( TInt i=0; i < iHeaderListCache->Count(); i++ )
  3640                         {
  3651                         {