epoc32/include/http/mhttpdataoptimiser.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/http/mhttpdataoptimiser.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,55 +0,0 @@
     1.4 -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -//
    1.18 -
    1.19 -
    1.20 -
    1.21 -/**
    1.22 - @file mhttpoptimisercallback.h
    1.23 - @warning : This file contains Rose Model ID comments - please do not delete
    1.24 -*/
    1.25 -
    1.26 -#ifndef	__MHTTPDATAOPTIMISER_H__
    1.27 -#define	__MHTTPDATAOPTIMISER_H__
    1.28 -
    1.29 -
    1.30 -//@publishedPartner
    1.31 -//@released
    1.32 -class MHttpDataOptimiser
    1.33 -{
    1.34 -	public:
    1.35 -	/**
    1.36 -	This method converts the HTTP message data to the proprietary protocol format. 
    1.37 -	It is the responsibility of the implementation to allocate the required buffer for the encoded data. 
    1.38 -	It is the responsibility of the caller to free the allocated memory.
    1.39 -	@param	aHTTPData Contains the message data in HTTP format.
    1.40 -	@param	aEncodedData On return it contains the encoded message data.
    1.41 -	@leave		KErrNoMemory On insuffcient memory conditions.
    1.42 -	*/
    1.43 -	virtual void EncodeL (const TDesC8& aHttpData, HBufC8*& aEncodedData) = 0;
    1.44 -
    1.45 -	/**
    1.46 -	This method converts the data from the proprietary protocol format to the HTTP format. 
    1.47 -	It is the responsibility of the implementation to allocate the required buffer for the encoded data. 
    1.48 -	It is the responsibility of the caller to free the allocated memory.
    1.49 -	@param	aData Is the raw data received over the TCP connection.
    1.50 -	@param	aHTTPData On return contains the data in HTTP format.
    1.51 -	@param	aTransFail If set to ETrue, sends the KErrHTTPOptimiserFailsTrans event to the client. 
    1.52 -	@leave		KErrNoMemory On insuffcient memory conditions.
    1.53 -	*/
    1.54 -	virtual void DecodeL (const TDesC8& aData, HBufC8*& aHttpData, TBool& aTransFail) = 0;
    1.55 -};
    1.56 -
    1.57 -
    1.58 -#endif //	__MHTTPDATAOPTIMISER_H__