CProtTransaction Class Reference
#include
<mw/http/framework/cprottransaction.h>
class CProtTransaction : public CBase |
Detailed Description
A representation of a transaction used by protocol handlers. This class is lower-level than the RHTTPTransaction class, since it owns objects that represent the request and response data as transmitted and received over a transport medium.
Member Attribute Documentation
iTransactionState
Transaction state indicator.
Member Enumeration Documentation
Enum TTransactionState
The TTransactionState type defines the states of a transaction.
Enumerator | Value | Description |
---|
EPending | 0 |
Specifies that the transaction is pending servicing.
|
EActive | |
Specifies that the transaction is being serviced - active.
|
ECancelled | |
Specifies that the transaction has been cancelled.
|
ECompleted | |
Specifies that the transaction has completed.
|
Constructor & Destructor Documentation
CProtTransaction ( )
CProtTransaction | ( | ) | [protected] |
CProtTransaction ( RHTTPTransaction )
Normal constructor, of a CProtTransaction that corresponds to the supplied client transaction handle. Normal constructor
Parameter | Description | aTrans | (in) The client transaction handle. |
~CProtTransaction ( )
IMPORT_C | ~CProtTransaction | ( | ) | [virtual] |
Intended Usage: Destructor - cleans up and releases resources to the system
Member Function Documentation
CreateRxDataL ( MRxDataObserver & )
Intended Usage: Creates the appropriate
CRxData object.
- leave
- KErrNoMemory if there is not enough memory available to create the object.
Parameter | Description | aObserver | A reference to the observer for the Rx data object. |
CreateTxDataL ( )
void | CreateTxDataL | ( | ) | [pure virtual] |
Intended Usage: Creates the appropriate
CTxData object.
- leave
- KErrNoMemory if there is not enough memory available to create the object.
ResetRxData ( )
IMPORT_C void | ResetRxData | ( | ) | |
Resets the Rx data object. The Rx data object must be created again to be used.
- Post-condition
- The Rx data objects has been reset.
ResetTxData ( )
IMPORT_C void | ResetTxData | ( | ) | |
Resets the Tx data object. The Tx data object must be created again to be used.
- Post-condition
- The Tx data objects has been reset.
RxData ( )
Obtain the Receive Data portion of the transaction. Obtain the Received Data portion of the transaction
Returns: A reference to the Rx data object of the transaction.reference to CRxData object that contains received Data portion of the transaction.
SetTransactionState ( TTransactionState )
Sets the state of the transaction.
- Post-condition
- The state of the transaction has been updated.
Parameter | Description | aState | The state that the transaction is in. |
Transaction ( )
Obtain the API-level transaction to which this object corresponds to. Obtain the API-level transaction to which this object corresponds
Returns: The API-level transaction that this object corresponds to.a RHTTPTransaction object which represents the transaction to which this object corresponds.
TransactionState ( )
Provides the state of the transaction, e.g. pending, active, etc.
Returns: A enum specifying the state of the transaction.
TxData ( )
Obtain the Transmit Data portion of the transaction. Obtain the Transmit Data portion of the transaction
Returns: A reference to the Tx data object of the transaction.reference to CTxData object that contains transmit Data portion of the transaction.