CProtTransaction Class Reference

class CProtTransaction : public CBase

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.

Inherits from

Constructor & Destructor Documentation

CProtTransaction()

CProtTransaction()[protected]

Default constructor

CProtTransaction(RHTTPTransaction)

IMPORT_CCProtTransaction(RHTTPTransactionaTrans)[protected]

Normal constructor, of a CProtTransaction that corresponds to the supplied client transaction handle. Normal constructor

Parameters

RHTTPTransaction aTrans(in) The client transaction handle.

~CProtTransaction()

IMPORT_C~CProtTransaction()[virtual]

Intended Usage: Destructor - cleans up and releases resources to the system

Member Functions Documentation

CreateRxDataL(MRxDataObserver &)

voidCreateRxDataL(MRxDataObserver &aObserver)[pure virtual]
Intended Usage: Creates the appropriate CRxData object.
leave
KErrNoMemory if there is not enough memory available to create the object.

Parameters

MRxDataObserver & aObserverA reference to the observer for the Rx data object.

CreateTxDataL()

voidCreateTxDataL()[pure virtual]
Intended Usage: Creates the appropriate CTxData object.
leave
KErrNoMemory if there is not enough memory available to create the object.

Reserved1()

voidReserved1()[private, inline, virtual]

Intended Usage: Reserve a slot in the v-table to preserve future BC

Reserved2()

voidReserved2()[private, inline, virtual]

Intended Usage: Reserve a slot in the v-table to preserve future BC

ResetRxData()

IMPORT_C voidResetRxData()
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 voidResetTxData()
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()

IMPORT_C CRxData &RxData()const

Obtain the Receive Data portion of the transaction. Obtain the Received Data portion of the transaction

SetTransactionState(TTransactionState)

voidSetTransactionState(TTransactionStateaState)
Sets the state of the transaction.
Post-condition
The state of the transaction has been updated.

Parameters

TTransactionState aStateThe state that the transaction is in.

Transaction()

IMPORT_C RHTTPTransactionTransaction()const

Obtain the API-level transaction to which this object corresponds to. Obtain the API-level transaction to which this object corresponds

TransactionState()

TTransactionState TransactionState()const

Provides the state of the transaction, e.g. pending, active, etc.

TxData()

IMPORT_C CTxData &TxData()const

Obtain the Transmit Data portion of the transaction. Obtain the Transmit Data portion of the transaction

Member Enumerations Documentation

Enum TTransactionState

The TTransactionState type defines the states of a transaction.

Enumerators

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.

Member Data Documentation

CRxData * iRxData

CRxData *iRxData[protected]

The received data

RHTTPTransaction iTrans

RHTTPTransaction iTrans[protected]

The client transaction

TTransactionState iTransactionState

TTransactionState iTransactionState[protected]

Transaction state indicator.

CTxData * iTxData

CTxData *iTxData[protected]

The transmission data