webservices/wsoviplugin/src/wsoviservicesession.cpp
branchRCL_3
changeset 11 6abf3d6055cd
parent 1 272b002df977
child 19 9e96e2676219
equal deleted inserted replaced
7:7bc6ab9b5bcd 11:6abf3d6055cd
   586     return retVal;
   586     return retVal;
   587     }
   587     }
   588 
   588 
   589 void CWSOviServiceSession::AdaptEndpointL(TBool aToOrginal)
   589 void CWSOviServiceSession::AdaptEndpointL(TBool aToOrginal)
   590     {
   590     {
       
   591     TLSLOG_L(KSenCoreServiceManagerLogChannelBase,KMinLogLevel ,"CWSOviServiceSession::AdaptEndpointL");	
   591     TPtrC8 oldEndpoint = Endpoint();
   592     TPtrC8 oldEndpoint = Endpoint();
   592     if (aToOrginal)
   593     if (aToOrginal)
   593         {
   594         {
   594         SetEndPointL(*iOrginalEndpoint);
   595         SetEndPointL(*iOrginalEndpoint);
   595         return;
   596         return;
   631             {
   632             {
   632             newEp = HBufC8::NewLC(suffixEndpoint.Length()
   633             newEp = HBufC8::NewLC(suffixEndpoint.Length()
   633                                   +oldEndpoint.Length());
   634                                   +oldEndpoint.Length());
   634             TPtr8 ptrNewEp = newEp->Des();
   635             TPtr8 ptrNewEp = newEp->Des();
   635             ptrNewEp.Append(oldEndpoint);
   636             ptrNewEp.Append(oldEndpoint);
   636             ptrNewEp.Append(suffixEndpoint);
   637             TInt retVal = oldEndpoint.Find(suffixEndpoint);
       
   638             if(retVal == KErrNotFound)
       
   639             	{
       
   640             	ptrNewEp.Append(suffixEndpoint);
       
   641             	}
   637             SetEndPointL(*newEp);
   642             SetEndPointL(*newEp);
   638             CleanupStack::PopAndDestroy(newEp);
   643             CleanupStack::PopAndDestroy(newEp);
   639             }
   644             }
   640         }
   645         }
       
   646     TLSLOG_L(KSenCoreServiceManagerLogChannelBase,KMinLogLevel ,"CWSOviServiceSession::AdaptEndpointL Completed");
   641     }
   647     }
   642 CSenIdentityProvider* CWSOviServiceSession::IdentityProviderFromCoreL(
   648 CSenIdentityProvider* CWSOviServiceSession::IdentityProviderFromCoreL(
   643                                             const TDesC8& aProviderID)
   649                                             const TDesC8& aProviderID)
   644     {
   650     {
   645     TLSLOG_L(KSenCoreServiceManagerLogChannelBase  , KMinLogLevel,"CWSOviServiceSession::IdentityProviderLFromCore");
   651     TLSLOG_L(KSenCoreServiceManagerLogChannelBase  , KMinLogLevel,"CWSOviServiceSession::IdentityProviderLFromCore");