commsconfig/cscengine/src/cscengservicepluginhandler.cpp
branchRCL_3
changeset 12 876a3df1f464
parent 0 a4daefaec16c
equal deleted inserted replaced
11:6134b5029079 12:876a3df1f464
   627                 pluginInfo.iProvisioned = ETrue;
   627                 pluginInfo.iProvisioned = ETrue;
   628                 }
   628                 }
   629             }
   629             }
   630         
   630         
   631         CleanupStack::PopAndDestroy( &serviceIds );
   631         CleanupStack::PopAndDestroy( &serviceIds );
   632         
   632 
   633         iServicePluginInfoArray.Append( pluginInfo );
   633         // Check if the plugin is already in array before appending.
       
   634         TBool found( EFalse );
       
   635         for ( TInt counter( 0 ); 
       
   636             counter < iServicePluginInfoArray.Count();
       
   637             counter++ )
       
   638             {
       
   639             if ( iServicePluginInfoArray[counter].iPluginsUid == 
       
   640                 pluginInfo.iPluginsUid )
       
   641                 {
       
   642                 found = ETrue;
       
   643                 }
       
   644             }
       
   645         if ( !found )
       
   646             {
       
   647             iServicePluginInfoArray.Append( pluginInfo );
       
   648             }
   634         }
   649         }
   635         
   650         
   636     CSCENGDEBUG( "CCSCEngServicePluginHandler::SetPluginInitInfoL - end" );
   651     CSCENGDEBUG( "CCSCEngServicePluginHandler::SetPluginInitInfoL - end" );
   637     }
   652     }
   638 
   653