MHttpDataOptimiser Class Reference

class MHttpDataOptimiser
Public Member Functions
void DecodeL (const TDesC8 &, HBufC8 *&, TBool &)
void EncodeL (const TDesC8 &, HBufC8 *&)

Member Functions Documentation

DecodeL(const TDesC8 &, HBufC8 *&, TBool &)

void DecodeL ( const TDesC8 & aData,
HBufC8 *& aHttpData,
TBool & aTransFail
) [pure virtual]
This method converts the data from the proprietary protocol format to the HTTP format. It is the responsibility of the implementation to allocate the required buffer for the encoded data. It is the responsibility of the caller to free the allocated memory.
leave
KErrNoMemory On insuffcient memory conditions.

Parameters

const TDesC8 & aData Is the raw data received over the TCP connection.
HBufC8 *& aHttpData
TBool & aTransFail If set to ETrue, sends the KErrHTTPOptimiserFailsTrans event to the client.

EncodeL(const TDesC8 &, HBufC8 *&)

void EncodeL ( const TDesC8 & aHttpData,
HBufC8 *& aEncodedData
) [pure virtual]
This method converts the HTTP message data to the proprietary protocol format. It is the responsibility of the implementation to allocate the required buffer for the encoded data. It is the responsibility of the caller to free the allocated memory.
leave
KErrNoMemory On insuffcient memory conditions.

Parameters

const TDesC8 & aHttpData
HBufC8 *& aEncodedData On return it contains the encoded message data.