applayerpluginsandutils/httpprotocolplugins/httpclient/chttpclienttransaction.h
changeset 0 b16258d2340f
child 18 5f1cd966e0d9
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CHTTPCLIENTTRANSACTION_H__
       
    17 #define __CHTTPCLIENTTRANSACTION_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <http/framework/cprottransaction.h>
       
    21 
       
    22 class CHttpConnectionManager;
       
    23 
       
    24 class CHttpClientTransaction : public CProtTransaction						   
       
    25 	{
       
    26 public:
       
    27 
       
    28 	static CHttpClientTransaction* NewL(RHTTPTransaction aTransaction);
       
    29 	virtual ~CHttpClientTransaction();
       
    30 	
       
    31 	void SetConnectionManager(CHttpConnectionManager& aConnectionManager);
       
    32 	CHttpConnectionManager* ConnectionManager() const;
       
    33 	void RemoveConnectionManager();
       
    34 
       
    35 	void IncRetryCount ();
       
    36 	TBool RetryNeeded ();
       
    37     TBool NeedDisconnectNotification () const;
       
    38 
       
    39 public:	// methods from CProtTransaction
       
    40 
       
    41 	virtual void CreateTxDataL();
       
    42 	virtual void CreateRxDataL(MRxDataObserver& aObserver);
       
    43 	
       
    44 private:
       
    45 
       
    46 	CHttpClientTransaction(RHTTPTransaction aTransaction);
       
    47 	
       
    48 private:
       
    49 
       
    50 	CHttpConnectionManager* iConnectionManager;
       
    51 	TInt					iRetryCount;
       
    52 	const TStringTable&        iStringTable;
       
    53 	};
       
    54 
       
    55 #endif	// __CHTTPCLIENTTRANSACTION_H__