http/inc/testhttpeboclientconditionalstep.h
author Maciej Seroka <maciejs@symbian.org>
Thu, 21 Jan 2010 12:53:44 +0000
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
permissions -rw-r--r--
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99

// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Symbian Foundation License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// Contains declaration of CHttpEboClientStep class
// @internalAll
// 
//

#ifndef TESTHTTPEBOCLIENTCONDITIONALSTEP_H_
#define TESTHTTPEBOCLIENTCONDITIONALSTEP_H_
//System Include
#include "testhttpbasestep.h"
#include <http/mhttpdataoptimiser.h>

/**
This is the eboclient to test the ebo functionality.
This tests some conditions like the pipelining and non pipelining with the ebo feature.
@internalTechnology
@test
*/

class CHttpEboClientConditionalStep : public CTestHttpBaseStep, public MHttpDataOptimiser
	{
public:
	virtual ~CHttpEboClientConditionalStep();
	CHttpEboClientConditionalStep();

	//These methods from MHttpDataOptimiser
	void EncodeL (const TDesC8& aHttpData, HBufC8*& aEncodedData);
	void DecodeL (const TDesC8& aData, HBufC8*& aHttpData, TBool& aTransFail);

private:
	void StartClientL();
	void InvokeHttpMethodL(const TDesC8& aUri, RStringF aMethod);
	
	// methods from MHTTPTransactionCallback
	void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
	TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent& aEvent);

private:
	MHTTPDataSupplier* iRespBody;
	TInt iChunkSize;
	TBool iPipeliningEnabled;
	TBool iDisableTransOpt;
	};
	
/*@{*/
/// Literal constant defined for identifying step name
_LIT(KTestHttpEboClientConditionalStep, "TestHttpEboClientConditionalStep");
/*@}*/

#endif /*TESTHTTPEBOCLIENTCONDITIONALSTEP_H_*/