--- a/applayerprotocols/httpservice/inc/chttpservice.h Fri Feb 19 23:50:57 2010 +0200
+++ b/applayerprotocols/httpservice/inc/chttpservice.h Fri Mar 12 15:45:46 2010 +0200
@@ -31,7 +31,8 @@
* @publishedAll
* @prototype
*/
-
+class CHttpClientAuthentication;
+class MHTTPServiceAuthentication;
class CHttpService : public CBase
{
friend class CHttpClientTransactionImpl;
@@ -54,16 +55,19 @@
IMPORT_C TInt AddRequestHeader(TInt aHeaderId, const THttpHeaderValueVariant& aHeaderValue);
IMPORT_C TInt AddCustomRequestHeader(const TDesC8& aHeaderName, const TDesC8& aHeaderValue);
+ IMPORT_C TInt SetAuthentication(MHTTPServiceAuthentication* aCallback);
private:
CHttpService();
void ConstructL();
- class CHttpServiceStruct : public CBase
+ NONSHARABLE_CLASS(CHttpServiceStruct) : public CBase
{
public:
- RHTTPSession iHttpSession;
- RHTTPHeaders iSessionHeaders;
+ ~CHttpServiceStruct();
+ RHTTPSession iHttpSession;
+ RHTTPHeaders iSessionHeaders;
+ CHttpClientAuthentication* iHttpClientAuthentication;
};
private:
RHTTPSession Session()
@@ -73,7 +77,7 @@
private:
- CHttpServiceStruct* iHttpServiceStruct; // Implementation struct
+ CHttpServiceStruct* iHttpServiceStruct; // Implementation struct
};
#endif // __CHTTPSERVICE_H__