webservices/wsoviplugin/src/wsoviplugin.cpp
branchRCL_3
changeset 23 1adb97a15c2f
parent 22 c5fabff9b552
equal deleted inserted replaced
22:c5fabff9b552 23:1adb97a15c2f
   334         {
   334         {
   335         
   335         
   336         case KSenEventWsfReady:
   336         case KSenEventWsfReady:
   337             {
   337             {
   338             TPtrC8 imsi = iManager.IMSI();
   338             TPtrC8 imsi = iManager.IMSI();
       
   339 			//On SIM Change below code resets the KSenAccAutoSignIn flag			
   339             if (iIMSI.Compare(imsi))
   340             if (iIMSI.Compare(imsi))
   340             	{
   341             	{
   341             	const RPointerArray<CSenIdentityProvider> list = iManager.IdentityProvidersL();
   342             	const RPointerArray<CSenIdentityProvider> list = iManager.IdentityProvidersL();
   342         	    for (TInt i = 0; i<list.Count(); i++)
   343         	    for (TInt i = 0; i<list.Count(); i++)
   343     	            {
   344     	            {
   344     	            CSenElement* el(NULL);
   345     	            CSenElement* el(NULL);
   345     	            list[i]->AccountExtensions(el);
   346     	            list[i]->AccountExtensions(el);
   346     	            if (el)
   347     	            if (el)
   347     	            	{
   348     	            	{
   348     	            	delete (el->RemoveElement(KSenAccAutoSignIn));
   349     	            	delete (el->RemoveElement(KSenAccAutoSignIn));
       
   350 						_LIT8(KWSAccAttrAccountValidator,      "Validator");
       
   351     	            	delete (el->RemoveElement(KWSAccAttrAccountValidator));
   349     	            	((MSenCredentialManager&)iManager).RemoveCredentialsL(list[i]->ProviderID());
   352     	            	((MSenCredentialManager&)iManager).RemoveCredentialsL(list[i]->ProviderID());
   350     	            	}
   353     	            	}
   351     	            //((MSenCredentialManager&)iManager).RemoveCredentialsL(list[i]->ProviderID());
   354     	            //((MSenCredentialManager&)iManager).RemoveCredentialsL(list[i]->ProviderID());
   352     	            }
   355     	            }
   353         	    iIMSI.Close();
   356         	    iIMSI.Close();