gssettingsuis/Gs/GSFramework/src/GSWatchDog.cpp
branchRCL_3
changeset 22 673fb3e04649
parent 0 8c5d936e5675
equal deleted inserted replaced
20:3b67655da2cc 22:673fb3e04649
    90                 if( !IsInBlackList( iQuarantine[i] ) )
    90                 if( !IsInBlackList( iQuarantine[i] ) )
    91                     {
    91                     {
    92                     TGSPluginQuarantine quarantinedPlugin;
    92                     TGSPluginQuarantine quarantinedPlugin;
    93                     quarantinedPlugin.iRunsAfterCrash = 0;
    93                     quarantinedPlugin.iRunsAfterCrash = 0;
    94                     quarantinedPlugin.iUid = iQuarantine[i];
    94                     quarantinedPlugin.iUid = iQuarantine[i];
    95                     iBlackList.Append( quarantinedPlugin );
    95                     iBlackList.AppendL( quarantinedPlugin );
    96                     iQuarantine.Remove( i );
    96                     iQuarantine.Remove( i );
    97                     }
    97                     }
    98                 }
    98                 }
    99             }
    99             }
   100         }
   100         }
   154 // ---------------------------------------------------------------------------
   154 // ---------------------------------------------------------------------------
   155 void CGSWatchDog::QuarantineL( TUid aPluginUid )
   155 void CGSWatchDog::QuarantineL( TUid aPluginUid )
   156     {
   156     {
   157     if( iIsActive )
   157     if( iIsActive )
   158         {
   158         {
   159         iQuarantine.Append( aPluginUid );
   159         iQuarantine.AppendL( aPluginUid );
   160         StoreQuarantineL(); // Store to persistent storage
   160         StoreQuarantineL(); // Store to persistent storage
   161 
   161 
   162 #ifdef _GS_WATCHDOG_VERBOSE_TRACES
   162 #ifdef _GS_WATCHDOG_VERBOSE_TRACES
   163     __GSLOGSTRING1( "[CGSWatchDog] Quarantined:0x%X", aPluginUid.iUid );
   163     __GSLOGSTRING1( "[CGSWatchDog] Quarantined:0x%X", aPluginUid.iUid );
   164 #endif //_GS_WATCHDOG_VERBOSE_TRACES
   164 #endif //_GS_WATCHDOG_VERBOSE_TRACES
   404         }
   404         }
   405     for( TInt i = 0; i < count; i++  )
   405     for( TInt i = 0; i < count; i++  )
   406         {
   406         {
   407         TUid uid;
   407         TUid uid;
   408         uid.iUid = stream.ReadInt32L();
   408         uid.iUid = stream.ReadInt32L();
   409         iQuarantine.Append( uid );
   409         iQuarantine.AppendL( uid );
   410         }
   410         }
   411     //stream.Close();
   411     //stream.Close();
   412     CleanupStack::PopAndDestroy( &stream );
   412     CleanupStack::PopAndDestroy( &stream );
   413     CleanupStack::PopAndDestroy( buf );
   413     CleanupStack::PopAndDestroy( buf );
   414     }
   414     }
   471         }
   471         }
   472     for( TInt i = 0; i < count; i++  )
   472     for( TInt i = 0; i < count; i++  )
   473         {
   473         {
   474         TGSPluginQuarantine plugin;
   474         TGSPluginQuarantine plugin;
   475         plugin.InternalizeL( stream );
   475         plugin.InternalizeL( stream );
   476         iBlackList.Append( plugin );
   476         iBlackList.AppendL( plugin );
   477         }
   477         }
   478 
   478 
   479     //stream.Close();
   479     //stream.Close();
   480     CleanupStack::PopAndDestroy( &stream );
   480     CleanupStack::PopAndDestroy( &stream );
   481     CleanupStack::PopAndDestroy( buf );
   481     CleanupStack::PopAndDestroy( buf );