305 iLogBus->LogText( _L( "hspsThemeServer: constructing server" ) ); |
305 iLogBus->LogText( _L( "hspsThemeServer: constructing server" ) ); |
306 #endif |
306 #endif |
307 |
307 |
308 // Setup a runtime array of headers (=header cache) |
308 // Setup a runtime array of headers (=header cache) |
309 iHeaderListCache = new ( ELeave ) CArrayPtrSeg< ChspsODT >( KHeaderListGranularity ); |
309 iHeaderListCache = new ( ELeave ) CArrayPtrSeg< ChspsODT >( KHeaderListGranularity ); |
310 |
310 |
311 iDefinitionRepository = ChspsDefinitionRepository::NewL(); |
311 // Setup a Plug-in Repository listener |
|
312 iCentralRepository = CRepository::NewL( KhspsThemeStatusRepositoryUid ); |
|
313 |
|
314 iDefinitionRepository = ChspsDefinitionRepository::NewL( *iCentralRepository ); |
312 #ifdef HSPS_LOG_ACTIVE |
315 #ifdef HSPS_LOG_ACTIVE |
313 iDefinitionRepository->SetLogBus( iLogBus ); |
316 iDefinitionRepository->SetLogBus( iLogBus ); |
314 #endif |
317 #endif |
315 // Setup a Plug-in Repository listener |
|
316 iCentralRepository = CRepository::NewL( KhspsThemeStatusRepositoryUid ); |
|
317 |
318 |
318 // Get active device language |
319 // Get active device language |
319 iDeviceLanguage = GetDeviceLanguage(); |
320 iDeviceLanguage = GetDeviceLanguage(); |
320 #ifdef HSPS_LOG_ACTIVE |
321 #ifdef HSPS_LOG_ACTIVE |
321 iLogBus->LogText( _L( "ChspsThemeServer::GetDeviceLanguage() %d" ), iDeviceLanguage ); |
322 iLogBus->LogText( _L( "ChspsThemeServer::GetDeviceLanguage() %d" ), iDeviceLanguage ); |
605 |
606 |
606 if( aRepositoryInfo.iEventType & EhspsODTUpdated || |
607 if( aRepositoryInfo.iEventType & EhspsODTUpdated || |
607 aRepositoryInfo.iEventType & EhspsODTModified || |
608 aRepositoryInfo.iEventType & EhspsODTModified || |
608 aRepositoryInfo.iEventType & EhspsPluginReplaced ) |
609 aRepositoryInfo.iEventType & EhspsPluginReplaced ) |
609 { |
610 { |
610 for( TInt i = 0; i < iSessions.Count(); i++ ) |
611 SetResourceFileCopyRequired( aRepositoryInfo.iAppUid ); |
611 { |
|
612 if( iSessions[i]->AppUid() == aRepositoryInfo.iAppUid ) |
|
613 { |
|
614 iSessions[i]->SetResourceFileCopyRequired( ETrue ); |
|
615 } |
|
616 } |
|
617 } |
612 } |
618 |
613 |
619 // If header cache should be updated from files in the Plug-in Repository |
614 // If header cache should be updated from files in the Plug-in Repository |
620 if (mask & EhspsCacheUpdate) |
615 if (mask & EhspsCacheUpdate) |
621 { |
616 { |
3608 ChspsFamily* ChspsThemeServer::Family() |
3603 ChspsFamily* ChspsThemeServer::Family() |
3609 { |
3604 { |
3610 return iFamily; |
3605 return iFamily; |
3611 } |
3606 } |
3612 |
3607 |
|
3608 |
|
3609 // ----------------------------------------------------------------------------- |
|
3610 // ChspsThemeServer::SetResourceFileCopyRequired() |
|
3611 // ----------------------------------------------------------------------------- |
|
3612 // |
|
3613 void ChspsThemeServer::SetResourceFileCopyRequired( const TInt aAppUid ) |
|
3614 { |
|
3615 // Handle all related sessions |
|
3616 for( TInt i = 0; i < iSessions.Count(); i++ ) |
|
3617 { |
|
3618 if( iSessions[i]->AppUid() == aAppUid ) |
|
3619 { |
|
3620 iSessions[i]->SetResourceFileCopyRequired( ETrue ); |
|
3621 } |
|
3622 } |
|
3623 } |
|
3624 |
3613 // end of file |
3625 // end of file |
3614 |
3626 |