homescreenpluginsrv/hspsmanager/src/hspsmaintenancehandler.cpp
branchRCL_3
changeset 12 502e5d91ad42
parent 4 1a2a00e78665
child 14 15e4dd19031c
equal deleted inserted replaced
11:bd874ee5e5e2 12:502e5d91ad42
  4578 void ChspsMaintenanceHandler::RestoreDefaultAppConfL(
  4578 void ChspsMaintenanceHandler::RestoreDefaultAppConfL(
  4579     ChspsODT*& aHeader,
  4579     ChspsODT*& aHeader,
  4580     ChspsODT& aOdt)
  4580     ChspsODT& aOdt)
  4581     {
  4581     {
  4582     
  4582     
       
  4583     // If active application configuration is LicenceeRestorable 
  4583     if ( aHeader->Flags() & EhspsThemeStatusLicenceeRestorable )
  4584     if ( aHeader->Flags() & EhspsThemeStatusLicenceeRestorable )
  4584         {
  4585         {
  4585         // Licensee restorable configuration active -> Reinstall configuration
  4586         // Reinstall the configuration from ROM
  4586         iThemeServer.ReinstallConfL( aHeader->RootUid(), aHeader->ThemeUid() );
  4587         iThemeServer.ReinstallConfL( aHeader->RootUid(), aHeader->ThemeUid() );
  4587         }
  4588         }
  4588     else
  4589     else
  4589         {
  4590         {
  4590         // Get licensee restorable configuation
  4591         // Try to activate a configuation with the LicenceeRestorable status
  4591         ChspsODT* searchMask = ChspsODT::NewL();
  4592         ChspsODT* searchMask = ChspsODT::NewL();
  4592         CleanupStack::PushL( searchMask );
  4593         CleanupStack::PushL( searchMask );
  4593         searchMask->SetRootUid( aHeader->RootUid() );
  4594         searchMask->SetRootUid( aHeader->RootUid() );
  4594         searchMask->SetFlags( EhspsThemeStatusLicenceeRestorable );
  4595         searchMask->SetFlags( EhspsThemeStatusLicenceeRestorable );
  4595         TInt pos( 0 );
  4596         TInt pos( 0 );