Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 2001-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @file CProtTransaction.h
20 @warning : This file contains Rose Model ID comments - please do not delete
23 #ifndef __CPROTTRANSACTION_H__
24 #define __CPROTTRANSACTION_H__
28 #include <http/rhttptransaction.h>
30 // Forward declarations
33 class MRxDataObserver;
36 //##ModelId=3B1E52B30382
37 class CProtTransaction : public CBase
39 A representation of a transaction used by protocol handlers.
40 This class is lower-level than the RHTTPTransaction class,
41 since it owns objects that represent the request and response data as
42 transmitted and received over a transport medium.
49 /** The TTransactionState type defines the states of a transaction.
51 enum TTransactionState
53 /** Specifies that the transaction is pending servicing.
56 /** Specifies that the transaction is being serviced - active.
59 /** Specifies that the transaction has been cancelled.
62 /** Specifies that the transaction has completed.
70 Intended Usage: Destructor - cleans up and releases resources to the system
72 //##ModelId=3B1E52B40031
73 IMPORT_C virtual ~CProtTransaction();
78 Provides the state of the transaction, e.g. pending,
80 @return A enum specifying the state of the transaction.
82 //##ModelId=3C4C37E50306
83 TTransactionState TransactionState() const;
86 Sets the state of the transaction.
87 @param aState The state that the transaction is in.
88 @post The state of the transaction has been updated.
90 //##ModelId=3C4C37E502D4
91 void SetTransactionState(TTransactionState aState);
94 Resets the Rx data object. The Rx data object must be
95 created again to be used.
96 @post The Rx data objects has been reset.
98 //##ModelId=3C4C37E502CA
99 IMPORT_C void ResetRxData();
102 Resets the Tx data object. The Tx data object must be
103 created again to be used.
104 @post The Tx data objects has been reset.
106 //##ModelId=3C4C37E502C0
107 IMPORT_C void ResetTxData();
110 Obtain the API-level transaction to which this object
112 @return The API-level transaction that this object corresponds to.
114 //##ModelId=3B1E52B40013
115 IMPORT_C RHTTPTransaction Transaction() const;
118 Obtain the Transmit Data portion of the transaction.
119 @return A reference to the Tx data object of the transaction.
121 //##ModelId=3B1E52B40012
122 IMPORT_C CTxData& TxData() const;
125 Obtain the Receive Data portion of the transaction.
126 @return A reference to the Rx data object of the transaction.
128 //##ModelId=3B1E52B40009
129 IMPORT_C CRxData& RxData() const;
131 public: // Methods to be implemented by derived classes
134 Intended Usage: Creates the appropriate CTxData object.
135 @leave KErrNoMemory if there is not enough memory available to
138 //##ModelId=3C4C37E502AC
139 virtual void CreateTxDataL() =0;
142 Intended Usage: Creates the appropriate CRxData object.
143 @leave KErrNoMemory if there is not enough memory available to
145 @param aObserver A reference to the observer for the Rx data object.
147 //##ModelId=3C4C37E50284
148 virtual void CreateRxDataL(MRxDataObserver& aObserver) =0;
150 protected: // Methods
155 //##ModelId=3B1E52B303E6
159 Normal constructor, of a CProtTransaction that corresponds to the
160 supplied client transaction handle.
161 @param aTrans (in) The client transaction handle.
163 //##ModelId=3B1E52B303E7
164 IMPORT_C CProtTransaction(RHTTPTransaction aTrans);
166 protected: // Attributes
168 /** The client transaction
170 //##ModelId=3B1E52B303D4
171 RHTTPTransaction iTrans;
173 /** The transmission data
175 //##ModelId=3B1E52B303CA
178 /** The received data
180 //##ModelId=3B1E52B303C0
183 /** Transaction state indicator.
185 //##ModelId=3C4C37E50247
186 TTransactionState iTransactionState;
191 Intended Usage: Reserve a slot in the v-table to preserve future BC
193 //##ModelId=3C4C37E5026F
194 inline virtual void Reserved1();
197 Intended Usage: Reserve a slot in the v-table to preserve future BC
199 //##ModelId=3C4C37E50251
200 inline virtual void Reserved2();
204 inline void CProtTransaction::Reserved1()
206 inline void CProtTransaction::Reserved2()
210 #endif // __CPROTTRANSACTION_H__