diff -r 5ee1d9ce5878 -r 337070b4fa18 applayerprotocols/httpservice/src/chttpservice.cpp --- a/applayerprotocols/httpservice/src/chttpservice.cpp Fri Feb 19 23:50:57 2010 +0200 +++ b/applayerprotocols/httpservice/src/chttpservice.cpp Fri Mar 12 15:45:46 2010 +0200 @@ -15,7 +15,8 @@ #include "chttpservice.h" #include "httpclientutils.h" - +#include "chttpclientauthentication.h" +#include "mhttpserviceauthentication.h" const TInt KMaxNoOfConnections = 6; const TInt KMaxTransToPipeline = 5; @@ -45,6 +46,14 @@ } /** + * Destructor of the inner class CHttpServiceStruct + */ +CHttpService::CHttpServiceStruct::~CHttpServiceStruct() + { + delete iHttpClientAuthentication; + } + +/** * Retrieves the equivalent string for a give string ID from the * HTTP string pool * @@ -212,6 +221,15 @@ return err; } +EXPORT_C TInt CHttpService::SetAuthentication(MHTTPServiceAuthentication* aCallback) + { + TInt error = KErrGeneral; + iHttpServiceStruct->iHttpClientAuthentication = CHttpClientAuthentication::New(iHttpServiceStruct->iHttpSession, aCallback); + if(iHttpServiceStruct->iHttpClientAuthentication) + error = KErrNone; + return error; + } + /** * Constructor */